@stacksjs/stx 0.2.218 → 0.2.220

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 (184) hide show
  1. package/dist/app-shell.js +2 -1
  2. package/dist/{chunk-3twce5kp.js → chunk-02k0pg5s.js} +1 -1
  3. package/dist/{chunk-53ajah3v.js → chunk-06f65jz3.js} +2 -2
  4. package/dist/{chunk-crmk2jzf.js → chunk-08031d2g.js} +1 -1
  5. package/dist/chunk-0k12epgy.js +2 -0
  6. package/dist/{chunk-3fwn9edg.js → chunk-135mme4g.js} +1 -1
  7. package/dist/{chunk-c7pvwvse.js → chunk-1gy7fa09.js} +1 -1
  8. package/dist/{chunk-bsr7yrxh.js → chunk-1rka3ffx.js} +1 -1
  9. package/dist/chunk-1y3kc7mb.js +2 -0
  10. package/dist/chunk-20wgmax7.js +2 -0
  11. package/dist/chunk-25jkkv9d.js +2 -0
  12. package/dist/{chunk-wbq7cp57.js → chunk-2bxgan9p.js} +1 -1
  13. package/dist/{chunk-cqt6ry1e.js → chunk-2v1cj2qp.js} +1 -1
  14. package/dist/chunk-2y8ss8b3.js +2 -0
  15. package/dist/chunk-38zpyb7q.js +2 -0
  16. package/dist/{chunk-yk1smsev.js → chunk-3s3zyq5q.js} +1 -1
  17. package/dist/chunk-3zhhytkd.js +2 -0
  18. package/dist/chunk-4k5f40bb.js +2 -0
  19. package/dist/{chunk-gvm4dw6p.js → chunk-4svjne4w.js} +2 -2
  20. package/dist/{chunk-z2sp0k8d.js → chunk-4tmw4kjm.js} +1 -1
  21. package/dist/{chunk-ne8sygmy.js → chunk-4vhxtfkw.js} +1 -1
  22. package/dist/{chunk-mxqp7x07.js → chunk-4wdbmjmg.js} +2 -2
  23. package/dist/{chunk-hyrjade7.js → chunk-572ttrsj.js} +1 -1
  24. package/dist/{chunk-fvpaf9v5.js → chunk-5a5efazd.js} +2 -2
  25. package/dist/chunk-5fz9n4wq.js +3 -0
  26. package/dist/{chunk-css1sfnr.js → chunk-5y731xe9.js} +1 -1
  27. package/dist/chunk-67b47fez.js +2 -0
  28. package/dist/{chunk-8anh6d36.js → chunk-6b0xz02h.js} +1 -1
  29. package/dist/{chunk-74gc1x9x.js → chunk-6qjzx44j.js} +2 -2
  30. package/dist/{chunk-weajy31v.js → chunk-6sm1vr9h.js} +2 -2
  31. package/dist/{chunk-x8b16v5q.js → chunk-6vdn3qy0.js} +1 -1
  32. package/dist/{chunk-x13f5bbe.js → chunk-72w4hhbq.js} +1 -1
  33. package/dist/chunk-735atsqq.js +2 -0
  34. package/dist/{chunk-n8zpm7xb.js → chunk-74pjj8d0.js} +1 -1
  35. package/dist/chunk-7cq5b6zp.js +2 -0
  36. package/dist/chunk-7jhtvcy5.js +2 -0
  37. package/dist/{chunk-whxregkn.js → chunk-7ryqex47.js} +1 -1
  38. package/dist/{chunk-1nnpwrqj.js → chunk-7s3wrtpb.js} +2 -2
  39. package/dist/chunk-7x3nd6r4.js +2 -0
  40. package/dist/{chunk-m2mhtpwy.js → chunk-80qre9zp.js} +1 -1
  41. package/dist/{chunk-c0p9kf53.js → chunk-8awfakrk.js} +1 -1
  42. package/dist/{chunk-st5qggks.js → chunk-8ha8h3s1.js} +1 -1
  43. package/dist/{chunk-trtm887x.js → chunk-8rn5e39c.js} +1 -1
  44. package/dist/chunk-9ktvkzcc.js +2 -0
  45. package/dist/chunk-a4329ma8.js +30 -0
  46. package/dist/{chunk-y4hkqsgw.js → chunk-a6nnbnmb.js} +2 -2
  47. package/dist/{chunk-j3njy10j.js → chunk-ad84gwgv.js} +2 -2
  48. package/dist/{chunk-xwc4pg5w.js → chunk-anenwsj3.js} +2 -2
  49. package/dist/{chunk-khrtzbxd.js → chunk-arnse15r.js} +1 -1
  50. package/dist/chunk-bgb5a3q6.js +4 -0
  51. package/dist/chunk-bj25jvsn.js +2 -0
  52. package/dist/{chunk-fnkxbnka.js → chunk-bx766t25.js} +1 -1
  53. package/dist/{chunk-msjzqne1.js → chunk-bz9z4pfr.js} +1 -1
  54. package/dist/{chunk-yckd6ks5.js → chunk-c0n802j1.js} +1 -1
  55. package/dist/{chunk-b6jhznkh.js → chunk-cq6fsp6j.js} +1 -1
  56. package/dist/chunk-cw0352e8.js +2 -0
  57. package/dist/{chunk-q4se9rtw.js → chunk-dykhpgyx.js} +1 -1
  58. package/dist/{chunk-7md45k52.js → chunk-e890s5em.js} +2 -2
  59. package/dist/{chunk-ht51fz7w.js → chunk-efr3ejqt.js} +1 -1
  60. package/dist/{chunk-1306tswx.js → chunk-efrv1yp5.js} +1 -1
  61. package/dist/{chunk-jmnftb29.js → chunk-ejspksxd.js} +2 -2
  62. package/dist/chunk-et555kdz.js +2 -0
  63. package/dist/{chunk-7mst8kqm.js → chunk-ewdn7s6r.js} +1 -1
  64. package/dist/{chunk-hncp9gz6.js → chunk-f5cw54q3.js} +1 -1
  65. package/dist/chunk-fw5d1aev.js +18 -0
  66. package/dist/chunk-g3rg8afc.js +2 -0
  67. package/dist/{chunk-9b82d4g5.js → chunk-gnmft4dz.js} +1 -1
  68. package/dist/chunk-h7xtn6j0.js +2 -0
  69. package/dist/{chunk-rczpw37w.js → chunk-hcqzbhc1.js} +1 -1
  70. package/dist/{chunk-7zk48rd8.js → chunk-hg2ja2gj.js} +1 -1
  71. package/dist/chunk-hh2r7hrb.js +2 -0
  72. package/dist/chunk-hysfnyh4.js +2 -0
  73. package/dist/chunk-j3mw2vpt.js +2 -0
  74. package/dist/{chunk-q8szpd6w.js → chunk-jw1besrt.js} +1 -1
  75. package/dist/{chunk-3es366z4.js → chunk-k6b7gpk2.js} +1 -1
  76. package/dist/{chunk-z47tw39z.js → chunk-kdpy5rgk.js} +2 -2
  77. package/dist/{chunk-j0tfxbns.js → chunk-kvz7rg2x.js} +2 -2
  78. package/dist/{chunk-tryt2h85.js → chunk-m6damb1f.js} +1 -1
  79. package/dist/{chunk-1bvstnz4.js → chunk-mcz70xms.js} +2 -2
  80. package/dist/{chunk-y2jr10y8.js → chunk-mt4cdgz3.js} +2 -2
  81. package/dist/chunk-n1b7b20f.js +2 -0
  82. package/dist/{chunk-zgvga8rc.js → chunk-ncvd7673.js} +1 -1
  83. package/dist/{chunk-47pge5gz.js → chunk-nnw1ka45.js} +1 -1
  84. package/dist/{chunk-808qy9cq.js → chunk-pscdy0gn.js} +197 -197
  85. package/dist/{chunk-zat2ndst.js → chunk-pzcf36xm.js} +347 -347
  86. package/dist/{chunk-dmb6t0qj.js → chunk-q5w0fqd5.js} +2 -2
  87. package/dist/{chunk-pezxve4a.js → chunk-qfsktf7s.js} +3 -3
  88. package/dist/{chunk-a2rj5ce0.js → chunk-qr90ng3a.js} +2 -2
  89. package/dist/{chunk-rg6v68ya.js → chunk-rbnmbeda.js} +1 -1
  90. package/dist/chunk-rmrnnv87.js +2 -0
  91. package/dist/{chunk-j5vyt8wd.js → chunk-rpyck7kn.js} +1 -1
  92. package/dist/chunk-rq20qvkk.js +2 -0
  93. package/dist/{chunk-1nm2xrvq.js → chunk-ry86fd41.js} +1 -1
  94. package/dist/{chunk-9xh78snm.js → chunk-s6yn1mbm.js} +1 -1
  95. package/dist/{chunk-vgk5v31k.js → chunk-s88yt309.js} +1 -1
  96. package/dist/{chunk-ymccpdg6.js → chunk-snktca7b.js} +1 -1
  97. package/dist/{chunk-fvjh7rx0.js → chunk-swy03mg9.js} +1 -1
  98. package/dist/chunk-tc2d9en8.js +2 -0
  99. package/dist/{chunk-9064gyt5.js → chunk-tgaddq21.js} +2 -2
  100. package/dist/chunk-th7snpq2.js +2 -0
  101. package/dist/{chunk-f6jm4hy3.js → chunk-txre2e2m.js} +1 -1
  102. package/dist/chunk-v7ggp28p.js +2 -0
  103. package/dist/{chunk-zxb128xa.js → chunk-vaa8tk98.js} +2 -2
  104. package/dist/chunk-vg0kzfcy.js +2 -0
  105. package/dist/{chunk-p8pyqr7p.js → chunk-vgf945mj.js} +1 -1
  106. package/dist/{chunk-xkd164zg.js → chunk-w7ped5p5.js} +1 -1
  107. package/dist/{chunk-yf3bmmkk.js → chunk-wvc7t11n.js} +1 -1
  108. package/dist/{chunk-3wd9kfyz.js → chunk-x0bcc9sj.js} +1 -1
  109. package/dist/chunk-x0f34a44.js +2 -0
  110. package/dist/{chunk-aw9z3m10.js → chunk-xqnwy1t6.js} +1 -1
  111. package/dist/{chunk-pdh79z63.js → chunk-xrnqz76v.js} +1 -1
  112. package/dist/{chunk-p7qqbw2k.js → chunk-ydk1n77q.js} +2 -2
  113. package/dist/chunk-yk45219d.js +2 -0
  114. package/dist/{chunk-s7dqawk0.js → chunk-yppz6dgg.js} +2 -2
  115. package/dist/{chunk-w0ng9e1m.js → chunk-z6ev72qj.js} +1 -1
  116. package/dist/{chunk-6xg3j487.js → chunk-z794cdmn.js} +1 -1
  117. package/dist/{chunk-96kpqgh3.js → chunk-zg5mq1cj.js} +1 -1
  118. package/dist/chunk-zh75hc6a.js +2 -0
  119. package/dist/{chunk-zj44h5kk.js → chunk-zhfdf2h5.js} +1 -1
  120. package/dist/chunk-zpskp2xb.js +2 -0
  121. package/dist/cli.js +14 -14
  122. package/dist/craft-entry.js +1 -1
  123. package/dist/craft.js +1 -1
  124. package/dist/database.js +1 -1
  125. package/dist/dev-server/serve-app.js +33 -8
  126. package/dist/dev-server/serve-multi.js +5 -2
  127. package/dist/index.d.ts +1 -0
  128. package/dist/index.js +1 -0
  129. package/dist/page-response.d.ts +113 -0
  130. package/dist/page-response.js +106 -1
  131. package/dist/process.js +2 -0
  132. package/dist/production-server.js +13 -5
  133. package/dist/pwa.js +2 -2
  134. package/dist/render.d.ts +14 -0
  135. package/dist/render.js +3 -19
  136. package/dist/serve.js +19 -10
  137. package/dist/spa-nav.d.ts +49 -0
  138. package/dist/spa-nav.js +12 -0
  139. package/dist/ssg.js +2 -2
  140. package/dist/template-compiler.d.ts +1 -0
  141. package/dist/template-compiler.js +2 -0
  142. package/dist/template-hydrator.d.ts +1 -1
  143. package/dist/template-hydrator.js +4 -3
  144. package/dist/variable-extractor.d.ts +1 -1
  145. package/dist/variable-extractor.js +6 -2
  146. package/dist/visual-testing.js +1 -1
  147. package/package.json +5 -5
  148. package/dist/chunk-10yft4b7.js +0 -2
  149. package/dist/chunk-17atrbv2.js +0 -2
  150. package/dist/chunk-23vxz3hp.js +0 -2
  151. package/dist/chunk-2me28xee.js +0 -2
  152. package/dist/chunk-2w5d5tw1.js +0 -2
  153. package/dist/chunk-2xeq5xnf.js +0 -2
  154. package/dist/chunk-2z6k7gsa.js +0 -2
  155. package/dist/chunk-3fxcwk6a.js +0 -2
  156. package/dist/chunk-4vwxgmg0.js +0 -2
  157. package/dist/chunk-5gr4vv7m.js +0 -2
  158. package/dist/chunk-775fabj4.js +0 -2
  159. package/dist/chunk-8cyv5316.js +0 -2
  160. package/dist/chunk-8xtvmwpr.js +0 -2
  161. package/dist/chunk-9db2f09j.js +0 -2
  162. package/dist/chunk-9h908knr.js +0 -2
  163. package/dist/chunk-a1ydhf5t.js +0 -3
  164. package/dist/chunk-ba18hn7n.js +0 -2
  165. package/dist/chunk-bd0yv6a0.js +0 -2
  166. package/dist/chunk-cr7s8q08.js +0 -2
  167. package/dist/chunk-d48tzd8c.js +0 -2
  168. package/dist/chunk-dcy8hg45.js +0 -2
  169. package/dist/chunk-e6377wfq.js +0 -4
  170. package/dist/chunk-jnjxf5t2.js +0 -2
  171. package/dist/chunk-n4smz31k.js +0 -18
  172. package/dist/chunk-njkv35c3.js +0 -2
  173. package/dist/chunk-q3ea7q6t.js +0 -2
  174. package/dist/chunk-qd1nadff.js +0 -30
  175. package/dist/chunk-qwzfdq8q.js +0 -2
  176. package/dist/chunk-r153ybwd.js +0 -2
  177. package/dist/chunk-tg0w29j1.js +0 -2
  178. package/dist/chunk-tqhwzjj7.js +0 -2
  179. package/dist/chunk-vgr8kykv.js +0 -2
  180. package/dist/chunk-w670sde5.js +0 -2
  181. package/dist/chunk-x9bsft57.js +0 -2
  182. package/dist/chunk-y05vd24g.js +0 -2
  183. package/dist/chunk-yrqnsd3a.js +0 -2
  184. package/dist/chunk-z0hkt5sk.js +0 -2
@@ -6,6 +6,7 @@ import { createPlaceholder, resetPlaceholders, getPlaceholderRegistry } from "./
6
6
  import { stripDocumentWrapper } from "./app-shell.js";
7
7
  import { createHash } from "node:crypto";
8
8
  import { collectBlockDeclarations } from "./stx-virtual-ts.js";
9
+ import { extractPageResponseStatus } from "./page-response.js";
9
10
  function createRecordingContext(baseContext = {}) {
10
11
  const accessedKeys = new Set;
11
12
  return { context: new Proxy(baseContext, {
@@ -60,6 +61,7 @@ export async function compileTemplate(filePath, route, options = {}) {
60
61
  serverScriptContent,
61
62
  dependencies: Array.from(dependencies),
62
63
  contentHash,
64
+ status: extractPageResponseStatus(content),
63
65
  streamTemplates: context.__streamTemplates
64
66
  };
65
67
  }
@@ -20,7 +20,7 @@ export declare function hydrateTemplate(compiled: CompiledTemplate, requestConte
20
20
  * templates aren't serialized into the compiled template, so use the function
21
21
  * form in production.)
22
22
  */
23
- export declare function hydrateTemplateStream(compiled: CompiledTemplate, requestContext?: Record<string, any>): Promise<{ html: string, boundaries?: { id: string, render: () => Promise<string> }[], redirect?: string, cookies?: string[] }>;
23
+ export declare function hydrateTemplateStream(compiled: CompiledTemplate, requestContext?: Record<string, any>): Promise<{ html: string, boundaries?: { id: string, render: () => Promise<string> }[], redirect?: string, cookies?: string[], status?: number, headers?: Record<string, string> }>;
24
24
  /**
25
25
  * Hydrate a fragment (for SPA navigation).
26
26
  * Same as hydrateTemplate but returns the fragment portion.
@@ -2,13 +2,14 @@ import { extractVariables } from "./variable-extractor.js";
2
2
  import { evaluateExpression, escapeHtmlValue } from "./expressions.js";
3
3
  import { replacePlaceholders, hasPlaceholders } from "./placeholder.js";
4
4
  import { runPageAction } from "./page-action.js";
5
+ import { readResponseHeaders, readResponseStatus } from "./page-response.js";
5
6
  export async function hydrateTemplate(compiled, requestContext = {}) {
6
7
  return (await runHydration(compiled, requestContext)).html;
7
8
  }
8
9
  export async function hydrateTemplateStream(compiled, requestContext = {}) {
9
- const { html, context, redirect, cookies } = await runHydration(compiled, requestContext);
10
+ const { html, context, redirect, cookies } = await runHydration(compiled, requestContext), status = readResponseStatus(context), headers = readResponseHeaders(context);
10
11
  if (redirect)
11
- return { html, redirect, cookies };
12
+ return { html, redirect, cookies, status, headers };
12
13
  const { extractStreamBoundaries } = await import("./streaming.js");
13
14
  let boundaries = extractStreamBoundaries(context);
14
15
  const templates = compiled.streamTemplates;
@@ -22,7 +23,7 @@ export async function hydrateTemplateStream(compiled, requestContext = {}) {
22
23
  })), tplIds = new Set(tplBoundaries.map((b) => b.id));
23
24
  boundaries = [...(boundaries || []).filter((b) => !tplIds.has(b.id)), ...tplBoundaries];
24
25
  }
25
- return { html, boundaries: boundaries && boundaries.length > 0 ? boundaries : void 0, cookies };
26
+ return { html, boundaries: boundaries && boundaries.length > 0 ? boundaries : void 0, cookies, status, headers };
26
27
  }
27
28
  async function runHydration(compiled, requestContext) {
28
29
  const context = {
@@ -19,7 +19,7 @@
19
19
  * generated `await import('stx')` rejected and the shadowing binding was never
20
20
  * created. The failure needed a real install to appear.
21
21
  */
22
- export declare const STX_ENGINE_BINDING_NAMES: readonly ['module', 'exports', 'require', 'props', '$props', 'defineProps', 'withDefaults', 'defineClientPayload', 'state', 'derived', 'effect', 'batch', 'onMount', 'onDestroy', 'definePageMeta', 'useRoute', 'useRouter', 'useHead', 'useSeoMeta', 'ref', 'reactive', 'computed', 'watch', 'onMounted', 'onUnmounted', 'nextTick', 'defineEmits', 'defineExpose', 'defineSlots', 'provide', 'inject', 'useColorMode', 'useDark', 'useMediaQuery', 'useScrollLock', 'usePreferredDark', 'usePreferredLight', 'usePreferredReducedMotion', 'usePreferredContrast', 'window', 'document', 'console', 'confirm', 'alert', 'fetch', 'params'];
22
+ export declare const STX_ENGINE_BINDING_NAMES: readonly ['module', 'exports', 'require', 'props', '$props', 'defineProps', 'withDefaults', 'defineClientPayload', 'state', 'derived', 'effect', 'batch', 'onMount', 'onDestroy', 'definePageMeta', 'useRoute', 'useRouter', 'useHead', 'useSeoMeta', 'setResponseStatus', 'setResponseHeader', 'notFound', 'ref', 'reactive', 'computed', 'watch', 'onMounted', 'onUnmounted', 'nextTick', 'defineEmits', 'defineExpose', 'defineSlots', 'provide', 'inject', 'useColorMode', 'useDark', 'useMediaQuery', 'useScrollLock', 'usePreferredDark', 'usePreferredLight', 'usePreferredReducedMotion', 'usePreferredContrast', 'window', 'document', 'console', 'confirm', 'alert', 'fetch', 'params'];
23
23
  /**
24
24
  * Strip TypeScript-specific syntax to make it executable as JavaScript
25
25
  *
@@ -21,6 +21,9 @@ export const STX_ENGINE_BINDING_NAMES = [
21
21
  "useRouter",
22
22
  "useHead",
23
23
  "useSeoMeta",
24
+ "setResponseStatus",
25
+ "setResponseHeader",
26
+ "notFound",
24
27
  "ref",
25
28
  "reactive",
26
29
  "computed",
@@ -54,6 +57,7 @@ import { findMatchingDelimiter } from "./parser/tokenizer.js";
54
57
  import { mergeHeadConfigs, seoMetaToHeadConfig } from "./head.js";
55
58
  import { getPublicEnvDefine } from "./public-env.js";
56
59
  import { safeEvaluate } from "./safe-evaluator.js";
60
+ import { responseBindings } from "./page-response.js";
57
61
  function extractDeclaredVariableNames(script) {
58
62
  const names = [];
59
63
  let depth = 0;
@@ -372,7 +376,7 @@ export async function extractVariables(scriptContent, context, filePath, options
372
376
  }
373
377
  return cached;
374
378
  };
375
- }, effect = (_fn) => {}, batch = (fn) => fn(), onMount = (_fn) => {}, onDestroy = (_fn) => {};
379
+ }, effect = (_fn) => {}, batch = (fn) => fn(), onMount = (_fn) => {}, onDestroy = (_fn) => {}, responseApi = responseBindings(context);
376
380
  function definePageMeta(meta) {
377
381
  const config = meta || {};
378
382
  if (config.title !== void 0 || config.description !== void 0)
@@ -545,7 +549,7 @@ export async function extractVariables(scriptContent, context, filePath, options
545
549
  ${convertedScript}
546
550
  ${reSyncCode}
547
551
  return module.exports
548
- })()`)(module, exports, requireFn, propsObj, $props, defineProps, withDefaults, defineClientPayload, state, derived, effect, batch, onMount, onDestroy, definePageMeta, useRoute, useRouter, useHead, useSeoMeta, ref, reactive, computed, watch, onMounted, onUnmounted, nextTick, defineEmits, defineExpose, defineSlots, provide, inject, useColorMode, useDark, useMediaQuery, useScrollLock, usePreferredDark, usePreferredLight, usePreferredReducedMotion, usePreferredContrast, windowProxy, mockDocument, mockConsole, mockWindow.confirm, mockWindow.alert, mockWindow.fetch, paramsObj, ...propArgValues, ...scriptContextValues);
552
+ })()`)(module, exports, requireFn, propsObj, $props, defineProps, withDefaults, defineClientPayload, state, derived, effect, batch, onMount, onDestroy, definePageMeta, useRoute, useRouter, useHead, useSeoMeta, responseApi.setResponseStatus, responseApi.setResponseHeader, responseApi.notFound, ref, reactive, computed, watch, onMounted, onUnmounted, nextTick, defineEmits, defineExpose, defineSlots, provide, inject, useColorMode, useDark, useMediaQuery, useScrollLock, usePreferredDark, usePreferredLight, usePreferredReducedMotion, usePreferredContrast, windowProxy, mockDocument, mockConsole, mockWindow.confirm, mockWindow.alert, mockWindow.fetch, paramsObj, ...propArgValues, ...scriptContextValues);
549
553
  if (options.preserveExisting) {
550
554
  for (const [key, value] of Object.entries(result))
551
555
  if (!(key in context) || context[key] === void 0)
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-trtm887x.js";import B from"fs";import $ from"path";import k from"crypto";var V=[{name:"mobile",width:375,height:667,isMobile:!0,hasTouch:!0},{name:"tablet",width:768,height:1024,isMobile:!0,hasTouch:!0},{name:"desktop",width:1280,height:800,isMobile:!1,hasTouch:!1},{name:"wide",width:1920,height:1080,isMobile:!1,hasTouch:!1}];function J(N={}){let Y={snapshotDir:N.snapshotDir||"__snapshots__",screenshotDir:N.screenshotDir||"__screenshots__",updateSnapshots:N.updateSnapshots||process.env.UPDATE_SNAPSHOTS==="true",threshold:N.threshold??0.01,viewports:N.viewports||V,generateDiff:N.generateDiff??!0,diffDir:N.diffDir||"__diffs__",compare:N.compare||b,ci:N.ci??process.env.CI==="true",retries:N.retries??(N.ci?3:1)};return{async snapshot(M,X){let q=$.join(Y.snapshotDir,`${X}.html`),G=C(M),Q=K(G);if(await Bun.file(q).exists()){let W=await Bun.file(q).text(),Z=K(C(W));if(Q===Z)return{passed:!0,snapshotPath:q,message:"Snapshot matches"};if(Y.updateSnapshots)return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};let F=$.join(Y.diffDir,`${X}.actual.html`),U=$.join(Y.diffDir,`${X}.diff.html`);return await B.promises.mkdir(Y.diffDir,{recursive:!0}),await Bun.write(F,G),await Bun.write(U,I(W,G)),{passed:!1,snapshotPath:q,actualPath:F,diffPath:U,message:"Snapshot does not match"}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},async snapshotJson(M,X){let q=$.join(Y.snapshotDir,`${X}.json`),G=JSON.stringify(M,null,2);if(await Bun.file(q).exists()){let Q=await Bun.file(q).text();if(G===Q)return{passed:!0,snapshotPath:q};if(Y.updateSnapshots)return await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};return{passed:!1,snapshotPath:q,message:`JSON snapshot mismatch:
2
+ import"./chunk-8rn5e39c.js";import B from"fs";import $ from"path";import k from"crypto";var V=[{name:"mobile",width:375,height:667,isMobile:!0,hasTouch:!0},{name:"tablet",width:768,height:1024,isMobile:!0,hasTouch:!0},{name:"desktop",width:1280,height:800,isMobile:!1,hasTouch:!1},{name:"wide",width:1920,height:1080,isMobile:!1,hasTouch:!1}];function J(N={}){let Y={snapshotDir:N.snapshotDir||"__snapshots__",screenshotDir:N.screenshotDir||"__screenshots__",updateSnapshots:N.updateSnapshots||process.env.UPDATE_SNAPSHOTS==="true",threshold:N.threshold??0.01,viewports:N.viewports||V,generateDiff:N.generateDiff??!0,diffDir:N.diffDir||"__diffs__",compare:N.compare||b,ci:N.ci??process.env.CI==="true",retries:N.retries??(N.ci?3:1)};return{async snapshot(M,X){let q=$.join(Y.snapshotDir,`${X}.html`),G=C(M),Q=K(G);if(await Bun.file(q).exists()){let W=await Bun.file(q).text(),Z=K(C(W));if(Q===Z)return{passed:!0,snapshotPath:q,message:"Snapshot matches"};if(Y.updateSnapshots)return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};let F=$.join(Y.diffDir,`${X}.actual.html`),U=$.join(Y.diffDir,`${X}.diff.html`);return await B.promises.mkdir(Y.diffDir,{recursive:!0}),await Bun.write(F,G),await Bun.write(U,I(W,G)),{passed:!1,snapshotPath:q,actualPath:F,diffPath:U,message:"Snapshot does not match"}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},async snapshotJson(M,X){let q=$.join(Y.snapshotDir,`${X}.json`),G=JSON.stringify(M,null,2);if(await Bun.file(q).exists()){let Q=await Bun.file(q).text();if(G===Q)return{passed:!0,snapshotPath:q};if(Y.updateSnapshots)return await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"Snapshot updated"};return{passed:!1,snapshotPath:q,message:`JSON snapshot mismatch:
3
3
  ${z(Q,G)}`}}return await B.promises.mkdir($.dirname(q),{recursive:!0}),await Bun.write(q,G),{passed:!0,snapshotPath:q,message:"New snapshot created"}},matchInlineSnapshot(M,X){let q=C(M);if(X===void 0)return{passed:!0,expected:q};let G=C(X);return{passed:q===G,expected:q}},getConfig(){return Y}}}function D(N={}){let Y=J(N),M=Y.getConfig();return{async compareScreenshots(X,q,G="desktop"){let Q=$.join(M.screenshotDir,G,`${X}.png`),W=$.join(M.diffDir,G,`${X}.actual.png`),Z=$.join(M.diffDir,G,`${X}.diff.png`);if(await Bun.file(Q).exists()){let F=await Bun.file(Q).arrayBuffer(),U=Buffer.from(F),_=await M.compare(q,U);if(_.match||_.diffPercentage<=M.threshold)return{viewport:G,passed:!0,baselinePath:Q};if(M.updateSnapshots)return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q};if(await B.promises.mkdir($.dirname(W),{recursive:!0}),await Bun.write(W,q),_.diffImage&&M.generateDiff)await Bun.write(Z,_.diffImage);return{viewport:G,passed:!1,baselinePath:Q,actualPath:W,diffPath:M.generateDiff?Z:void 0,diffPercentage:_.diffPercentage}}return await B.promises.mkdir($.dirname(Q),{recursive:!0}),await Bun.write(Q,q),{viewport:G,passed:!0,baselinePath:Q}},async testViewports(X,q,G=M.viewports){let Q=[];for(let W of G){let Z=null;for(let F=0;F<M.retries;F++)try{let U=await q(W),_=await this.compareScreenshots(X,U,W.name);Q.push(_),Z=null;break}catch(U){if(Z=U,F<M.retries-1)await new Promise((_)=>setTimeout(_,100*(F+1)))}if(Z)Q.push({viewport:W.name,passed:!1,baselinePath:"",diffPercentage:100})}return Q},getSnapshotTester(){return Y}}}function L(N={}){let M=D(N).getSnapshotTester(),X=new Map;return{addStory(q){X.set(`${q.component}/${q.name}`,q)},addStories(q){for(let G of q)this.addStory(G)},getStories(){return Array.from(X.values())},getStoriesForComponent(q){return Array.from(X.values()).filter((G)=>G.component===q)},async testStory(q){let G=X.get(q);if(!G)return{name:q,passed:!1,duration:0,snapshots:[],screenshots:[],errors:[Error(`Story not found: ${q}`)]};let Q=Date.now(),W={name:q,passed:!0,duration:0,snapshots:[],screenshots:[],errors:[]};try{let Z=await G.render(),F=await M.snapshot(Z,q.replace(/\//g,"-"));if(W.snapshots.push(F),!F.passed)W.passed=!1}catch(Z){W.passed=!1,W.errors.push(Z)}return W.duration=Date.now()-Q,W},async testAllStories(){let q=[];for(let G of X.keys()){let Q=await this.testStory(G);q.push(Q)}return q},async generateStoryIndex(){let q={};for(let G of X.values()){if(!q[G.component])q[G.component]=[];q[G.component].push({name:G.name,args:G.args})}return JSON.stringify(q,null,2)}}}async function S(N,Y={}){let M={outputDir:Y.outputDir||"visual-test-report",format:Y.format||"html",title:Y.title||"Visual Test Report",includeScreenshots:Y.includeScreenshots??!0};await B.promises.mkdir(M.outputDir,{recursive:!0});let X=N.length,q=N.filter((F)=>F.passed).length,G=X-q,Q=N.reduce((F,U)=>F+U.duration,0);if(M.format==="json"){let F={title:M.title,summary:{total:X,passed:q,failed:G,duration:Q},results:N,generatedAt:new Date().toISOString()},U=$.join(M.outputDir,"report.json");return await Bun.write(U,JSON.stringify(F,null,2)),U}if(M.format==="markdown"){let F=`# ${M.title}
4
4
 
5
5
  `;F+=`## Summary
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/stx",
3
3
  "type": "module",
4
- "version": "0.2.218",
4
+ "version": "0.2.220",
5
5
  "description": "A performant UI Framework. Powered by Bun.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -117,12 +117,12 @@
117
117
  "dependencies": {
118
118
  "@cwcss/crosswind": "^0.2.14",
119
119
  "@stacksjs/clapp": "^0.2.0",
120
- "@stacksjs/desktop": "0.2.218",
121
- "@stacksjs/sanitizer": "0.2.218",
120
+ "@stacksjs/desktop": "0.2.220",
121
+ "@stacksjs/sanitizer": "0.2.220",
122
122
  "@stacksjs/ts-i18n": "^0.1.11",
123
- "bun-plugin-stx": "0.2.218",
123
+ "bun-plugin-stx": "0.2.220",
124
124
  "bunfig": "^0.15.17",
125
- "stx-router": "0.2.218",
125
+ "stx-router": "0.2.220",
126
126
  "ts-broadcasting": "^0.0.9",
127
127
  "ts-images": "^0.2.11",
128
128
  "ts-syntax-highlighter": "^0.2.1"
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ef as a}from"./chunk-fvpaf9v5.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as startInteractive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Zp as a,jq as b,kq as c,lq as d,mq as e}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{d as validateClientScript,c as processOnceDirective,b as processJsonDirective,e as processDirectives,a as injectRouterScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jo as a,Ko as b,Lo as c,Mo as d,No as e,Oo as f,Po as g,Qo as h,Ro as i,So as j}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{b as stripTypeScript,h as splitDeclaration,c as isModuleResolutionFailure,d as isMissingBindingFailure,f as isCompleteImport,j as hasVariables,e as extractVariables,i as extractScriptFromTemplate,g as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Tj as a,Uj as b,Vj as c,Wj as d}from"./chunk-hncp9gz6.js";import"./chunk-trtm887x.js";export{d as default,c as createHotReloadServer,b as compileToNative,a as NATIVE_COMPONENTS};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Qh as a,Rh as b,Sh as c,Th as d,Uh as e}from"./chunk-w0ng9e1m.js";import"./chunk-trtm887x.js";export{c as renderSSRSuspense,a as processSuspenseDirectives,e as generateSuspenseRuntime,d as generateSuspenseCSS,b as createSSRSuspense};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{eh as a}from"./chunk-z2sp0k8d.js";import"./chunk-trtm887x.js";export{a as rewriteImagesWithSiblings};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$k as h,Uk as a,Vk as b,Wk as c,Xk as d,Yk as e,Zk as f,_k as g,al as i}from"./chunk-dmb6t0qj.js";import"./chunk-zgvga8rc.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as shouldLogBundlerDiagnostics,e as setBundlerFallbackMode,f as resolveBundlerFallback,b as recordBundleFailure,h as queueClientBundleBuild,g as hasUserImports,c as getBundleFailures,d as clearBundleFailures,i as bundleClientScript};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{gk as a,hk as b,ik as c,jk as d}from"./chunk-7md45k52.js";import"./chunk-n4smz31k.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Pk as a,Qk as b,Rk as c,Sk as d,Tk as e}from"./chunk-53ajah3v.js";import"./chunk-trtm887x.js";export{b as injectPwaTags,e as generateThemeColorMeta,c as generateSwRegistrationScript,a as generatePwaTags,d as generateManifestLink};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cf as a,df as b}from"./chunk-9xh78snm.js";import"./chunk-trtm887x.js";export{b as captureScreenshots,a as captureScreenshot};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$p as b,_p as a,aq as c,bq as d,cq as e,dq as f,eq as g,fq as h,gq as i,hq as j,iq as k}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as scanScriptTags,k as rewriteStxImportSpecifiers,i as processSignals,g as processScriptSetup,e as preEvalLiteralReactiveIfs,b as parseLoopExpression,c as hasSignalsSyntax,j as findMarkupIndexOutsideScripts,h as extractExports,f as convertSignalLoopsToAttributes,d as convertSignalDirectivesToAttributes};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ff as a}from"./chunk-9064gyt5.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as buildApp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Tf as a,Uf as b}from"./chunk-s7dqawk0.js";import"./chunk-a2rj5ce0.js";import"./chunk-trtm887x.js";export{a as handleImageRequest,b as createImageHandler};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ji as a,Ki as b,Li as c,Mi as d,Ni as e,Oi as f,Pi as g,Qi as h,Ri as i,Si as j,Ti as k}from"./chunk-1bvstnz4.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as templateCache,b as readFileCached,d as invalidateFileCacheByDir,c as invalidateFileCache,k as hashFilePath,f as getCachedSignalsRuntime,g as getCachedRouterScript,h as clearDevCaches,i as checkCache,j as cacheTemplate,e as __setSignalsGeneratorsForTest};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xg as a}from"./chunk-e6377wfq.js";import"./chunk-p7qqbw2k.js";import"./chunk-qd1nadff.js";import"./chunk-j3njy10j.js";import"./chunk-3es366z4.js";import"./chunk-yckd6ks5.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as buildForProduction};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Tg as n}from"./chunk-qd1nadff.js";import{No as f,Yp as p,bm as b,cm as S,lm as k,sm as q}from"./chunk-zat2ndst.js";import{Wt as c,_t as XG,tt as d}from"./chunk-z47tw39z.js";import{iu as T}from"./chunk-trtm887x.js";import l from"fs";import F from"path";var{serve:ZG}=globalThis.Bun;function R(G,J,K={}){let Q=`${encodeURIComponent(G)}=${encodeURIComponent(J)}`;if(K.maxAge!==void 0)Q+=`; Max-Age=${K.maxAge}`;if(K.expires)Q+=`; Expires=${K.expires.toUTCString()}`;if(K.path)Q+=`; Path=${K.path}`;if(K.domain)Q+=`; Domain=${K.domain}`;if(K.secure)Q+="; Secure";if(K.httpOnly)Q+="; HttpOnly";if(K.sameSite)Q+=`; SameSite=${K.sameSite}`;return Q}async function i(G){let J=G.headers.get("content-type")||"",K={},Q=(X,Z)=>{let $=K[X];if($===void 0)K[X]=Z;else if(Array.isArray($))$.push(Z);else K[X]=[$,Z]};if(J.includes("multipart/form-data")){let X=await G.formData();for(let[Z,$]of X.entries())if(typeof $==="string")Q(Z,$);return K}if(J.includes("application/x-www-form-urlencoded")){for(let[X,Z]of new URLSearchParams(await G.text()).entries())Q(X,Z);return K}return K}function C(G){if(!G)return!1;let J=G.toUpperCase();return J!=="GET"&&J!=="HEAD"}async function y(G,J={}){let K=J.request,Q=J.method??K?.method;if(!K||!C(Q))return{ran:!1};if(typeof G.action!=="function")return{ran:!1};let X={};try{X=await i(K)}catch{}let Z=await G.action({request:K,form:X,params:J.params??{},query:G.query??{},cookies:J.cookies??{}});if(Z&&typeof Z==="object"){let $=Z,U=a($.cookies),I=$.redirect;if(typeof I==="string"&&I)return{redirect:I,ran:!0,...U.length>0?{cookies:U}:{}};let{cookies:V,redirect:A,...O}=$;if(Object.assign(G,O),U.length>0)return{ran:!0,cookies:U}}return{ran:!0}}function a(G){if(!G||typeof G!=="object"||Array.isArray(G))return[];let J=[];for(let[K,Q]of Object.entries(G)){if(!K)continue;if(typeof Q==="string"){J.push(R(K,Q));continue}if(Q&&typeof Q==="object"){let X=Q;if(typeof X.value!=="string")continue;J.push(R(K,X.value,X))}}return J}function v(G,J=[]){let K=new Headers({Location:G,"Cache-Control":"no-store"});for(let Q of J)K.append("Set-Cookie",Q);return new Response(null,{status:303,headers:K})}async function LG(G,J={}){return(await x(G,J)).html}async function g(G,J={}){let{html:K,context:Q,redirect:X,cookies:Z}=await x(G,J);if(X)return{html:K,redirect:X,cookies:Z};let{extractStreamBoundaries:$}=await import("./chunk-njkv35c3.js"),U=$(Q),I=G.streamTemplates;if(I&&Object.keys(I).length>0){let{processDirectives:V}=await import("./chunk-17atrbv2.js"),{defaultConfig:A}=await import("./chunk-dcy8hg45.js"),O=Q.streamBoundaries||{},D={...A,autoShell:!1},j=Object.keys(I).map((_)=>({id:_,render:async()=>{let M=typeof O[_]==="function"?await O[_]():void 0;return V(I[_],{...Q,$boundary:M},G.sourceFile,D,new Set)}})),N=new Set(j.map((_)=>_.id));U=[...(U||[]).filter((_)=>!N.has(_.id)),...j]}return{html:K,boundaries:U&&U.length>0?U:void 0,cookies:Z}}async function x(G,J){let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};if(!G.hasServerScripts&&!S(G.html))return{html:G.html,context:K};for(let Z of G.serverScriptContent)try{await f(Z,K,G.sourceFile)}catch($){console.warn(`[stx] Server script error in ${G.sourceFile}:`,$)}let Q=await y(K,{request:J.request,method:J.method,params:J.params??{},cookies:J.cookies??{}});if(Q.redirect)return{html:G.html,context:K,redirect:Q.redirect,cookies:Q.cookies};if(!S(G.html))return{html:G.html,context:K,cookies:Q.cookies};let X=new Map;for(let[Z,$]of Object.entries(G.placeholders))if($.expression)try{let U=q($.expression,K);if($.type==="raw")X.set(Z,U!==void 0&&U!==null?String(U):"");else X.set(Z,U!==void 0&&U!==null?k(String(U)):"")}catch{X.set(Z,"")}return{html:b(G.html,X),context:K,cookies:Q.cookies}}async function VG(G,J={}){if(!G.hasServerScripts&&!S(G.fragment))return G.fragment;let K={__filename:G.sourceFile,__dirname:G.sourceFile.replace(/[/\\][^/\\]+$/,""),...J};for(let X of G.serverScriptContent)try{await f(X,K,G.sourceFile)}catch(Z){console.warn(`[stx] Server script error in ${G.sourceFile}:`,Z)}if(!S(G.fragment))return G.fragment;let Q=new Map;for(let[X,Z]of Object.entries(G.placeholders))if(Z.expression)try{let $=q(Z.expression,K);if(Z.type==="raw")Q.set(X,$!==void 0&&$!==null?String($):"");else Q.set(X,$!==void 0&&$!==null?k(String($)):"")}catch{Q.set(X,"")}return b(G.fragment,Q)}XG();import E from"zlib";import{promisify as u}from"util";var s=u(E.brotliCompress),t=u(E.gzip),o=["text/","application/json","application/javascript","application/xml","application/xhtml+xml","application/rss+xml","application/atom+xml","application/manifest+json","image/svg+xml"],e=["text/event-stream","multipart/x-mixed-replace"],GG=1024;function JG(G){if(!G)return!1;let J=G.toLowerCase();if(e.some((K)=>J.startsWith(K)))return!1;return o.some((K)=>J.startsWith(K))}function KG(G){let J=new Map;for(let K of G.split(",")){let[Q,...X]=K.trim().split(";"),Z=Q.trim().toLowerCase();if(!Z)continue;let $=1;for(let U of X){let I=/^\s*q\s*=\s*([\d.]+)\s*$/i.exec(U);if(!I)continue;let V=Number.parseFloat(I[1]);if(Number.isFinite(V))$=V}J.set(Z,$)}return J}function QG(G){if(!G)return null;let J=KG(G),K=J.get("*"),Q=(X)=>J.get(X)??K??0;if(Q("br")>0)return"br";if(Q("gzip")>0)return"gzip";return null}async function m(G,J,K={}){if(J.headers.get("content-encoding"))return J;if(J.status===204||J.status===304||!J.body)return J;if(!JG(J.headers.get("content-type")))return J;let Q=QG(G.headers.get("accept-encoding"));if(!Q)return J;let X;try{X=new Uint8Array(await J.arrayBuffer())}catch{return J}let Z=()=>new Response(X,{status:J.status,statusText:J.statusText,headers:h(J.headers)});if(X.length<(K.threshold??GG))return Z();try{let $=Q==="br"?await s(X,{params:{[E.constants.BROTLI_PARAM_QUALITY]:K.quality??5,[E.constants.BROTLI_PARAM_SIZE_HINT]:X.length}}):await t(X);if($.length>=X.length)return Z();let U=h(J.headers);return U.set("Content-Encoding",Q),U.set("Content-Length",String($.length)),new Response($,{status:J.status,statusText:J.statusText,headers:U})}catch{return Z()}}function h(G){let J=new Headers(G),K=J.get("Vary");if(!K)return J.set("Vary","Accept-Encoding"),J;if(!K.split(",").some((X)=>X.trim().toLowerCase()==="accept-encoding"))J.set("Vary",`${K}, Accept-Encoding`);return J}var $G={".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 bG(G={}){let J=F.resolve(G.outputDir||".output"),K=G.port||3000,Q=n(J);if(!Q)console.error("[stx] No build manifest found. Run `stx build` first."),process.exit(1);console.log(`[stx] Production server loading ${Q.routes.length} routes...`);let X=new Map,Z=new Map,$=new Map,U=new Map;for(let O of Q.routes)try{let D=F.join(J,O.compiledPath),j=JSON.parse(await Bun.file(D).text());X.set(O.pattern,j),$.set(O.pattern,c(j.html)),U.set(O.pattern,p(j.html));let N=F.join(J,O.fragmentPath);if(await Bun.file(N).exists())Z.set(O.pattern,await Bun.file(N).text())}catch(D){console.warn(`[stx] Failed to load route ${O.pattern}:`,D)}let I=new Map,V=[];for(let O of Q.routes)if(O.hasParams){let{regex:D,params:j}=d(O.pattern);V.push({regex:D,route:O,paramNames:j})}else I.set(O.pattern,O);let A=ZG({port:K,async fetch(O){return m(O,await(async()=>{let j=new URL(O.url).pathname;if(G.onRequest){let W=await G.onRequest(O);if(W)return W}if(G.apiRoutes?.[j])return G.apiRoutes[j](O);if((O.method==="GET"||O.method==="HEAD")&&j!=="/"){let W=F.resolve(J,"public"),Y;try{Y=decodeURIComponent(j)}catch{Y=j}if(!Y.includes("\x00")){let L=F.resolve(W,`.${Y}`);if(L===W||L.startsWith(`${W}${F.sep}`))try{if(l.existsSync(L)&&l.statSync(L).isFile()){let w=F.extname(L).toLowerCase(),H=$G[w]||"application/octet-stream",P=j.startsWith("/__stx/")||/\.[0-9a-f]{8}\./.test(j);return new Response(Bun.file(L),{headers:{"Content-Type":H,"Cache-Control":P?"public, max-age=31536000, immutable":"public, max-age=3600"}})}}catch{}}}let N=O.headers.get("X-STX-Router")==="true",_=null,M={};if(_=I.get(j)||null,!_)for(let{regex:W,route:Y,paramNames:L}of V){let B=j.match(W);if(B){_=Y,L.forEach((w,H)=>{M[w]=B[H+1]});break}}if(!_){let W=I.get("/404")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:404,headers:{"Content-Type":"text/html"}})}return new Response("Not Found",{status:404})}if(N){let W=Z.get(_.pattern);if(W){let Y=$.get(_.pattern);return new Response(W,{headers:{"Content-Type":"text/html","X-STX-Fragment":"true",...U.has(_.pattern)?{"X-STX-Runtime":U.get(_.pattern)?"true":"false"}:{},...Y?{"X-STX-Layout":Y.layout,"X-STX-Layout-Group":Y.group}:{},"Cache-Control":"no-cache"}})}}let r=C(O.method),z=X.get(_.pattern);if(!z){let W=I.get("/500")||null;if(W){let Y=X.get(W.pattern);if(Y)return new Response(Y.html,{status:500,headers:{"Content-Type":"text/html"}})}return new Response("Internal Server Error",{status:500})}if(!r&&!z.hasServerScripts&&Object.keys(z.placeholders).length===0)return new Response(z.html,{headers:{"Content-Type":"text/html","Cache-Control":"public, max-age=60"}});try{let{html:W,boundaries:Y,redirect:L,cookies:B}=await g(z,{params:M,request:O,method:O.method});if(L)return v(L,B);if(Y&&Y.length>0){let{renderStreamingPage:H,streamToResponse:P}=await import("./chunk-njkv35c3.js");return P(H(W,Y,{timeoutMs:30000}),{headers:{"Cache-Control":"no-cache"}})}let w=new Headers({"Content-Type":"text/html","Cache-Control":"no-cache"});for(let H of B??[])w.append("Set-Cookie",H);return new Response(W,{headers:w})}catch(W){return console.error(`[stx] Hydration error for ${j}:`,W),new Response(z.html,{headers:{"Content-Type":"text/html"}})}})())}});return console.log(`[stx] Production server running at http://localhost:${K}`),console.log(`[stx] Serving ${Q.routes.length} routes (${X.size} pre-loaded)`),{port:K,stop:()=>A.stop()}}
3
- export{JG as gf,QG as hf,m as if,R as jf,i as kf,C as lf,y as mf,v as nf,LG as of,g as pf,VG as qf,bG as rf};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fs as a,gs as b}from"./chunk-khrtzbxd.js";import"./chunk-trtm887x.js";export{b as resolveStxTargets,a as looksLikeGlob};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fm as a,gm as b,hm as c,im as d,jm as e,km as f,lm as g,mm as h,nm as i,om as j,pm as k,qm as l,rm as m,sm as n,tm as o}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{h as usesSignalsInScript,o as unescapeHtml,c as registerFilters,b as registerFilter,l as processExpressions,k as interpolateScriptsInTemplate,i as interpolateScriptExpressions,j as interpolateScriptAttributes,d as getAllFilters,n as evaluateExpression,g as escapeHtmlValue,f as escapeHtml,a as defaultFilters,e as clearCustomFilters,m as applyFilters};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{bj as a,cj as b}from"./chunk-b6jhznkh.js";import"./chunk-trtm887x.js";export{a as processTeleportDirectives,b as ensureTeleportTargets};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{To as a,Uo as b}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{b as processLoops,a as parseLoopBinding};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Jr as a,Kr as b,Lr as c,Mr as d,Nr as e,Or as f}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{f as validateConfig,b as resolveStxDirectories,c as loadStxConfig,e as defineStxConfig,a as defaultConfig,d as config};
@@ -1,4 +0,0 @@
1
- // @bun
2
- import{Cg as a}from"./chunk-p7qqbw2k.js";import{Og as n,Qg as FF,Rg as YF,Sg as ZF}from"./chunk-qd1nadff.js";import{xj as C,yj as D}from"./chunk-j3njy10j.js";import{Ak as XF,yk as JF,zk as QF}from"./chunk-yckd6ks5.js";import{$l as d,Ap as r,Jr as c,Lr as N,Op as o,Vp as e,Wp as t,Zl as l,mq as u}from"./chunk-zat2ndst.js";import{Hs as s}from"./chunk-pezxve4a.js";import{Yt as S,_t as zF}from"./chunk-z47tw39z.js";import G from"fs";import Z from"path";import{createHash as WF}from"crypto";zF();function g(J){return WF("sha256").update(J).digest("hex").slice(0,8)}function f(J=!1){let q=J?D():C(),z=g(q);return{content:q,filename:`runtime.${z}.js`,hash:z}}function m(){let J=S(),q=g(J);return{content:J,filename:`router.${q}.js`,hash:q}}function KF(J){return{runtimeTag:J.runtime?`<script src="/__stx/${J.runtime.filename}"></script>`:"",routerTag:J.router?`<script src="/__stx/${J.router.filename}"></script>`:"",cssTag:J.css?`<link rel="stylesheet" href="/__stx/${J.css.filename}">`:""}}import h from"path";import{createHash as $F}from"crypto";function GF(J={}){let q=new Set;return{context:new Proxy(J,{get(Q,X){if(X in Q)return Q[X];if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return},has(Q,X){if(X in Q)return!0;if(typeof X==="string"&&!X.startsWith("__"))q.add(X);return!1}}),accessedKeys:q}}async function p(J,q,z={}){let Q=h.resolve(J),X=await Bun.file(Q).text(),I=$F("sha256").update(X).digest("hex").slice(0,16);l();let K={};try{K=await N()}catch{}let B=[],V=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,k;while((k=V.exec(X))!==null){let $=k[1];if(/\bserver\b/.test($))B.push(k[2])}let W=new Set(B.flatMap(($)=>a($))),{context:E}=GF({__filename:Q,__dirname:h.dirname(Q),__stx_serverDeclared:W}),L=new Set,_={...c,...K,...z,buildMode:"compile",strict:!1},w=await u(X,E,Q,_,L),U=n(w),H=d();return{route:q,sourceFile:J,html:w,fragment:U,placeholders:H,hasServerScripts:B.length>0,serverScriptContent:B,dependencies:Array.from(L),contentHash:I,streamTemplates:E.__streamTemplates}}var VF=new Set([".DS_Store","Thumbs.db","desktop.ini",".gitkeep",".gitignore"]);function i(J,q){let z=0,Q=0;if(!G.existsSync(J))return{copied:z,bytes:Q};G.mkdirSync(q,{recursive:!0});function X(I,K){let B=G.readdirSync(I,{withFileTypes:!0});for(let V of B){if(VF.has(V.name))continue;let k=Z.join(I,V.name),W=Z.join(K,V.name);if(V.isDirectory())G.mkdirSync(W,{recursive:!0}),X(k,W);else if(V.isFile()){if(G.existsSync(W))continue;G.copyFileSync(k,W),z++,Q+=G.statSync(W).size}}}return X(J,q),{copied:z,bytes:Q}}async function mF(J={}){let q=Date.now(),z=Z.resolve(J.root||process.cwd()),Q=Z.resolve(z,J.outputDir||".output");console.log("[stx build] Starting production build...");let X={};try{X=await N()}catch{}let I=J.componentsDir??X.componentsDir??"components",K=J.partialsDir??X.partialsDir??"partials",B=J.layoutsDir??X.layoutsDir??"layouts",V=J.publicDir??X.publicDir??"public",k=X.app?.head||{},W=X.app?.colorMode,E=X.router?.container||"main";if(G.existsSync(Q))G.rmSync(Q,{recursive:!0});let L=[Z.join(Q,"public","__stx"),Z.join(Q,"public","assets"),Z.join(Q,"server","pages"),Z.join(Q,"server","fragments")];for(let Y of L)G.mkdirSync(Y,{recursive:!0});console.log("[stx build] Discovering routes...");let _=t(z),w=["components","layouts","partials"],U=_.filter((Y)=>{return!w.some((F)=>Y.pattern.startsWith(`/${F}/`)||Y.pattern===`/${F}`)});console.log(`[stx build] Found ${U.length} page routes (${_.length-U.length} non-page files excluded)`),console.log("[stx build] Generating shared assets...");let H=f(J.debug),$=m();await Bun.write(Z.join(Q,"public","__stx",H.filename),H.content),await Bun.write(Z.join(Q,"public","__stx",$.filename),$.content),console.log(`[stx build] Runtime: ${H.filename} (${(H.content.length/1024).toFixed(1)}KB)`),console.log(`[stx build] Router: ${$.filename} (${($.content.length/1024).toFixed(1)}KB)`),console.log("[stx build] Compiling templates...");let O=[],j=[];for(let Y of U)try{let F=await p(Y.filePath,Y.pattern,{componentsDir:I,partialsDir:K,layoutsDir:B,debug:J.debug});if(O.push(F),F.html=F.html.replace(/runtime\.__STX_HASH__\.js/g,H.filename).replace(/router\.__STX_HASH__\.js/g,$.filename),F.html=e(F.html,k,{bodyScripts:[`<script src="/__stx/${$.filename}"></script>`],...W&&{colorMode:W}}),W)F.html=r(F.html,W);if(k.htmlAttrs)F.html=o(F.html,k.htmlAttrs);if(!/<body[^>]*\bdata-stx=/.test(F.html)){let T=F.html.match(/<(?!body\b)[a-zA-Z][a-zA-Z0-9-]*\b[^>]*?\s(data-stx="[^"]+")[^>]*>/);if(T&&T[1]){let P=T[1];F.html=F.html.replace(" "+P,""),F.html=F.html.replace(/<body([^>]*)>/,`<body$1 ${P}>`)}}F.html=F.html.replace(/<style data-crosswind="generated">[\s\S]*?<\/style>\s*/g,""),F.html=await s(F.html),F.fragment=FF(F.html,E);let y=Y.pattern==="/"?"index":Y.pattern.slice(1).replace(/\//g,"-").replace(/[[\]]/g,"_"),b=Z.join("server","pages",`${y}.compiled.json`),A=Z.join("server","fragments",`${y}.html`);await Bun.write(Z.join(Q,b),JSON.stringify(F,null,2)),await Bun.write(Z.join(Q,A),F.fragment),j.push({pattern:Y.pattern,compiledPath:b,fragmentPath:A,isDynamic:F.hasServerScripts,hasParams:Y.pattern.includes(":")||Y.pattern.includes("[")}),console.log(`[stx build] \u2713 ${Y.pattern}`)}catch(F){console.error(`[stx build] \u2717 ${Y.pattern}:`,F instanceof Error?F.message:F)}let M=Z.resolve(z,V);if(G.existsSync(M)){let{copied:Y,bytes:F}=i(M,Z.join(Q,"public"));if(Y>0)console.log(`[stx build] Copied ${Y} public asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${V}/`)}let v=XF(z);if(v){let{copied:Y,bytes:F}=i(v,Z.join(Q,"public",QF));if(Y>0)console.log(`[stx build] Copied ${Y} asset${Y===1?"":"s"} (${(F/1024).toFixed(1)}KB) from ${JF}/`)}let R={runtime:H.filename,router:$.filename},qF=YF(j,R,Q);ZF(qF,Q);let x=Date.now()-q;return console.log(`
3
- [stx build] Done in ${x}ms \u2014 ${O.length} pages compiled`),{pageCount:O.length,assets:R,outputDir:Q,duration:x}}
4
- export{g as sg,f as tg,m as ug,KF as vg,p as wg,mF as xg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Wi as a,Xi as b,Yi as c}from"./chunk-mxqp7x07.js";import"./chunk-ht51fz7w.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as listComposableModules,b as getComposableScript,c as clearComposableCache};
@@ -1,18 +0,0 @@
1
- // @bun
2
- import{Bl as D,Cl as b,Fo as y,Jr as k,No as x,Sl as F,Ul as T,Zp as M,mq as R}from"./chunk-zat2ndst.js";import{iu as C}from"./chunk-trtm887x.js";function j(K){return K.endsWith(".md")||K.endsWith(".markdown")}function w(K){let G=[];$(/<pre\b[^>]*>[\s\S]*?<\/pre>/gi);let J=[...G];$(/<code\b[^>]*>[\s\S]*?<\/code>/gi,J);function $(N,Y){let E;while((E=N.exec(K))!==null){let q=E.index,z=q+E[0].length;if(Y?.some((U)=>q>=U.start&&z<=U.end))continue;G.push({start:q,end:z})}}if(G.length===0)return K;G.sort((N,Y)=>N.start-Y.start);let X="",Q=0;for(let N of G){if(N.start<Q)continue;X+=K.slice(Q,N.start),X+=`@raw${K.slice(N.start,N.end)}@endraw`,Q=N.end}return X+=K.slice(Q),X}async function H(K,G={}){let{data:J,content:$}=D(K),Q=await(G.renderer??((N)=>b(N)))($);return{html:w(Q),frontmatter:J??{}}}import{dirname as P,resolve as B}from"path";function f(K){let G=K,J=y(K);if(J)G=J.content.trim();let $=/<script\b([^>]*)>([\s\S]*?)<\/script>/gi,X=[],Q=[],N=[],Y=(z)=>/\b(?:state|derived|effect|batch)\s*(?:<[^<>()]*>)?\s*\(/.test(z),E;while((E=$.exec(K))!==null){let z=E[1],U=E[2],Z=E[0],_=z.includes("server");if(Y(U))N.push(Z);else if(_)Q.push(U);else X.push(Z)}let q=G;{let z=/<script\b(?![^>]*\b(?:client|type\s*=\s*["']module["']|src\s*=))[^>]*>/gi,U,Z=[];while((U=z.exec(q))!==null){let _=U.index+U[0].length,L=q.indexOf("</script>",_);if(L===-1)continue;Z.push({start:U.index,end:L+9}),z.lastIndex=L+9}for(let _=Z.length-1;_>=0;_--)q=q.substring(0,Z[_].start)+q.substring(Z[_].end)}for(let z of X)q=q.replace(z,"");return{templateContent:q,serverScripts:Q,clientScripts:X,signalsScripts:N}}function v(K,G){return`<!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>${(G||"stx").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</title>
8
- </head>
9
- <body>
10
- ${K}
11
- </body>
12
- </html>`}function V(K,G,J){if(K&&typeof K==="object")K[G]=J}async function p(K,G={}){let J=B(K),$=Bun.file(J);if(!await $.exists())throw Error(`Template file not found: ${J}`);let X=await $.text(),Q=null;if(j(J)){let N=await H(X,{renderer:G.markdownRenderer});X=N.html,Q=N.frontmatter}if(Q)G={...G,context:{...Q,...G.context||{}}};if(G.layout){let N=B(G.layout),Y=Bun.file(N);if(!await Y.exists())throw Error(`Layout template not found: ${N}`);let{layout:E,injectCSS:q,...z}=G,U=await I(X,J,{...z,injectCSS:!1}),Z=await Y.text(),_={...G.context||{},content:U},L={...z,context:_,injectCSS:q};return I(Z,N,L)}return I(X,J,G)}async function a(K,G={},J={}){return I(K,process.cwd(),{context:G,...J})}async function I(K,G,J={}){let{templateContent:$,serverScripts:X,clientScripts:Q}=f(K),N={...k,...J.options},Y={__filename:G,__dirname:P(G),__stx:{},__stx_options:N,__stx_sfc_mode:!0,__stx_inject_css:J.injectCSS===!0,__stxServeContext:void 0,setResponseStatus:(z)=>{if(Number.isInteger(z)&&z>=100&&z<=599)V(J.context,"__stxResponseStatus",z)},notFound:(z=404)=>{let U=Number.isInteger(z)&&z>=400&&z<=599?z:404;V(J.context,"__stxResponseStatus",U)},setResponseHeader:(z,U)=>{if(!z)return;let Z=J.context?.__stxResponseHeaders||{};Z[String(z)]=String(U),V(J.context,"__stxResponseHeaders",Z)},definePageMeta:()=>{},...J.context||{}};for(let z of X)await x(z,Y,G);let E=new Set,q=$;if(q=await R(q,Y,G,N,E),J.templateOnly){if(q=q.replace(/<script data-stx-scoped>[\s\S]*?<\/script>\s*/gi,""),q=q.replace(/<!-- stx SEO Tags -->[\s\S]*?(?=<)/i,""),Q.length>0)q+=`
13
- ${Q.join(`
14
- `)}`}else{if(J.processClientScripts!==!1&&Q.length>0){let z=Y.__stx_event_bindings||[],U=F(Y),_=(await Promise.all(Q.map(async(W)=>{let A=W.match(/<script\b[^>]*>([\s\S]*?)<\/script>/);if(!A)return W;return await T(A[1],{eventBindings:z,templateContent:q,serverData:U,filePath:G})}))).join(`
15
- `);if(q.match(/(<\/body>)/i))q=q.replace(/(<\/body>)/i,`${_}
16
- $1`);else q+=`
17
- ${_}`}q=await M(q)}if(J.wrapInDocument){if(!q.trim().toLowerCase().startsWith("<!doctype")&&!q.trim().toLowerCase().startsWith("<html"))q=v(q,J.title)}if(J.injectCSS)try{let{injectCrosswindCSS:z}=await import("./chunk-css1sfnr.js");q=await z(q)}catch{}return q}
18
- export{j as kk,w as lk,H as mk,p as nk,a as ok,I as pk};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jj as a,kj as b,lj as c,mj as d,nj as e,oj as f,pj as g,qj as h,rj as i,sj as j,tj as k,uj as l,vj as m,wj as n}from"./chunk-jmnftb29.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{i as streamingSuspenseDirective,m as streamToResponse,g as streamTemplateSimple,a as streamTemplate,d as renderStreamingPage,k as registerStreamingDirectives,e as processStreamDirectives,l as processSectionDirectives,j as islandDirective,n as generateHydrationRuntime,f as extractStreamBoundaries,h as createStreamRenderer,b as buildSuspenseResolveScript,c as SUSPENSE_RESOLVER_RUNTIME};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$e as f,Ye as c,Ze as d,_e as e,af as g,bf as h}from"./chunk-xwc4pg5w.js";import{Bg as b,yg as a}from"./chunk-p7qqbw2k.js";import"./chunk-mxqp7x07.js";import"./chunk-ht51fz7w.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{d as virtualPathFor,g as typecheckStxFiles,e as sourcePathFor,h as formatTypecheckDiagnostics,f as findRuntimeTypeDeclarations,b as extractTemplateExpressions,a as extractScriptBlocks,c as buildVirtualSource};
@@ -1,30 +0,0 @@
1
- // @bun
2
- import{Sp as R,dm as E,em as M}from"./chunk-zat2ndst.js";import{Xt as m,Zt as d,_t as p}from"./chunk-z47tw39z.js";import{fu as g,iu as u}from"./chunk-trtm887x.js";var f=/\b(?:state|derived|effect|batch|ref|reactive|computed|watch|watchEffect)\s*(?:<[^>]*>)?\s*\(/;function C(w,J,z){let B={fullTag:z,content:J,attrs:w};if(/\bserver\b/.test(w))return{...B,type:"server"};if(/\bdata-stx-scoped\b/.test(w))return{...B,type:"client"};if(f.test(J))return{...B,type:"signals"};if(/\bclient\b/.test(w)||/\btype\s*=\s*["']module["']/.test(w)||/\bsrc\s*=/.test(w))return{...B,type:"client"};return{...B,type:"server"}}var S=/^<script\b([^>]*)>([\s\S]*)<\/script\s*>$/i;function P(w){let J=[],z=[],B=[],Y=0;while(Y<w.length){let Q=w.indexOf("<",Y);if(Q===-1)break;let U=M(w,Q);if(U>Q){Y=U;continue}let X=E(w,Q);if(X>Q){let $=w.slice(Q,X),j=S.exec($);if(j){let F=C(j[1],j[2],$);switch(F.type){case"signals":J.push(F);break;case"client":z.push(F);break;case"server":B.push(F);break}}Y=X;continue}Y=Q+(w.startsWith("<!--",Q)?4:1)}return{signals:J,client:z,server:B}}import L from"path";m();var c="stx-page-head:",i=/<!--stx-page-head:([A-Za-z0-9+/=]+)-->\n?/,A=null;function h(){if(A!==null)return A;try{let{getRouterScript:w}=(p(),g(d));A=`<script>${w()}</script>`}catch{A=""}return A}async function e(w,J){if(J===!1)return null;if(J&&typeof J==="string"){let B=L.resolve(w,J);if(await Bun.file(B).exists())return B;return null}let z=L.join(w,"app.stx");if(await Bun.file(z).exists())return z;return null}async function t(w,J){try{let z=await Bun.file(w).text(),B=z,Y=z.match(/<template\b[^>]*>([\s\S]*?)<\/template>/i);if(Y)B=Y[1].trim();let Q=P(z),U=[...Q.client.map((Z)=>Z.fullTag),...Q.signals.map((Z)=>Z.fullTag)],X=[],$=/<style\b[^>]*>([\s\S]*?)<\/style>/gi,j;while((j=$.exec(z))!==null)X.push(j[0]);let F=B;for(let Z of Q.server)F=F.replace(Z.fullTag,"");for(let Z of Q.client)F=F.replace(Z.fullTag,"");F=F.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi,"");let V="<!--__STX_PAGE_SLOT__-->";if(F=F.replace(/<slot\s*\/>/gi,V).replace(/<slot\s*>\s*<\/slot>/gi,V),!F.includes(V))return console.warn(`[stx] Shell ${w} has no <slot /> \u2014 pages won't be injected`),null;let{processDirectives:W,extractVariables:G,defaultConfig:_,loadStxConfig:v}=await import("./chunk-tqhwzjj7.js"),k=await v(),H={__filename:w,__dirname:L.dirname(w)};for(let Z of U){let K=Z.match(/<script\b[^>]*>([\s\S]*?)<\/script>/i);if(K&&!Z.includes("client")&&!Z.includes('type="module"'))await G(K[1],H,w)}let N=await W(F,H,w,{..._,...k,...J},new Set),q=N.indexOf(V);if(q===-1)return console.warn("[stx] Shell slot placeholder lost during processing"),null;return{beforeSlot:N.substring(0,q),afterSlot:N.substring(q+V.length),filePath:w,shellScripts:U,shellStyles:X}}catch(z){return console.error(`[stx] Error processing shell ${w}:`,z),null}}function ww(w,J,z){let B,Y="",Q=J.match(i);if(Q){J=J.replace(Q[0],"");try{let F=Buffer.from(Q[1],"base64").toString("utf8"),V=F.match(/<title[^>]*>([\s\S]*?)<\/title>/i);if(V)B=V[1].trim();Y=F.replace(/<title[^>]*>[\s\S]*?<\/title>/i,"").trim()}catch{}}let U=z||B||"stx App",X=h(),$="<script>window.__stxRouterConfig={container:'[data-stx-content]'};</script>";return`<!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>${U}</title>
8
- ${Y?` ${Y}
9
- `:""} ${w.shellStyles.join(`
10
- `)}
11
- </head>
12
- <body>
13
- ${w.beforeSlot}
14
- <div data-stx-content>${J}</div>
15
- ${w.afterSlot}
16
- ${w.shellScripts.filter((F)=>!F.includes("server")).join(`
17
- `)}
18
- ${$}
19
- ${X}
20
- </body>
21
- </html>`}function x(w,J={}){let z=w.trim();if(!R(z))return w;let B=[],Y=z.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(Y){let $=Y[1],j=/<style\b[^>]*>[\s\S]*?<\/style>/gi,F;while((F=j.exec($))!==null)B.push(F[0])}if(J.preserveHead&&Y){let $=[],j=/<title\b[^>]*>[\s\S]*?<\/title>|<meta\b[^>]*>|<link\b[^>]*>/gi,F;while((F=j.exec(Y[1]))!==null){if(/<meta\b[^>]*(?:\bcharset|name="viewport")/i.test(F[0]))continue;$.push(F[0])}if($.length>0)B.unshift(`<!--${c}${Buffer.from($.join(`
22
- `),"utf8").toString("base64")}-->`)}let Q=z.match(/<body\b[^>]*>/i),U=z.lastIndexOf("</body>");if(Q&&U!==-1){let $=Q.index+Q[0].length,j=z.slice($,U).trim();if(B.length>0)return B.join(`
23
- `)+`
24
- `+j;return j}let X=z;if(X=X.replace(/<!DOCTYPE\b[^>]*>/i,""),X=X.replace(/<html\b[^>]*>/i,""),X=X.replace(/<\/html\s*>/i,""),Y)X=X.replace(/<head\b[^>]*>[\s\S]*?<\/head>/i,B.join(`
25
- `));return X=X.replace(/<body\b[^>]*>/i,""),X=X.replace(/<\/body\s*>/i,""),X.trim()}function zw(w){return w.headers.get("X-STX-Router")==="true"}function Bw(w,J="main"){let z=w.trim(),B=[],Y=[],Q=z.match(/<head\b[^>]*>([\s\S]*?)<\/head>/i);if(Q){let q=Q[1],Z=/<style\b[^>]*>[\s\S]*?<\/style>/gi,K;while((K=Z.exec(q))!==null)B.push(K[0]);let I=/<script\b[^>]*data-stx-route-params[^>]*>[\s\S]*?<\/script>/gi;while((K=I.exec(q))!==null)Y.push(K[0])}let U=J.replace(/^[.#]/,"").toLowerCase(),X=new RegExp(`<${U}\\b[^>]*>`,"i"),$=z.match(X);if(!$||$.index===void 0)return x(w);let j=$.index+$[0].length,F=new RegExp(`<${U}\\b[^>]*>`,"gi"),V=new RegExp(`</${U}\\s*>`,"gi");F.lastIndex=j,V.lastIndex=j;let W=1,G=-1;while(W>0){let q=F.exec(z),Z=V.exec(z);if(!Z)break;if(q&&q.index<Z.index)W++,V.lastIndex=q.index+q[0].length;else if(W--,G=Z.index,W>0)F.lastIndex=Z.index+Z[0].length}if(G===-1)return x(w);let _=z.slice(j,G).trim(),v=[],k=z.match(/<body\b[^>]*>/i),H=z.lastIndexOf("</body>");if(k&&k.index!==void 0&&H!==-1){let Z=[[k.index+k[0].length,$.index],[G+`</${U}>`.length,H]],K=/<script\b[^>]*>[\s\S]*?<\/script>/gi;for(let[I,D]of Z){if(I>=D)continue;let T=z.slice(I,D),O;K.lastIndex=0;while((O=K.exec(T))!==null)v.push(O[0])}}let N=[];if(B.length>0)N.push(B.join(`
26
- `));if(Y.length>0)N.push(Y.join(`
27
- `));if(v.length>0)N.push(v.join(`
28
- `));return N.push(_),N.join(`
29
- `)}import b from"fs";import y from"path";function Yw(w,J,z){return{version:1,buildTime:new Date().toISOString(),routes:w,assets:J,outputDir:z}}function Zw(w,J){let z=y.join(J,"manifest.json");b.writeFileSync(z,JSON.stringify(w,null,2))}function $w(w){let J=y.join(w,"manifest.json");if(!b.existsSync(J))return null;try{let z=b.readFileSync(J,"utf-8"),B=JSON.parse(z);if(B.version!==1)return console.warn(`[stx] Manifest version mismatch: expected 1, got ${B.version}`),null;return B}catch(z){return console.warn("[stx] Failed to load manifest:",z),null}}
30
- export{C as Jg,P as Kg,e as Lg,t as Mg,ww as Ng,x as Og,zw as Pg,Bw as Qg,Yw as Rg,Zw as Sg,$w as Tg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ho as b,Io as c,Xl as a}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{b as processESImports,c as processComponents,a as freeIdentifiers};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{aj as a}from"./chunk-fvjh7rx0.js";import"./chunk-trtm887x.js";export{a as processDeferDirectives};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ml as c,Nl as d,Ol as e,Pl as f,Ql as g,Rl as h,Sl as i,Tl as j,Ul as k}from"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import{hs as a,is as b}from"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{b as stripCommentsAndLiterals,d as renderVendorStyleTags,k as processClientScript,f as injectBrowserCoreAutoImports,j as generateServerDataBridge,h as generateBrowserAutoImportDestructuring,g as generateAutoImportDestructuring,a as findInterpolationEnd,i as extractBridgeData,c as extractAndStripCssImports,e as STX_AUTO_IMPORTS};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$ as Gk,$a as sm,$b as Kn,$c as Lo,$d as Lp,A as qj,Aa as Dl,Ab as cn,Ac as ko,Ad as kp,Ae as qq,B as rj,Ba as El,Bb as dn,Bc as lo,Bd as lp,Be as rq,C as sj,Ca as Fl,Cb as en,Cc as mo,Cd as mp,Ce as sq,D as tj,Da as Sl,Db as fn,Dc as no,Dd as np,De as tq,E as jk,Ea as Tl,Eb as gn,Ec as oo,Ed as op,Ee as uq,F as kk,Fa as Ul,Fb as hn,Fc as po,Fd as pp,Fe as vq,G as lk,Ga as Vl,Gb as jn,Gc as qo,Gd as qp,Ge as wq,H as mk,Ha as Wl,Hb as kn,Hc as ro,Hd as rp,He as xq,I as nk,Ia as _l,Ib as ln,Ic as so,Id as sp,Ie as yq,J as ok,Ja as $l,Jb as mn,Jc as to,Jd as tp,Je as zq,K as pk,Ka as am,Kb as nn,Kc as uo,Kd as up,Ke as Aq,L as qk,La as bm,Lb as on,Lc as vo,Ld as vp,Le as Bq,M as rk,Ma as cm,Mb as pn,Mc as wo,Md as wp,Me as Cq,N as sk,Na as dm,Nb as qn,Nc as xo,Nd as xp,Ne as Dq,O as tk,Oa as em,Ob as xn,Oc as yo,Od as yp,Oe as Eq,P as uk,Pa as fm,Pb as yn,Pc as zo,Pd as zp,Pe as Fq,Q as vk,Qa as gm,Qb as zn,Qc as Ao,Qd as Ap,Qe as Gq,R as wk,Ra as hm,Rb as An,Rc as Bo,Rd as Bp,Re as Hq,S as xk,Sa as im,Sb as Bn,Sc as Co,Sd as Cp,Se as Iq,T as yk,Ta as jm,Tb as Cn,Tc as Do,Td as Dp,Te as Jq,U as zk,Ua as km,Ub as Dn,Uc as Eo,Ud as Ep,Ue as Kq,V as Ak,Va as lm,Vb as En,Vc as Fo,Vd as Fp,Ve as Lq,W as Bk,Wa as mm,Wb as Fn,Wc as Go,Wd as Gp,We as Mq,X as Ck,Xa as nm,Xb as Gn,Xc as Ho,Xd as Hp,Xe as Nq,Y as Dk,Ya as pm,Yb as Hn,Yc as Io,Yd as Ip,Z as Ek,Za as qm,Zb as In,Zc as Jo,Zd as Jp,_ as Fk,_a as rm,_b as Jn,_c as Ko,_d as Kp,aa as Hk,ab as tm,ac as Ln,ad as Mo,ae as Mp,ba as Ik,bb as um,bc as Mn,bd as No,be as Np,ca as Jk,cb as vm,cc as Nn,cd as Oo,ce as Op,da as Kk,db as wm,dc as On,dd as Po,de as Pp,ea as Lk,eb as xm,ec as Pn,ed as Qo,ee as Qp,fa as Mk,fb as ym,fc as Qn,fd as Ro,fe as Rp,ga as Nk,gb as zm,gc as Rn,gd as So,ge as Sp,ha as Ok,hb as Am,hc as Sn,hd as To,he as Tp,ia as Pk,ib as Bm,ic as Tn,id as Uo,ie as Up,ja as Qk,jb as Cm,jc as Un,jd as Vo,je as Vp,ka as Rk,kb as Dm,kc as Vn,kd as Wo,ke as Wp,la as Sk,lb as Em,lc as Wn,ld as Xo,le as Xp,ma as Tk,mb as Fm,mc as Xn,md as Yo,me as Yp,na as Uk,nb as Gm,nc as Yn,nd as Zo,ne as Zp,o as a,oa as Vk,ob as Hm,oc as Zn,od as _o,oe as _p,p as bj,pa as Wk,pb as Km,pc as _n,pd as $o,pe as fq,q as cj,qa as tl,qb as Lm,qc as $n,qd as ap,qe as gq,r as dj,ra as ul,rb as Mm,rc as ao,rd as bp,re as hq,s as ej,sa as vl,sb as Nm,sc as bo,sd as cp,se as iq,t as fj,ta as wl,tb as Tm,tc as co,td as dp,te as jq,u as gj,ua as xl,ub as Um,uc as eo,ud as ep,ue as kq,v as hj,va as yl,vb as Vm,vc as fo,vd as fp,ve as lq,w as ij,wa as zl,wb as Wm,wc as go,wd as gp,we as mq,x as jj,xa as Al,xb as $m,xc as ho,xd as hp,xe as nq,y as oj,ya as Bl,yb as an,yc as io,yd as ip,ye as oq,z as pj,za as Cl,zb as bn,zc as jo,zd as jp,ze as pq}from"./chunk-808qy9cq.js";import{$e as un,Ye as rn,Ze as sn,_e as tn,af as vn,bf as wn}from"./chunk-xwc4pg5w.js";import{cf as Im,df as Jm}from"./chunk-9xh78snm.js";import{ef as Om}from"./chunk-fvpaf9v5.js";import{ff as sl}from"./chunk-9064gyt5.js";import{gf as Xl,hf as Yl,if as Zl,jf as om,kf as Pm,lf as Qm,mf as Rm,nf as Sm,of as Xm,pf as Ym,qf as Zm,rf as _m}from"./chunk-a1ydhf5t.js";import{Af as Cj,Bf as Dj,Cf as Ej,Df as Fj,Ef as Gj,Ff as Hj,Gf as Ij,sf as uj,tf as vj,uf as wj,vf as xj,wf as yj,xf as zj,yf as Aj,zf as Bj}from"./chunk-fnkxbnka.js";import{Hf as Zj,If as _j,Jf as $j,Kf as ak,Lf as bk,Mf as ck,Nf as dk,Of as ek,Pf as fk,Qf as gk,Rf as hk,Sf as ik}from"./chunk-zxb128xa.js";import{Tf as Xj,Uf as Yj}from"./chunk-s7dqawk0.js";import{Vf as Si,Xf as Ti}from"./chunk-9b82d4g5.js";import{bg as Jj,cg as Kj,dg as Lj,eg as Mj,fg as Nj,gg as Oj,hg as Pj,jg as Qj,kg as Rj,lg as Sj,mg as Tj,ng as Uj,og as Vj,rg as Wj}from"./chunk-a2rj5ce0.js";import{sg as hl,tg as il,ug as jl,vg as kl,wg as nl,xg as rl}from"./chunk-e6377wfq.js";import{Bg as ml,yg as ll}from"./chunk-p7qqbw2k.js";import{Jg as Xk,Kg as Yk,Lg as Zk,Mg as _k,Ng as $k,Og as al,Pg as bl,Qg as cl,Rg as ol,Sg as pl,Tg as ql}from"./chunk-qd1nadff.js";import{$g as Nl,Ug as Gl,Vg as Hl,Wg as Il,Xg as Jl,Yg as Kl,Zg as Ll,_g as Ml,ah as Ol,bh as Pl,ch as Ql,dh as Rl}from"./chunk-st5qggks.js";import{eh as Gg}from"./chunk-z2sp0k8d.js";import{fh as Ng,gh as Og,hh as Pg,ih as Qg,jh as Rg,kh as Sg}from"./chunk-gvm4dw6p.js";import{lh as fi,mh as gi,nh as hi,rh as ii,sh as ji,th as ki}from"./chunk-msjzqne1.js";import{Ah as wi,Bh as xi,Ch as yi,Dh as zi,Eh as Ai,uh as qi,vh as ri,wh as si,xh as ti,yh as ui,zh as vi}from"./chunk-y2jr10y8.js";import{Fh as Xh,Gh as Yh,Hh as Zh,Ih as _h,Jh as $h,Lh as ai,Mh as bi,Nh as ci,Oh as di,Ph as ei}from"./chunk-q8szpd6w.js";import{Qh as Tf,Rh as Uf,Sh as Vf,Th as Wf,Uh as Xf}from"./chunk-w0ng9e1m.js";import{Vh as Yf,Wh as Zf,Xh as _f,Yh as $f,Zh as ag}from"./chunk-x13f5bbe.js";import{$h as cg,_h as bg,ai as dg,bi as eg,ci as fg,di as gg,ei as hg}from"./chunk-ymccpdg6.js";import{fi as ig,gi as jg,hi as kg,ii as lg,ji as mg,ki as ng}from"./chunk-vgk5v31k.js";import{mi as og,ni as pg,oi as qg,pi as rg,qi as sg,ri as tg,si as ug,ti as vg,ui as wg,vi as xg,wi as yg,xi as zg,yi as Ag,zi as Bg}from"./chunk-n8zpm7xb.js";import{Bi as Cg,Ci as Dg,Di as Eg,Ei as Fg}from"./chunk-y4hkqsgw.js";import{Ji as sf,Ki as tf,Li as uf,Mi as vf,Ni as wf,Oi as xf,Pi as yf,Qi as zf,Ri as Af,Si as Bf,Ti as Cf}from"./chunk-1bvstnz4.js";import{Ui as Hf,Vi as If}from"./chunk-weajy31v.js";import{Yi as Jf}from"./chunk-mxqp7x07.js";import"./chunk-ht51fz7w.js";import{aj as Kf}from"./chunk-fvjh7rx0.js";import{bj as Lf,cj as Mf}from"./chunk-b6jhznkh.js";import{dj as Nf,ej as Of,fj as Pf,gj as Qf,hj as Rf,ij as Sf}from"./chunk-hyrjade7.js";import{jj as Fd,kj as Gd,lj as Hd,mj as Id,nj as Jd,oj as Kd,pj as Ld,qj as Md,rj as Nd,sj as Od,tj as Pd,uj as Qd,vj as Rd,wj as Sd}from"./chunk-jmnftb29.js";import{xj as qf,yj as rf}from"./chunk-j3njy10j.js";import{Fj as bf,Gj as cf,Hj as df,Ij as ef,Jj as ff,Kj as gf,Lj as hf,Mj as jf,Nj as kf,Oj as lf,Pj as mf,Qj as nf,Rj as of,Sj as pf}from"./chunk-3es366z4.js";import{kk as $p,lk as aq,mk as bq,nk as cq,ok as dq,pk as eq}from"./chunk-n4smz31k.js";import{qk as kj,rk as lj,sk as mj,tk as nj,uk as dl,vk as el,wk as fl,xk as gl}from"./chunk-1nnpwrqj.js";import"./chunk-yckd6ks5.js";import"./chunk-zgvga8rc.js";import{$l as Ja,$m as Lb,$n as $c,$o as ee,$q as Jh,Al as ia,Am as lb,An as kc,Ao as Ad,Ap as Fe,Aq as $g,Ar as Ji,Bm as mb,Bn as lc,Bo as Bd,Bp as Ge,Bq as ah,Br as Ki,Cn as mc,Co as Cd,Cp as He,Cq as bh,Cr as Li,Dl as ja,Dm as nb,Dn as nc,Do as Dd,Dp as Ie,Dq as ch,Dr as Mi,El as ka,Em as ob,En as oc,Eo as Ed,Ep as Je,Eq as dh,Er as Ni,Fl as la,Fm as pb,Fn as pc,Fp as Ke,Fq as eh,Fr as Oi,Gl as ma,Gm as qb,Gn as qc,Go as Td,Gp as Le,Gq as fh,Gr as Pi,Hl as na,Hm as rb,Hn as rc,Hp as Me,Hq as gh,Hr as Qi,Im as sb,In as sc,Ip as Ne,Iq as hh,Ir as Ri,Jm as tb,Jn as tc,Jp as Oe,Jq as rh,Jr as Ui,Kl as qa,Km as ub,Kn as uc,Kp as Pe,Kq as sh,Kr as Vi,Ll as ra,Lm as vb,Ln as vc,Lp as Qe,Lq as th,Lr as Wi,Ml as ya,Mm as wb,Mn as wc,Mp as Re,Mq as uh,Mr as Xi,Nl as za,Nm as xb,Nn as xc,No as Ud,Np as Se,Nq as vh,Nr as Yi,Ol as Aa,Om as yb,On as yc,Op as Te,Oq as wh,Or as Zi,Pl as Ba,Pm as zb,Pn as zc,Po as Vd,Pp as Ue,Pq as xh,Pr as _i,Ql as Ca,Qm as Ab,Qn as Ac,Qp as Ve,Qq as yh,Qr as $i,Rl as Da,Rm as Bb,Rn as Bc,Ro as Wd,Rp as We,Rq as zh,Rr as aj,Sl as Ea,Sm as Cb,Sn as Cc,So as Xd,Sp as Xe,Sq as Ah,Tl as Fa,Tm as Db,Tn as Dc,To as Yd,Tp as Ye,Tq as Bh,Ul as Ga,Um as Eb,Un as Ec,Uo as Zd,Up as Ze,Uq as Ch,Vm as Fb,Vn as Fc,Vo as _d,Vp as _e,Vq as Dh,Wm as Gb,Wn as Gc,Wo as $d,Wp as $e,Wq as Eh,Xm as Hb,Xn as Hc,Xo as ae,Xp as af,Xq as Fh,Ym as Ib,Yn as Ic,Yo as be,Yq as Gh,Zl as Ha,Zm as Jb,Zn as Zc,Zo as ce,Zp as Df,Zq as Hh,_l as Ia,_m as Kb,_n as _c,_o as de,_q as Ih,am as Ka,an as Mb,ao as ad,ap as fe,ar as Kh,bm as La,bn as Nb,bo as bd,bp as ge,br as Lh,cm as Ma,cn as Ob,co as cd,cp as he,cr as Mh,dl as s,dn as Pb,do as dd,dp as ie,dr as Nh,el as t,en as Qb,eo as ed,ep as je,er as Oh,fl as u,fm as Na,fn as Rb,fo as fd,fp as ke,fr as Ph,gl as v,gm as Oa,gn as Sb,go as gd,gp as le,gr as Qh,hl as w,hm as Pa,hn as Tb,ho as hd,hp as me,hr as Rh,il as x,im as Qa,in as Ub,io as id,ip as ne,ir as Sh,jl as y,jm as Ra,jn as Vb,jo as jd,jp as oe,jq as Ef,jr as Th,kl as z,km as Sa,kn as Wb,ko as kd,kp as pe,kq as Ff,kr as Uh,ll as A,lm as Ta,ln as Xb,lo as ld,lp as qe,lq as Gf,lr as Vh,ml as B,mm as Ua,mn as Yb,mo as md,mp as re,mq as Hg,mr as Wh,nl as C,nm as Va,nn as Zb,no as nd,np as se,nq as Ig,nr as li,ol as D,om as Wa,on as _b,oo as od,op as te,oq as Jg,or as mi,pl as E,pm as Xa,pn as $b,po as pd,pp as ue,pq as Kg,pr as ni,ql as F,qm as Ya,qn as ac,qo as qd,qp as ve,qq as Lg,qr as oi,rl as G,rm as Za,rn as bc,ro as rd,rp as we,rq as Mg,rr as pi,sl as H,sm as _a,sn as cc,so as sd,sp as xe,sq as Tg,sr as Bi,tl as I,tm as $a,tn as dc,to as td,tp as ye,tq as Ug,tr as Ci,ul as J,un as ec,uo as ud,up as ze,uq as Vg,ur as Di,vl as da,vm as gb,vn as fc,vo as vd,vp as Ae,vq as Wg,vr as Ei,wl as ea,wm as hb,wn as gc,wo as wd,wp as Be,wq as Xg,wr as Fi,xl as fa,xm as ib,xn as hc,xo as xd,xp as Ce,xq as Yg,xr as Gi,yl as ga,ym as jb,yn as ic,yo as yd,yp as De,yq as Zg,yr as Hi,zl as ha,zm as kb,zn as jc,zo as zd,zp as Ee,zq as _g,zr as Ii}from"./chunk-zat2ndst.js";import{$r as m,Sr as d,Tr as e,Ur as f,Vr as g,Wr as h,Xr as i,Yr as j,Zr as k,_r as l,as as n,bs as o,cs as p,ds as q,es as r}from"./chunk-j0tfxbns.js";import{fs as b,gs as c}from"./chunk-khrtzbxd.js";import{hs as oa,is as pa}from"./chunk-8anh6d36.js";import{js as ih,ks as jh,ls as kh,ms as lh,ns as mh,os as nh,ps as oh,qs as ph,rs as qh}from"./chunk-3fwn9edg.js";import{Fs as db,Gs as eb,Hs as fb,ss as ab,ts as bb,vs as cb}from"./chunk-pezxve4a.js";import{Is as sa,Js as ta,Ks as ua,Ls as va,Ms as wa,Ns as xa}from"./chunk-m2mhtpwy.js";import{$s as Wc,Os as Jc,Ps as Kc,Qs as Lc,Rs as Mc,Ss as Nc,Ts as Oc,Us as Pc,Vs as Qc,Ws as Rc,Xs as Sc,Ys as Tc,Zs as Uc,_s as Vc,at as Xc,bt as Yc}from"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import{At as O,Gt as P,Ht as Q,It as R,Jt as S,Kt as T,Lt as U,Mt as V,Nt as W,Ot as X,Pt as Y,Qt as Z,Rt as _,St as $,Tt as aa,Ut as ba,Wt as ca,qt as K,rt as L,ut as M,zt as N}from"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{Ej as writeNetlifyConfig,pl as writeManifest,hk as writeImageManifest,Gn as wrapComponentForHMR,Aq as withDefaults,Ri as webComponentDirectiveHandler,wo as watermark,yp as watchViews,rk as watchMultiple,sk as watchEffect,qk as watch,Gk as waitForStore,wd as waitForLocale,sn as virtualPathFor,Ei as videoDirective,Tb as validators,Eq as validated,id as validateValueEnhanced,Ig as validateTemplate,Bo as validateParams,jd as validateFormEnhanced,np as validateFile,ed as validateFields,dd as validateField,Kg as validateDirective,Dc as validateCspDirectives,Zi as validateConfig,ul as validateComponentScripts,Sl as validateComponentProps,Gf as validateClientScript,Fg as v,Ua as usesSignalsInScript,Xg as userComponentFileExists,lg as useVirtualList,Rc as useTitle,Fk as useStoreOrThrow,Yn as useStore,oj as useStorage,Jp as useSlots,qj as useSessionStorage,Oc as useSeoMeta,Hk as useRouteParams,Jk as useRouteParamOrThrow,Ik as useRouteParam,Rc as usePageTitle,pf as useOptimistic,Lk as useMiddlewareValue,Kk as useMiddlewareState,pj as useLocalStorage,zn as useLoadingIndicator,Mc as useHead,Cg as useForm,Lp as useAttrs,pp as uploadFiles,op as uploadFile,Bk as updateInstance,nf as untrack,lh as unregisterDirective,Ck as unmountInstance,$a as unescapeHtml,vn as typecheckStxFiles,Wg as transpileTypeScript,oq as translate,w as transitionDirective,Ml as toUsers,Ll as toUser,fo as thumbnail,gp as thumbHashToRGBA,hp as thumbHashToDataURL,sf as templateCache,Dn as stxClientHelpers,me as structuredDataDirective,rq as stripLocalePrefix,al as stripDocumentWrapper,pa as stripCommentsAndLiterals,ym as stringToStream,rc as strictCspPreset,Nd as streamingSuspenseDirective,Rd as streamToResponse,Ld as streamTemplateSimple,Fd as streamTemplate,jj as stopHmrServer,Il as stopBroadcasting,va as stateDirName,wa as stateDir,bf as state,Xe as startsDocument,_m as startProductionServer,Om as startInteractive,Hl as startBroadcasting,D as staggerDirective,zo as srcsetUrls,E as springDirective,ac as splitByPipe,tn as sourcePathFor,Go as smartBatchSign,Zg as slotContentHasExpressions,Eo as signUrl,Ug as shouldTranspileTypeScript,gj as shouldReloadOnChange,Jo as shouldRefreshSignature,hj as shouldIgnoreFile,dg as shouldCacheComponent,jo as sharpen,Hq as shape,ua as setStateDir,Pk as setRouteParams,Qk as setMiddlewareState,Dp as setGlobalProvide,ob as setErrorLocale,jk as setCurrentInstance,si as setCachedVideoResult,hi as setCachedImageResult,bi as setCached,Kq as serveStxFile,Mq as serveMultipleStxFiles,bj as serveMarkdownFile,jn as serveFile,Nq as serveApp,hn as serve,Jn as serializeState,om as serializeSetCookie,lo as sepia,Pc as seoMetaToHeadConfig,x as scrollAnimateDirective,q as screenReaderDirective,Ii as scopeHTML,Hi as scopeCSS,pe as scanForSitemapEntries,k as scanA11yTargets,l as scanA11yIssues,po as saturation,Co as sanitizeParams,Vb as sanitizeFilePath,Wb as sanitizeExpression,Xb as sanitizeDirectiveParams,Ub as sanitizeDirectiveParam,Yb as sanitizeComponentProps,Ob as safeExecuteAsync,Nb as safeExecute,fe as runPreProcessingMiddleware,ge as runPostProcessingMiddleware,Rm as runPageAction,hf as runMountCallbacks,ba as runMiddleware,zk as runHooks,hq as runDoctor,jf as runDestroyCallbacks,ue as runComposers,qo as rotate,Gg as rewriteImagesWithSiblings,bh as resolveTemplatePath,c as resolveStxTargets,Vi as resolveStxDirectories,nq as resolveI18n,co as resize,Ha as resetPlaceholders,Lc as resetHead,In as resetHMRHandler,Bb as resetErrorConfig,Cq as required,La as replacePlaceholders,wp as renderView,Bi as renderVideoComponent,za as renderVendorStyleTags,Sp as renderToString,Tp as renderToStream,Up as renderToDOM,fp as renderThumbhashToCanvas,eq as renderTemplateString,cq as renderTemplate,dq as renderString,Id as renderStreamingPage,Pg as renderSlot,Vf as renderSSRSuspense,Ro as renderProtectedVideo,Qo as renderProtectedImg,Do as renderMediaUpload,bq as renderMarkdownView,fl as renderLayoutTypes,li as renderImgComponent,Zj as renderImageComponent,Tc as renderHtmlAttrs,Sc as renderHead,zp as renderEmail,$g as renderComponentWithSlot,Uc as renderBodyAttrs,Tn as render,tc as relaxedCspPreset,cd as registerValidationRule,Pd as registerStreamingDirectives,_n as registerStoresClient,Nk as registerStore,ne as registerSeoDirectives,V as registerMiddleware,Pa as registerFilters,Oa as registerFilter,qb as registerErrorMessages,hd as registerEnhancedValidationRule,ih as registerDirective,Cc as registerCspDirectives,Vl as registerComponentDirectives,J as registerAnimationDirectives,r as registerA11yDirectives,nk as ref,Gm as redirect,xa as rebaseOntoStateDir,$i as readMarkdownFile,tf as readFileCached,ok as reactive,uo as quality,Oo as pruneSignatureCache,ei as pruneCache,Bp as provide,aq as protectCodeBlocks,Bq as prop,ye as processVueTemplate,jg as processVirtualListDirectives,ng as processVirtualGridDirectives,Ai as processVideo,fd as processValidateDirective,Dd as processTranslateDirective,Pf as processTransitionDirectives,Sf as processTransitionAttributes,Xc as processTitleDirective,jb as processTemplateBindings,Lf as processTeleportDirectives,Tf as processSuspenseDirectives,ie as processStructuredData,Jd as processStreamDirectives,Ag as processStaticDirectives,de as processStackReplacements,ce as processStackPushDirectives,Qg as processSlots,_k as processShell,we as processServerBindings,je as processSeoDirective,Qd as processSectionDirectives,Be as processScopedStyles,hb as processReactiveBindings,So as processProtectedMedia,tg as processPartialHydrationDirectives,Ff as processOnceDirective,ee as processMiddleware,he as processMetaDirectives,Yc as processMetaDirective,aj as processMarkdownFileDirectives,gh as processMarkdownDirectives,Zd as processLoops,bg as processKeepAliveDirectives,Ef as processJsonDirective,mg as processInfiniteListDirectives,be as processIncludes,ni as processImgComponents,$j as processImageComponents,Oj as processImage,Wc as processHeadDirective,_c as processForms,ad as processFormInputDirectives,Ya as processExpressions,ma as processEventDirectives,bd as processErrorDirective,ze as processDynamicComponents,Hg as processDirectives,qh as processDirectiveAttributes,Kf as processDeferDirectives,Hc as processCustomDirectives,zc as processCspDirectives,Iq as processComponentProps,Ga as processClientScript,$c as processBasicFormDirectives,Yf as processAsyncDirectives,Ic as processAppearanceBootstrapDirective,A as processAnimationDirectives,f as processA11yDirectives,sd as preloadTranslationsBackground,rd as preloadTranslations,yn as preloadIslandHandlers,Td as preloadIconCollection,Dl as poolStrings,Ti as pluginManager,Of as performLeave,Nf as performEnter,kf as pendingLifecycleCounts,of as peek,_d as partialsCache,Ci as parseVideoDirectiveOptions,ao as parseUrl,ip as parseThumbhashString,gc as parseSwitchBlock,Ng as parseSlots,Og as parseSlotElement,lc as parseScriptDeclarations,Pi as parseSFCComponent,To as parseProtectedArgs,Yd as parseLoopBinding,mi as parseImgComponent,Eh as parseImageUrl,_j as parseImageComponent,Pm as parseFormBody,ic as parseExpressionWithFilters,Dm as parseCookies,_l as parseContainerSelector,dc as parseConditionalBlock,jc as parseArguments,H as parseAnimationShorthand,Dq as optional,El as optimizeTemplate,ek as optimizeImage,fk as optimizeDirectory,Fq as oneOf,$d as onceStore,wk as onUpdated,gb as onUpdate,yk as onUnmounted,Uk as onServer,uk as onMounted,ff as onMount,zg as onHydrated,Hp as onErrorCaptured,gf as onDestroy,hg as onDeactivated,Tk as onClient,vk as onBeforeUpdate,xk as onBeforeUnmount,tk as onBeforeMount,gg as onActivated,bp as observeElement,Hm as notFound,Ge as normalizeCriticalHeadOrder,Gp as nextTick,Yl as negotiateEncoding,P as navigateTo,Ak as mountInstance,z as motionDirective,sc as moderateCspPreset,Cl as minifyHtml,le as metaDirective,Qe as metaDedupKey,bo as mergeParams,Se as mergeHtmlAttrs,Nc as mergeHeadConfigs,wc as mergeCspDirectives,bb as mergeCrosswindConfig,M as matchRoute,hh as markdownDirectiveHandler,_i as markdownCache,b as looksLikeGlob,qq as localizePath,td as loadTranslationLazy,zd as loadTranslation,Wi as loadStxConfig,_ as loadMiddlewareFromDirectory,ql as loadManifest,Zo as loadElement,Jl as loadChannels,wq as lintStxStrict,$o as lazyLoadAll,_o as lazyLoad,C as keyframeDirective,Qp as jsxs,Rp as jsxDEV,Pp as jsx,Fm as jsonResponse,Od as islandDirective,yb as isTest,bl as isSpaNavigation,Ho as isSignatureValid,lf as isSignal,Mj as isSharpAvailable,rm as isServerEnvironment,Rk as isServer,wb as isProduction,d as isPresentationalRole,Wo as isNativeLazySupported,$p as isMarkdownPath,pd as isLoading,qd as isLoaded,Tg as isJavaScriptScript,Xo as isIntersectionObserverSupported,Uj as isImageFile,Nj as isImageBackendAvailable,Bd as isICUFormat,yg as isHydrated,Yg as isHydrateTrigger,qm as isEdgeEnvironment,xq as isDirectiveKind,xb as isDevelopment,mf as isDerived,fj as isCssOnlyChange,Xl as isCompressible,Sk as isClient,_f as isAsyncComponent,Qm as isActionableMethod,mo as invert,vf as invalidateFileCacheByDir,uf as invalidateFileCache,Xa as interpolateScriptsInTemplate,Va as interpolateScriptExpressions,Wa as interpolateScriptAttributes,Kb as inlineError,mq as injectThemeBootstrap,ke as injectSeoTags,jq as injectSeo,Df as injectRouterScript,ej as injectHotReload,fa as injectHeatmap,xc as injectCspMetaTag,fb as injectCrosswindCSS,Ze as injectConfigHeadTags,Fe as injectColorModeBootScript,Ue as injectCloakStyle,Me as injectBuildId,Ba as injectBrowserCoreAutoImports,lb as injectAnalytics,Cp as inject,Mk as initStoreRegistry,Hj as initNetlify,An as initLoadingIndicator,Yo as initLazyLoading,Nm as initFile,ep as initBlurUp,kp as initAllBlurUp,pi as imgDirective,ck as imageDirective,Ym as hydrateTemplateStream,Xm as hydrateTemplate,xn as hydrateIslands,vg as hydrateIsland,Zm as hydrateFragment,wg as hydrateByStrategy,xg as hydrateAll,Qn as hydrate,gn as htmlResponse,Ve as hoistLeadingHeadTags,He as hoistColorModeBootScript,ga as heatmapDirective,Zh as hashString,Cf as hashFilePath,Xh as hashFile,Yh as hashBuffer,xe as hasVueTemplateSyntax,Xd as hasVariables,Vn as hasStore,Ma as hasPlaceholders,Fj as hasNetlifyConfig,X as hasMiddleware,na as hasEventDirectives,Ye as hasDocumentShell,Lg as hasDirectives,h as hasDOMSupport,Xj as handleImageRequest,Ip as handleError,Yp as h,Tj as groupVariantsByFormat,ko as grayscale,$m as gitHash,wl as getUnusedDirectives,ud as getTranslationSync,nd as getTranslationCacheStats,vd as getTranslationAsync,Cd as getTranslation,Aj as getTotalSize,Io as getTimeUntilExpiry,Hf as getStoreScript,Wn as getStoreNames,Un as getStore,tj as getStorageSize,sj as getStorageKeys,ch as getSourceLineInfo,Vg as getSharedTranspiler,g as getScreenReaderOnlyStyle,Ji as getScopeAttribute,af as getRouteParams,qa as getPublicEnvDefine,ra as getPublicEnv,Jg as getPositionInfo,Ja as getPlaceholderRegistry,Wh as getPlaceholderCacheStats,Kc as getPageMeta,nc as getNonce,Vj as getMimeType,Z as getMiddlewareNames,W as getMiddleware,od as getLoadingState,xd as getLoadingLocales,Pj as getImageMetadata,Pn as getHydrationRuntime,Ok as getHydratedStoreState,ij as getHmrServer,Jc as getHead,Hn as getHMRHandler,Ih as getFormatExtension,$h as getFileMtime,Sj as getFallbackVariant,sb as getErrorMessage,pb as getErrorLocale,Ab as getErrorConfig,vb as getErrorCodeName,kh as getDirectives,jh as getDirective,kk as getCurrentInstance,vc as getCspPreset,Ec as getCspHeaderName,cb as getCrosswindServeAsset,fh as getComponentCacheStats,ri as getCachedVideoResult,Mo as getCachedSignature,xf as getCachedSignalsRuntime,yf as getCachedRouterScript,Uh as getCachedPlaceholder,gi as getCachedImageResult,ai as getCached,di as getCacheStats,Ke as getBuildId,Gl as getBroadcastServer,Hh as getBestVariant,Qa as getAllFilters,vh as generateWidthSrcset,kg as generateVirtualListCSS,rp as generateVideoPreview,kd as generateValidationScript,sp as generateUploadRuntime,xl as generateTreeShakenBundle,Rf as generateTransitionRuntime,Qf as generateTransitionCSS,vi as generateThumbnails,Nh as generateThumbhashPlaceholder,hm as generateTemplatesDocs,Xf as generateSuspenseRuntime,Wf as generateSuspenseCSS,Kn as generateStateScript,Fh as generateSrcsetData,ki as generateSrcset,Qj as generateSrcSet,wi as generateSpriteSheet,Ap as generateSpaShell,Gh as generateSourceTags,Bh as generateSizesFromBreakpoints,Ah as generateSizesAttribute,Rj as generateSizes,oe as generateSitemapIndex,kq as generateSitemap,Vo as generateSimpleMediaPicker,Po as generateSignatureRuntime,rf as generateSignalsRuntimeDev,qf as generateSignalsRuntime,Fa as generateServerDataBridge,Gi as generateScopeId,Qi as generateSFCWebComponent,ka as generateRuntimeScript,K as generateRouteTypes,L as generateRouteManifest,qe as generateRobotsTxt,lq as generateRobots,ji as generateResponsiveVariants,Mi as generateReactiveWebComponentTS,Li as generateReactiveWebComponent,Oi as generateReactiveRuntime,Ni as generateReactiveMixin,ui as generatePoster,Th as generatePlaceholderStyle,Sh as generatePlaceholderCSS,Mh as generatePlaceholder,ug as generatePartialHydrationCSS,mc as generateNonce,Bj as generateNetlifyToml,up as generateMinifiedMediaRuntime,tp as generateMediaRuntime,Uo as generateMediaManagerEmbed,ol as generateManifest,Cn as generateLoadingIndicatorHtml,dp as generateLazyLoadRuntime,gl as generateLayoutTypes,Ph as generateLQIP,fg as generateKeepAliveRuntime,eg as generateKeepAliveCSS,Bg as generateIslandManifest,qp as generateImagePreview,gk as generateImageManifest,On as generateHydrationScript,Sd as generateHydrationRuntime,Rn as generateHydrationCSS,og as generateHydrationBootstrap,dj as generateHotReloadScript,ea as generateHeatmapScript,Fn as generateHMRClientScript,xi as generateHLSManifest,Ln as generateEventBindings,zh as generateDprSrcsetWithVariableQuality,yh as generateDprSrcset,We as generateDocumentShell,mm as generateDocs,im as generateDirectivesDocs,ph as generateDirectiveRuntime,re as generateDefaultRobotsTxt,yi as generateDASHManifest,qc as generateCspMetaTag,pc as generateCspHeader,eb as generateCrosswindCSS,Np as generateCompositionRuntime,gm as generateComponentsDocs,pg as generateComponentManifest,em as generateComponentDoc,Rh as generateColorPlaceholder,Ee as generateColorModeBootScript,Dk as generateClientRuntime,_h as generateCacheKey,Da as generateBrowserAutoImportDestructuring,lp as generateBlurUpRuntime,mp as generateBlurUpCSS,ib as generateBindingsRuntime,wh as generateAutoWidthSrcset,Ca as generateAutoImportDestructuring,ag as generateAsyncComponentRuntime,$f as generateAsyncComponentCSS,I as generateAnimationRuntime,G as generateAnimationCSS,kb as generateAnalyticsScript,wn as formatTypecheckDiagnostics,qn as formatTypeErrors,Km as formatStxContent,zj as formatSize,O as formatRoutes,Lm as formatMarkdownContent,tb as formatLocalizedError,Ad as formatICU,Cb as formatFilePath,Jb as formatError,iq as formatDoctorReport,jm as formatDocsAsMarkdown,lm as formatDocsAsJson,km as formatDocsAsHtml,to as format,Bl as foldConstants,so as flipVertical,ro as flipHorizontal,hl as fingerprint,un as findRuntimeTypeDeclarations,gq as findPantryPackage,cc as findMatchingEndTag,_b as findMatchingDelimiter,oa as findInterpolationEnd,ec as findIfBlocks,hc as findExpressions,N as findErrorPage,fc as findDirectiveBlocks,yl as findDeadCode,yl as findDeadBranches,$l as findContainerRegion,fm as findComponentFiles,Lq as findCommonDir,yj as filterRequiredFiles,ah as fileExists,Ud as extractVariables,ml as extractTemplateExpressions,Kd as extractStreamBoundaries,Mn as extractState,Rg as extractSlotContent,Wd as extractScriptFromTemplate,ll as extractScriptBlocks,Ka as extractPlaceholders,bc as extractParenthesizedExpression,Ek as extractPageResponseStatus,ca as extractLayoutMetadata,Qh as extractDominantColor,kc as extractDirectiveParams,Mg as extractDirectiveNames,cl as extractContainerContent,cm as extractComponentProps,qg as extractComponentName,dm as extractComponentDescription,db as extractClassNames,Ea as extractBridgeData,rg as extractBoundProps,$b as extractBalancedExpression,ya as extractAndStripCssImports,Ki as extractAndScopeStyles,la as extractAndProcessEvents,mj as externalizeSharedAssets,nj as externalizeRepeatedAssets,lj as externalizeHtml,_a as evaluateExpression,Al as evaluateConstant,nb as evaluateAuthExpression,Ta as escapeHtmlValue,Sa as escapeHtml,Pb as errorRecovery,Rb as errorLogger,Mf as ensureTeleportTargets,_e as ensureDocumentShell,gd as enhancedValidationRules,am as enableDevTools,zl as eliminateDeadCode,df as effect,Ao as dprUrls,nm as docsCommand,el as discoverLayoutNames,cp as disconnectObserver,bm as disableDevTools,Sb as devHelpers,Zk as detectShell,pm as detectRuntime,Cj as detectProjectConfig,Jh as detectFormat,tl as detectBuildMode,cf as derived,Gj as deploy,Yi as defineStxConfig,Zn as defineStore,Kp as defineSlots,vq as defineSiteConfig,zq as definePropsWithValidation,yq as defineProps,Si as definePlugin,Qc as definePageMeta,R as defineMiddleware,Dg as defineForm,Fp as defineExpose,Ep as defineEmits,mh as defineDirective,_p as defineCustomElement,Wm as defineConfig,nh as defineClientDirective,Zf as defineAsyncComponent,vp as defaultMediaConfig,ik as defaultImageConfig,ld as defaultI18nConfig,da as defaultHeatmapConfig,Zc as defaultFormClasses,Na as defaultFilters,Gc as defaultCspConfig,Ui as defaultConfig,Jq as default,ab as deepMergeThemes,Ae as dedupeScopedStyles,Oh as decodeThumbhash,Bc as cspNonceDirective,Ac as cspDirective,jp as crossfadeTransition,eo as crop,ig as createVirtualList,Di as createVideoDirective,Bm as createVercelHandler,nn as createTypeChecker,Ed as createTranslateFilter,xm as createTextEncoderStream,Zp as createStxApp,wm as createStreamingResponse,Md as createStreamRenderer,Xn as createStore,U as createStorageManager,S as createServerCookieManager,mk as createScope,Uf as createSSRSuspense,$e as createRouter,$ as createRouteLocation,ln as createRoute,nk as createRef,ok as createReactive,Mp as createProvideContext,bn as createProject,Vm as createProductionBuild,Ia as createPlaceholder,Fl as createOptimizedBuild,Cm as createNetlifyHandler,uj as createNetlifyClient,aa as createMiddlewareContext,kn as createMiddleware,ap as createLazyObserver,cg as createKeepAliveCache,tm as createKVNamespace,sg as createIslandRegistry,oi as createImgDirective,dk as createImagePlugin,Yj as createImageHandler,bk as createImageDirective,ia as createHeatmapAggregator,xj as createFileManifest,sm as createEnvAccessor,Mb as createEnhancedError,vm as createEdgeHandler,um as createEdgeCache,dh as createDetailedErrorMessage,Am as createDenoHandler,Dj as createDefaultNetlifyConfig,Fc as createCspHeaders,Em as createCookie,pk as createComputed,lk as createComponentInstance,zm as createCloudflareHandler,T as createClientCookieManager,oh as createBuiltinDirectives,Zp as createApp,F as createAnimationTimeline,ho as cover,Vd as convertToCommonJS,oo as contrast,go as contain,Lb as consoleError,zb as configureErrorHandling,Xi as config,pk as computed,Zl as compressResponse,te as composerPattern,se as composer,$k as composeShellWithPage,Ul as componentDirective,_g as componentClientSignalNames,nl as compileTemplate,a as collectRepeatedFlag,wj as collectDeployFiles,ti as clearVideoCache,md as clearTranslationCache,If as clearStoreCache,rj as clearStorage,No as clearSignatureCache,Vh as clearPlaceholderCache,ae as clearOnceStore,oc as clearNonce,Y as clearMiddleware,ak as clearImageCache,rb as clearErrorMessages,zf as clearDevCaches,Ra as clearCustomFilters,ve as clearComposers,Jf as clearComposableCache,eh as clearComponentCache,ci as clearCache,Bn as cleanupLoadingIndicator,Xk as classifyScript,Yk as classifyAllScripts,on as checkTemplateFile,pn as checkTemplate,Af as checkCache,Ko as checkAuthAccess,i as checkA11yWithRegex,j as checkA11y,Pl as channel,Jm as captureScreenshots,Im as captureScreenshot,yd as cancelPendingLoads,vj as calculateSha1,xh as calculateOptimalWidths,Bf as cacheTemplate,Fi as buildWebComponents,rn as buildVirtualSource,xp as buildViews,$n as buildUrl,Gd as buildSuspenseResolveScript,uq as buildStaticSite,il as buildRuntimeAsset,jl as buildRouterAsset,tq as buildLangPickerScript,Dh as buildImageUrl,Re as buildHtmlAttrs,rl as buildForProduction,Wl as buildComponentLibrary,Lo as buildAuthParams,sl as buildApp,sq as buildAlternateLinks,Um as build,Nl as broadcastPrivate,Ol as broadcastPresence,Kl as broadcast,no as brightness,io as blur,Fo as batchSignUrls,ef as batch,n as autoFixA11yFile,o as autoFixA11yDirectory,m as autoFixA11y,vo as auto,e as attributeValue,kl as assetTags,ja as asInvocableStatement,Gq as arrayOf,pq as applyTranslations,ii as applyTransformations,Sg as applySlots,Tl as applyPropDefaults,yo as applyPreset,Te as applyHtmlAttrs,Vc as applyHead,Za as applyFilters,uc as apiCspPreset,y as animationGroupDirective,zi as analyzeVideo,vl as analyzeUsage,Vk as analyzeTemplate,Wk as analyzeProject,vl as analyzeDirectiveUsage,mb as analyticsDirective,en as addStore,dn as addPage,yc as addNonceToInlineContent,fn as addLayout,cn as addComponent,Sm as actionRedirectResponse,Q as abortNavigation,p as a11yDirective,wf as __setSignalsGeneratorsForTest,Le as __setBuildIdForTest,qi as VideoProcessorCache,Eg as Validator,s as TransitionType,u as TransitionEase,t as TransitionDirection,Zb as Tokenizer,mn as TemplateTypeChecker,Mm as TEMPLATE_PRESETS,Ib as StxValidationError,Eb as StxSyntaxError,Gb as StxSecurityError,Fb as StxRuntimeError,Hb as StxFileError,Db as StxError,Vp as Show,Hd as SUSPENSE_RESOLVER_RUNTIME,Aa as STX_AUTO_IMPORTS,ta as STATE_DIR_ENV_VAR,B as SPRING_PRESETS,Tm as ProductionBuild,Xp as Portal,an as PROJECT_TEMPLATES,xo as PRESETS,Sn as MemorySessionStore,uh as MIME_TYPES,rh as MEDIA_DEFAULT_WIDTHS,th as MEDIA_DEFAULT_FORMATS,dl as LAYOUT_TYPES_FILE,fi as ImageProcessorCache,Wj as ImageProcessingError,Nn as HydrationRuntime,cj as HotReloadServer,ha as HeatmapAggregator,Pe as HTML_CLASS_MARKER,Oe as HTML_ATTRS_MARKER,Op as Fragment,Wp as For,Qb as ErrorLogger,ub as ErrorCodes,kj as EXTERNALIZED_ASSET_DIR,Ij as DeployError,Jj as DEFAULT_WIDTHS,v as DEFAULT_TRANSITION_OPTIONS,sa as DEFAULT_STATE_DIR,Lj as DEFAULT_QUALITY,Kh as DEFAULT_PLACEHOLDER_OPTIONS,Kj as DEFAULT_FORMATS,sh as DEFAULT_DPR_VALUES,En as ComponentHMRHandler,Ch as COMMON_SIZES,Ce as COLOR_MODE_BOOT_MARKER,De as COLOR_MODE_BOOT_GLOBAL,Ne as CLOAK_STYLE,Rl as BroadcastServer,Ql as Broadcast,Ie as BUILD_ID_META,Je as BUILD_ID_HEADER,Lh as BLUR_UP_CSS,fq as $path};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ct as a,dt as b}from"./chunk-q4se9rtw.js";import"./chunk-trtm887x.js";export{b as warnUnbalancedTags,a as findUnbalancedTags};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Bi as a,Ci as b,Di as c,Ei as d,Fi as e,Gi as f,Hi as g,Ii as h}from"./chunk-y4hkqsgw.js";import"./chunk-3es366z4.js";import"./chunk-trtm887x.js";export{d as v,a as useForm,g as processHasErrorsDirective,h as processFormValidationDirectives,f as processErrorsDirective,e as processErrorDirective,b as defineForm,c as Validator};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{fh as a,gh as b,hh as c,ih as d,jh as e,kh as f}from"./chunk-gvm4dw6p.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{rf as a}from"./chunk-a1ydhf5t.js";import"./chunk-qd1nadff.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as startProductionServer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ui as a,Vi as b}from"./chunk-weajy31v.js";import"./chunk-ht51fz7w.js";import"./chunk-zat2ndst.js";import"./chunk-j0tfxbns.js";import"./chunk-khrtzbxd.js";import"./chunk-8anh6d36.js";import"./chunk-3fwn9edg.js";import"./chunk-pezxve4a.js";import"./chunk-m2mhtpwy.js";import"./chunk-6xg3j487.js";import"./chunk-q4se9rtw.js";import"./chunk-1nm2xrvq.js";import"./chunk-z47tw39z.js";import"./chunk-3wd9kfyz.js";import"./chunk-trtm887x.js";export{a as getStoreScript,b as clearStoreCache};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Bk as a,Ck as b,Dk as c,Ek as d,Fk as e}from"./chunk-yf3bmmkk.js";import"./chunk-trtm887x.js";export{d as runPwaAudit,e as formatAuditResult,c as calculateAuditResult,a as auditConfig,b as auditBuildOutput};