@stacksjs/stx 0.2.400 → 0.2.401

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 (64) hide show
  1. package/dist/appearance-bootstrap.d.ts +30 -2
  2. package/dist/appearance-bootstrap.js +26 -17
  3. package/dist/{chunk-mt0j29hr.js → chunk-0fwecpfm.js} +1 -1
  4. package/dist/{chunk-d6q7cv8w.js → chunk-0nqcv7z7.js} +1 -1
  5. package/dist/{chunk-2t41acdt.js → chunk-160zge7a.js} +1 -1
  6. package/dist/{chunk-3xpws4kd.js → chunk-19kj26z3.js} +1 -1
  7. package/dist/{chunk-6wcfe0s5.js → chunk-1nj174s0.js} +1 -1
  8. package/dist/{chunk-b3b3s1kr.js → chunk-1rskz446.js} +1 -1
  9. package/dist/{chunk-h1qtbdfs.js → chunk-1s9jswhp.js} +1 -1
  10. package/dist/{chunk-q25qsg28.js → chunk-21dz636m.js} +1 -1
  11. package/dist/{chunk-18qyx80g.js → chunk-2m88psbh.js} +1 -1
  12. package/dist/{chunk-b4d5pbhs.js → chunk-2x9gpv2d.js} +1 -1
  13. package/dist/{chunk-vd7thynz.js → chunk-3t17hkar.js} +1 -1
  14. package/dist/{chunk-1h9rc1jm.js → chunk-3wsrhb1a.js} +1 -1
  15. package/dist/{chunk-nvpjt609.js → chunk-3znzj20j.js} +1 -1
  16. package/dist/{chunk-ymkv623c.js → chunk-45etne17.js} +1 -1
  17. package/dist/{chunk-83ewzshg.js → chunk-61cwdy7h.js} +1 -1
  18. package/dist/{chunk-06h5zrm2.js → chunk-7bym5kky.js} +8 -8
  19. package/dist/{chunk-wjzcggh6.js → chunk-7c8r36ve.js} +1 -1
  20. package/dist/{chunk-27wgfqs0.js → chunk-8kkqx4sc.js} +1 -1
  21. package/dist/{chunk-awz5cx5w.js → chunk-8xm3z6dh.js} +1 -1
  22. package/dist/{chunk-es5qfybg.js → chunk-8ywzw4h9.js} +1 -1
  23. package/dist/{chunk-dzaf7qx8.js → chunk-bf6zcjr5.js} +1 -1
  24. package/dist/{chunk-x04ktd35.js → chunk-bgy4hwh4.js} +1 -1
  25. package/dist/{chunk-wva3ggqj.js → chunk-btn4481e.js} +1 -1
  26. package/dist/{chunk-zm92mg10.js → chunk-ch2aycnm.js} +1 -1
  27. package/dist/{chunk-x5z3r1d9.js → chunk-cmnve329.js} +1 -1
  28. package/dist/{chunk-4bnv6c6t.js → chunk-ef3y864p.js} +1 -1
  29. package/dist/{chunk-dazf77tr.js → chunk-epzm35py.js} +1 -1
  30. package/dist/{chunk-eqtc6w4a.js → chunk-h7sgg3vh.js} +1 -1
  31. package/dist/{chunk-rswsrggp.js → chunk-hh8abhtc.js} +1 -1
  32. package/dist/{chunk-vs3zfaxp.js → chunk-k9t7pyb8.js} +1 -1
  33. package/dist/{chunk-h4nydbnx.js → chunk-kfhm9vh1.js} +2 -2
  34. package/dist/{chunk-m4q3nsch.js → chunk-kxxph6d4.js} +1 -1
  35. package/dist/{chunk-1bvm3byf.js → chunk-mgndzdqy.js} +1 -1
  36. package/dist/{chunk-3818kp2d.js → chunk-nm7jfzmz.js} +2 -2
  37. package/dist/{chunk-gjpq3pmz.js → chunk-pm8wzxsb.js} +1 -1
  38. package/dist/{chunk-rem5ne21.js → chunk-pqc4sv02.js} +2 -2
  39. package/dist/{chunk-8gwby0r0.js → chunk-q4v62yed.js} +80 -21
  40. package/dist/{chunk-3ey6ha6w.js → chunk-r0jqyxbc.js} +1 -1
  41. package/dist/{chunk-0tak2f33.js → chunk-re9rv45k.js} +1 -1
  42. package/dist/{chunk-1f8kqg6a.js → chunk-s4yq7q1d.js} +1 -1
  43. package/dist/{chunk-74ebps1a.js → chunk-twws9vvz.js} +1 -1
  44. package/dist/{chunk-yc3x3rmf.js → chunk-vyn2y774.js} +1 -1
  45. package/dist/{chunk-ej2mb0t3.js → chunk-w680bfze.js} +1 -1
  46. package/dist/{chunk-126tkba9.js → chunk-waz1sddd.js} +1 -1
  47. package/dist/{chunk-38an983e.js → chunk-wdszjnbp.js} +1 -1
  48. package/dist/{chunk-nrgcfg8h.js → chunk-wmqhn6rq.js} +1 -1
  49. package/dist/{chunk-xs7f8h2r.js → chunk-x3h04mgd.js} +1 -1
  50. package/dist/{chunk-1qbj1kz4.js → chunk-y5gyez1p.js} +1 -1
  51. package/dist/{chunk-4tpsw999.js → chunk-zfs01pjr.js} +1 -1
  52. package/dist/{chunk-6am7e1be.js → chunk-zstrcmbj.js} +19 -19
  53. package/dist/cli.js +8 -8
  54. package/dist/color-mode-boot.d.ts +20 -0
  55. package/dist/color-mode-boot.js +5 -3
  56. package/dist/composables/use-color-mode.d.ts +1 -0
  57. package/dist/composables/use-color-mode.js +9 -5
  58. package/dist/craft-entry.js +1 -1
  59. package/dist/craft.js +1 -1
  60. package/dist/pwa.js +1 -1
  61. package/dist/script-validation.js +1 -1
  62. package/dist/signals.js +80 -21
  63. package/dist/ssg.js +2 -2
  64. package/package.json +5 -5
@@ -150,7 +150,39 @@ console.log('[stx] entering IIFE');
150
150
  anchor: function(label) { return document.createComment(label); },
151
151
  clone: function(node) { return node.cloneNode(true); },
152
152
  insert: function(parent, node, before) { parent.insertBefore(node, before); },
153
- remove: function(node) { if (node.parentNode) node.parentNode.removeChild(node); }
153
+ remove: function(node) { if (node.parentNode) node.parentNode.removeChild(node); },
154
+
155
+ // Teardown needs to reach a subtree, and both ways of reaching one were
156
+ // selector queries -- the last DOM assumption left in the binding layer
157
+ // (#1984). A view hierarchy has no selectors, and a native host already
158
+ // knows what it built, so being asked is cheaper for it than searching is
159
+ // for the document.
160
+ //
161
+ // descendants() is every node under this one, for the per-node teardown
162
+ // state the runtime hangs off elements. scopesIn() is the scope IDS in the
163
+ // subtree, this node included -- ids and not nodes, because the only thing
164
+ // done with them is a lookup in window.stx._scopes.
165
+ descendants: function(node) {
166
+ var out = [];
167
+ if (!node || !node.querySelectorAll) return out;
168
+ var all = node.querySelectorAll('*');
169
+ for (var i = 0; i < all.length; i++) out.push(all[i]);
170
+ return out;
171
+ },
172
+ scopesIn: function(node) {
173
+ var ids = [];
174
+ if (!node) return ids;
175
+ var own = node.getAttribute && node.getAttribute('data-stx-scope');
176
+ if (own) ids.push(own);
177
+ if (node.querySelectorAll) {
178
+ var matches = node.querySelectorAll('[data-stx-scope]');
179
+ for (var i = 0; i < matches.length; i++) {
180
+ var id = matches[i].getAttribute('data-stx-scope');
181
+ if (id) ids.push(id);
182
+ }
183
+ }
184
+ return ids;
185
+ }
154
186
  };
155
187
 
156
188
  // Inject x-cloak CSS to prevent FOUC (Flash of Unstyled Content)
@@ -3071,6 +3103,28 @@ catch (e2) {
3071
3103
  const value = attr.value;
3072
3104
  if (!name) return;
3073
3105
 
3106
+ /*
3107
+ * A doubled colon escapes the prefix, the way a doubled at-sign does in
3108
+ * a directive: @@if renders @if, so ::foo renders :foo.
3109
+ *
3110
+ * It was excluded from the generic attribute path, which is why it was
3111
+ * never evaluated as an expression -- but a name beginning with two
3112
+ * colons also begins with one, so the event catch-all below claimed it,
3113
+ * registered a listener for an event named :foo, and removed the
3114
+ * attribute. The author got neither a binding nor their attribute: it
3115
+ * disappeared, silently, and nothing took its place.
3116
+ *
3117
+ * Unescaped here rather than on the server, because an unescaped :foo
3118
+ * reaching this pass is indistinguishable from one the author wrote and
3119
+ * would be bound as an event. The attributes were snapshotted before
3120
+ * this loop, so the one written now is not revisited.
3121
+ */
3122
+ if (name.startsWith('::')) {
3123
+ el.removeAttribute(name);
3124
+ el.setAttribute(name.slice(1), value);
3125
+ return;
3126
+ }
3127
+
3074
3128
  // Dynamic attribute binding: @bind:attr, x-bind:attr, :attr, OR x-attr
3075
3129
  // x-attr (e.g. x-class, x-style, x-href, x-src) is the canonical binding prefix.
3076
3130
  // :attr still works for backward compat but is reserved for structural directives.
@@ -5786,6 +5840,18 @@ else if (timer === null) {
5786
5840
  var attribute = pick(options.attribute, fromBoot('attribute'), null);
5787
5841
  var autoValueOption = pick(options.autoValue, fromBoot('autoValue'), undefined);
5788
5842
  var disableTransitions = options.disableTransitions !== false;
5843
+ // A mode the page was served already stamped with, which outranks this
5844
+ // composable's own resolution: for a page whose theme is not the visitor's
5845
+ // to choose (stacksjs/stx#2050). Taken from the boot global's forced key
5846
+ // rather than by reading the attribute, because the boot script has
5847
+ // stamped it by now either way and the DOM can no longer say which it was.
5848
+ //
5849
+ // No backticks in this comment, or any other in this file: the runtime is
5850
+ // generated from a template literal, so one would end the literal and
5851
+ // break the whole emitted script.
5852
+ var respectExisting = options.respectExisting === true || fromBoot('respectExisting') === true;
5853
+ var bootForced = fromBoot('forced');
5854
+ var forcedMode = (respectExisting && (bootForced === 'light' || bootForced === 'dark')) ? bootForced : null;
5789
5855
  var resolved = 'light';
5790
5856
  var listeners = [];
5791
5857
  var cleanups = [];
@@ -5805,6 +5871,9 @@ else if (timer === null) {
5805
5871
  return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
5806
5872
  }
5807
5873
  function resolve(pref) { return pref === 'auto' ? getSystem() : pref; }
5874
+ // Used wherever the resolved mode is assigned, so a forced page survives
5875
+ // a system-theme change and another tab's write, not just the first mount.
5876
+ function effective(pref) { return forcedMode || resolve(pref); }
5808
5877
  function applyDOM(mode) {
5809
5878
  var el = document.documentElement;
5810
5879
  if (disableTransitions) el.style.setProperty('transition', 'none', 'important');
@@ -5837,7 +5906,7 @@ catch (e) {} }
5837
5906
  // composable didn't recognise, destroying it.
5838
5907
  function update(pref, persistChoice) {
5839
5908
  preference = normalizeMode(pref) || 'auto';
5840
- resolved = resolve(preference);
5909
+ resolved = effective(preference);
5841
5910
  applyDOM(resolved);
5842
5911
  if (persistChoice !== false) persist(preference);
5843
5912
  listeners.forEach(function(fn) { fn(resolved, preference); });
@@ -5848,7 +5917,7 @@ catch (e) {} }
5848
5917
  var mql = window.matchMedia('(prefers-color-scheme: dark)');
5849
5918
  var onSystemChange = function() {
5850
5919
  if (preference === 'auto') {
5851
- resolved = getSystem();
5920
+ resolved = forcedMode || getSystem();
5852
5921
  applyDOM(resolved);
5853
5922
  listeners.forEach(function(fn) { fn(resolved, preference); });
5854
5923
  }
@@ -5863,7 +5932,7 @@ catch (e) {} }
5863
5932
  // Track the other tab's spelling too, so a write from here doesn't
5864
5933
  // convert the key out from under it.
5865
5934
  if (v === 'auto' && (e.newValue === 'auto' || e.newValue === 'system')) autoValue = e.newValue;
5866
- preference = v; resolved = resolve(v); applyDOM(resolved);
5935
+ preference = v; resolved = effective(v); applyDOM(resolved);
5867
5936
  listeners.forEach(function(fn) { fn(resolved, preference); });
5868
5937
  }
5869
5938
  };
@@ -8540,11 +8609,7 @@ catch (e) {
8540
8609
  // Descendants first, then the root, the order cleanupContainer always used.
8541
8610
  function disposeSubtreeEffects(root) {
8542
8611
  if (!root) return;
8543
- var nodes = [];
8544
- if (root.querySelectorAll) {
8545
- var all = root.querySelectorAll('*');
8546
- for (var i = 0; i < all.length; i++) nodes.push(all[i]);
8547
- }
8612
+ var nodes = stxHost.descendants(root);
8548
8613
  nodes.push(root);
8549
8614
  var owned = ['__stx_disposers', '__stx_effect_disposers', '__stx_if_disposers', '__stx_chain_disposers'];
8550
8615
  for (var n = 0; n < nodes.length; n++) {
@@ -8578,18 +8643,12 @@ catch (e) {
8578
8643
 
8579
8644
  function disposeSubtreeScopes(root) {
8580
8645
  if (!root || !window.stx || !window.stx._scopes) return;
8581
- // Build the list of nodes to inspect: root + descendants with the
8582
- // [data-stx-scope] attribute. Avoid Array.from on a generator since
8583
- // we want browser-broad compatibility from the minified runtime.
8584
- var nodes = [];
8585
- if (root.getAttribute && root.getAttribute('data-stx-scope')) nodes.push(root);
8586
- if (root.querySelectorAll) {
8587
- var matches = root.querySelectorAll('[data-stx-scope]');
8588
- for (var i = 0; i < matches.length; i++) nodes.push(matches[i]);
8589
- }
8590
- for (var n = 0; n < nodes.length; n++) {
8591
- var el = nodes[n];
8592
- var scopeId = el.getAttribute('data-stx-scope');
8646
+ // The host reports which scopes live in this subtree: the document finds
8647
+ // them with a selector, a native host reads the map it keeps as it builds
8648
+ // views (#1984).
8649
+ var scopeIds = stxHost.scopesIn(root);
8650
+ for (var n = 0; n < scopeIds.length; n++) {
8651
+ var scopeId = scopeIds[n];
8593
8652
  if (!scopeId) continue;
8594
8653
  var scopeVars = window.stx._scopes[scopeId];
8595
8654
  if (!scopeVars) continue;
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ni as T,Oi as u,Pi as A}from"./chunk-452k8psm.js";import{bl as g,il as h,ol as b}from"./chunk-q25qsg28.js";import{Do as f,Fr as I,em as k,nq as B}from"./chunk-6am7e1be.js";import{Av as D,Bv as S}from"./chunk-rwtj7j0r.js";import{Fv as F}from"./chunk-csgshaeh.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
2
+ import{Ni as T,Oi as u,Pi as A}from"./chunk-452k8psm.js";import{bl as g,il as h,ol as b}from"./chunk-21dz636m.js";import{Do as f,Fr as I,em as k,nq as B}from"./chunk-zstrcmbj.js";import{Av as D,Bv as S}from"./chunk-rwtj7j0r.js";import{Fv as F}from"./chunk-csgshaeh.js";import P from"path";var j=new Map,K=new Map,n=["composables","functions"];function p(z){let H=P.basename(z,".ts");return H==="index"||H==="types"||z.endsWith(".d.ts")}async function r(z){if(z)return P.resolve(z);let H=`<default>:${process.cwd()}`,Y=K.get(H);if(Y!==void 0)return Y;let J=await l();if(J!==null)K.set(H,J);return J}async function l(){let z=await I(),H=z.root||process.cwd(),Y=z.composablesDir;if(Y)return P.resolve(H,Y);for(let J of n){let V=P.resolve(H,J);try{let Z=new Bun.Glob("**/*.ts");for await(let W of Z.scan({cwd:V,absolute:!0}))if(!p(W))return V}catch{}}return null}async function m(z){let H=Array.isArray(z)?z:z?[P.resolve(z)]:(await I())._layerComposableDirs??[await r()].filter((J)=>!!J),Y=new Map;for(let J of H){let V=new Bun.Glob("**/*.ts");try{for await(let Z of V.scan({cwd:J,absolute:!0})){let W=P.relative(J,Z);if(!p(Z)&&!Y.has(W))Y.set(W,Z)}}catch{}}return{key:H.join("\x00"),files:[...Y.values()].sort()}}async function Wq(z){let{files:H}=await m(z),Y=B({loader:"ts",target:"browser",define:k()}),J=[];for(let V of H)try{let Z=await Bun.file(V).text(),W=Y.scan(Z).exports.filter((G)=>G!=="default");if(W.length>0)J.push({file:V,names:W})}catch{}return J}function c(z,H){return new RegExp(`\\b${H.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\b`).test(z)}function a(z,H,Y){let J=new Map;for(let{file:G,names:$}of z)for(let O of $)if(!J.has(O))J.set(O,G);let V=(G)=>{let $=[];for(let[O,w]of J)if(c(G,O))$.push(w);return $},Z=new Set,W=Y.flatMap(V);while(W.length>0){let G=[];for(let $ of W){if(Z.has($))continue;Z.add($);for(let O of V(H.get($)??""))if(!Z.has(O))G.push(O)}W=G}return Z}async function Yq(z,H,Y){let{key:J,files:V}=await m(z);if(!J)return null;let Z=()=>[...new Set([...V,...V.flatMap((q)=>g(q))])],W=T(Z());if(V.length===0)return A(j,J,W,""),null;V.sort();let G=B({loader:"ts",target:"browser",define:k()}),$=new Map,O=[];for(let q of V)try{let Q=await Bun.file(q).text();$.set(q,Q);let U=G.scan(Q).exports.filter((X)=>X!=="default");if(U.length>0)O.push({file:q,names:U})}catch{$.set(q,"")}let w=H===void 0?new Set(V):a(O,$,Y?[H,...Y]:[H]);if(w.size===0)return null;let _=V.filter((q)=>w.has(q)),M=`${J}\x00${_.join("\x00")}`,v=u(j,M,W);if(v!==void 0)return v||null;let R=[],L=new Set,C=new Set;for(let q of _)try{let Q=$.get(q)??await Bun.file(q).text(),U=P.basename(q,".ts");for(let X of Q.matchAll(/\b(?:const|let|var|function|class)\s+([A-Z_a-z$][\w$]*)/g))if(X[1])C.add(X[1]);try{for(let X of G.scan(Q).exports)if(X!=="default")L.add(X)}catch{}if(Q=D(Q),h(Q))Q=await b(Q,q,{projectRoot:process.cwd(),externalizeUserModules:!1}),Q=f(Q);Q=S(Q),Q=Q.replace(/^export\s+(default\s+)?/gm,""),Q=G.transformSync(Q),R.push(`// Composable: ${U}
3
3
  ${Q.trim()}`)}catch(Q){console.warn(`[stx] Failed to load composable ${q}:`,Q)}if(R.length===0||L.size===0)return A(j,M,W,""),null;let t=[...L].map((q)=>` try { if (!(${JSON.stringify(q)} in __c)) __c[${JSON.stringify(q)}] = ${q}; } catch (e) {}`).join(`
4
4
  `),N=JSON.stringify([...L]),E=R.join(`
5
5
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{ii as jH}from"./chunk-3ey6ha6w.js";import{$p as VH,Fr as BH,Ho as e,Up as S,Vp as zH,Wp as qH,Zp as JH,_p as WH,aq as AH,bq as GH,cq as UH,dm as $H,dq as FH,eq as MH,fq as XH}from"./chunk-6am7e1be.js";import{At as f}from"./chunk-yj5gkn17.js";import{Fv as D}from"./chunk-csgshaeh.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
2
+ import{ii as jH}from"./chunk-r0jqyxbc.js";import{$p as VH,Fr as BH,Ho as e,Up as S,Vp as zH,Wp as qH,Zp as JH,_p as WH,aq as AH,bq as GH,cq as UH,dm as $H,dq as FH,eq as MH,fq as XH}from"./chunk-zstrcmbj.js";import{At as f}from"./chunk-yj5gkn17.js";import{Fv as D}from"./chunk-csgshaeh.js";import{existsSync as x,readFileSync as m}from"fs";import U from"path";var EH=new Set(["module","exports","require","$bool","$num","window","document","console","confirm","alert","fetch"]),HH=e.filter((H)=>!EH.has(H)).sort(),KH=[...D].sort(),DH=[...new Set([...HH,...KH])].sort(),PH=new Set(HH),TH=new Set(KH),SH=new Set(DH),t=/\bimport\s+(?!type[\s{])\{([^}]*)\}\s*from\s*(['"])stx\2/g;function xH(H,K){if(K==="server")return`'${H}' is not provided by 'stx' in a <script server> block. The engine binds only its own names there (defineProps, state, useHead, ...); any other name becomes \`await import('stx')\`, which does not resolve, so the whole script fails when the page renders. Import it from '@stacksjs/stx' instead.`;return`'${H}' is not provided by 'stx' in a client <script> block. The import is replaced by the window.stx runtime, which has no '${H}', so it is undefined in the browser.`}function QH(H,K){let Z=[];for(let q of K){if(q.offset===void 0)continue;let Y=q.kind==="server"?PH:TH;t.lastIndex=0;for(let z of q.code.matchAll(t)){let A=z.index+z[0].indexOf("{")+1;for(let G of z[1].matchAll(/[^,]+/g)){let X=G[0];if(/^\s*type\s/.test(X))continue;let M=/^\s*([A-Za-z_$][\w$]*)/.exec(X);if(!M)continue;let $=M[1];if(!SH.has($)||Y.has($))continue;let V=q.offset+A+G.index+M[0].length-$.length,J=H.slice(0,V),I=J.split(`
3
3
  `).length;Z.push({line:I,column:V-(J.lastIndexOf(`
4
4
  `)+1)+1,offset:V,length:$.length,name:$,kind:q.kind,message:xH($,q.kind)})}}}return Z}import w from"path";var hH="@stacksjs/stx-typescript-plugin";function kH(H,K){let Z=w.resolve(H);for(;;){let q=w.join(Z,"tsconfig.json");if(K(q))return q;let Y=w.dirname(Z);if(Y===Z)return;Z=Y}}function YH(H,K,Z){let q=kH(H,Z);if(!q)return;let Y=new Set,z=(A)=>{if(Y.has(A))return;Y.add(A);let G=K(A);if(!G)return;let X=G.compilerOptions?.plugins;if(Array.isArray(X)){let $=X.find((J)=>J?.name===hH),V=Array.isArray($?.libs)?$.libs.filter((J)=>typeof J==="string"):[];return $?{configPath:A,libs:V.map((J)=>w.resolve(w.dirname(A),J))}:null}let M=typeof G.extends==="string"?[G.extends]:Array.isArray(G.extends)?G.extends:[];for(let $ of[...M].reverse()){if(typeof $!=="string"||!$.startsWith("."))continue;let V=w.resolve(w.dirname(A),$.endsWith(".json")?$:`${$}.json`),J=z(V);if(J!==void 0)return J}return};return z(q)??void 0}function gH(H,K="",Z=""){let q=H.startLine>1?`
5
5
  `.repeat(H.startLine-1):"",Y=UH(H)+qH(zH(H.code)),z=H.kind==="client"||H.kind==="plain"?VH(K,H.code):"";return GH(`${q+Y}
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ot as a,Pt as b}from"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-rxz43r6k.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
2
+ import{Ot as a,Pt as b}from"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-rxz43r6k.js";export{a as prepareRuntimeConfig,b as generateRuntimeConfigTypes};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Rt as H,Ut as F}from"./chunk-g7qmxjyc.js";import{$w as I}from"./chunk-rxz43r6k.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-es5qfybg.js"),G=await D(q);if(G.runtimeConfig)w.__stx_runtime_config=F(G.runtimeConfig);return}let B=z.dirname(q);if(B===q)return;q=B}}async function O(w,A){function j(b){if(b===null)return"null";if(Array.isArray(b))return`Array<${b.length?[...new Set(b.map(j))].join(" | "):"unknown"}>`;if(typeof b==="object")return`{ ${Object.entries(b).map(([q,B])=>`readonly ${JSON.stringify(q)}: ${j(B)}`).join("; ")} }`;return typeof b}await Bun.write(z.join(w,".stx/runtime-config.d.ts"),`import '@stacksjs/stx/runtime-config'
2
+ import{Rt as H,Ut as F}from"./chunk-g7qmxjyc.js";import{$w as I}from"./chunk-rxz43r6k.js";import J from"fs";import z from"path";async function N(w,A,j){if(w.__stx_runtime_config)return;let b=H();if(b||j){w.__stx_runtime_config=b??F(j);return}let q=z.dirname(z.resolve(A));while(!0){if(["stx.config.ts","stx.config.js",".config/stx.config.ts",".config/stx.config.js"].some((D)=>J.existsSync(z.join(q,D)))){let{loadStxConfig:D}=await import("./chunk-8ywzw4h9.js"),G=await D(q);if(G.runtimeConfig)w.__stx_runtime_config=F(G.runtimeConfig);return}let B=z.dirname(q);if(B===q)return;q=B}}async function O(w,A){function j(b){if(b===null)return"null";if(Array.isArray(b))return`Array<${b.length?[...new Set(b.map(j))].join(" | "):"unknown"}>`;if(typeof b==="object")return`{ ${Object.entries(b).map(([q,B])=>`readonly ${JSON.stringify(q)}: ${j(B)}`).join("; ")} }`;return typeof b}await Bun.write(z.join(w,".stx/runtime-config.d.ts"),`import '@stacksjs/stx/runtime-config'
3
3
  declare module '@stacksjs/stx/runtime-config' { interface PublicRuntimeConfig ${j(A.public??{})} }
4
4
  `),await Bun.write(z.join(w,".stx/runtime-config-server.d.ts"),`import '@stacksjs/stx/runtime-config-server'
5
5
  declare module '@stacksjs/stx/runtime-config-server' { interface PrivateRuntimeConfig ${j(A.private??{})} }
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{af as a}from"./chunk-dzaf7qx8.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-eqtc6w4a.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as startProductionServer};
2
+ import{af as a}from"./chunk-bf6zcjr5.js";import"./chunk-nm7jfzmz.js";import"./chunk-g64qyhhb.js";import"./chunk-h7sgg3vh.js";import"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as startProductionServer};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{dm as c,gm as d,hm as e,im as f,jm as g,km as h,lm as i,mm as j,nm as k,om as l,pm as m,qm as n}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import{xs as a,ys as b}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
2
+ import{dm as c,gm as d,hm as e,im as f,jm as g,km as h,lm as i,mm as j,nm as k,om as l,pm as m,qm as n}from"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import{xs as a,ys as b}from"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{h as transformAutoImports,b as stripCommentsAndLiterals,e as renderVendorStyleTags,i as referencesName,n as processClientScript,g as injectBrowserCoreAutoImports,m as generateServerDataBridge,k as generateBrowserAutoImportDestructuring,j as generateAutoImportDestructuring,a as findInterpolationEnd,l as extractBridgeData,d as extractAndStripCssImports,f as STX_AUTO_IMPORTS,c as BROWSER_CORE_IMPORTS};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Ho as a,Io as b,Jo as c,Ko as d,Lo as e,Mo as f,No as g,Oo as h,Po as i,Qo as j,Ro as k,So as l}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{c as withoutStxReferrer,b as stripTypeScript,j as splitDeclaration,e as isSyntaxFailure,d as isModuleResolutionFailure,f as isMissingBindingFailure,h as isCompleteImport,l as hasVariables,g as extractVariables,k as extractScriptFromTemplate,i as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
2
+ import{Ho as a,Io as b,Jo as c,Ko as d,Lo as e,Mo as f,No as g,Oo as h,Po as i,Qo as j,Ro as k,So as l}from"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{c as withoutStxReferrer,b as stripTypeScript,j as splitDeclaration,e as isSyntaxFailure,d as isModuleResolutionFailure,f as isMissingBindingFailure,h as isCompleteImport,l as hasVariables,g as extractVariables,k as extractScriptFromTemplate,i as convertToCommonJS,a as STX_ENGINE_BINDING_NAMES};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Am as d,Bm as e,Cm as f,Dm as g,Em as h,Fm as i,Gm as j,Hm as k,Im as l,Jm as m,Km as n,Lm as o,Mm as p,Nm as q,Om as r,Pm as s,xm as a,ym as b,zm as c}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
2
+ import{Am as d,Bm as e,Cm as f,Dm as g,Em as h,Fm as i,Gm as j,Hm as k,Im as l,Jm as m,Km as n,Lm as o,Mm as p,Nm as q,Om as r,Pm as s,xm as a,ym as b,zm as c}from"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{j as usesSignalsInScript,s as unescapeHtml,q as resetRejectedExpressionWarnings,g as replaceInterpolations,c as registerFilters,b as registerFilter,o as processExpressions,n as interpolateScriptsInTemplate,l as interpolateScriptExpressions,m as interpolateScriptAttributes,d as getAllFilters,f as findMustacheEnd,r as evaluateExpression,i as escapeHtmlValue,h as escapeHtml,a as defaultFilters,k as clientLoopScopes,e as clearCustomFilters,p as applyFilters};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ag as I}from"./chunk-g64qyhhb.js";import{Fr as H}from"./chunk-6am7e1be.js";import{$w as G}from"./chunk-rxz43r6k.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-1qbj1kz4.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
2
+ import{Ag as I}from"./chunk-g64qyhhb.js";import{Fr as H}from"./chunk-zstrcmbj.js";import{$w as G}from"./chunk-rxz43r6k.js";import L from"path";async function Q(k={}){let J=performance.now(),A=k.root||process.cwd(),j=await H(A),B=k.ssr?.routeRules??j.routeRules??{};if(I(B),!j.ssr&&Object.keys(B).length)throw Error("routeRules require ssr: true and the production server; flat SSG output cannot apply request/cache policies");if(!j.ssr&&(k.ssr?.serverApi??j.serverApi))throw Error("serverApi requires ssr: true; flat SSG output cannot execute API endpoints");let q=j.ssr?"ssr":"ssg";console.log(`[stx build] Mode: ${q.toUpperCase()}${j.ssr?" (ssr: true in stx.config.ts)":" (default \u2014 ssr is false)"}`);let D,E;if(q==="ssg"){let{generateStaticSite:z}=await import("./ssg.js");D=await z({pagesDir:L.join(j.root||".",j.pagesDir||j.build?.pagesDir||"pages"),publicDir:j.publicDir||j.build?.publicDir||"public",outputDir:j.build?.outputDir||"dist",generate404:j.build?.generate404??!0,minify:j.build?.minify??!0,cleanOutput:j.build?.cleanOutput??!0,router:j.router,...k.ssg})}else{let{buildForProduction:z}=await import("./chunk-y5gyez1p.js");E=await z({root:A,outputDir:".output",debug:k.debug,...k.ssr})}let K=Math.round(performance.now()-J);return{mode:q,ssg:D,ssr:E,duration:K}}
3
3
  export{Q as Ye};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
2
+ import{Aq as y,No as a,Po as b,Ro as c,So as d,gq as e,hq as f,iq as g,jq as h,kq as i,lq as j,mq as k,nq as l,oq as m,pq as n,qq as o,rq as p,sq as q,tq as r,uq as s,vq as t,wq as u,xq as v,yq as w,zq as x}from"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{e as validateTemplate,g as validateDirective,o as userComponentFileExists,m as transpileTypeScript,q as slotContentHasExpressions,k as shouldTranspileTypeScript,n as scopeOnRootElement,u as resolveTemplatePath,s as renderComponentWithSlot,j as isJavaScriptScript,p as isHydrateTrigger,d as hasVariables,h as hasDirectives,v as getSourceLineInfo,l as getSharedTranspiler,f as getPositionInfo,y as getComponentCacheStats,t as fileExists,a as extractVariables,c as extractScriptFromTemplate,i as extractDirectiveNames,w as createDetailedErrorMessage,b as convertToCommonJS,r as componentClientSignalNames,x as clearComponentCache};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{_f as a}from"./chunk-dazf77tr.js";import"./chunk-3818kp2d.js";import"./chunk-g64qyhhb.js";import"./chunk-8gwby0r0.js";import"./chunk-mnk5mdwp.js";import"./chunk-7eea1cse.js";import"./chunk-eqtc6w4a.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as buildForProduction};
2
+ import{_f as a}from"./chunk-epzm35py.js";import"./chunk-nm7jfzmz.js";import"./chunk-g64qyhhb.js";import"./chunk-q4v62yed.js";import"./chunk-mnk5mdwp.js";import"./chunk-7eea1cse.js";import"./chunk-h7sgg3vh.js";import"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as buildForProduction};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Li as a,Mi as b}from"./chunk-27wgfqs0.js";import"./chunk-452k8psm.js";import"./chunk-q25qsg28.js";import"./chunk-eqtc6w4a.js";import"./chunk-2andsajh.js";import"./chunk-6am7e1be.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-wjzcggh6.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-74ebps1a.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as getStoreScript,b as clearStoreCache};
2
+ import{Li as a,Mi as b}from"./chunk-8kkqx4sc.js";import"./chunk-452k8psm.js";import"./chunk-21dz636m.js";import"./chunk-h7sgg3vh.js";import"./chunk-2andsajh.js";import"./chunk-zstrcmbj.js";import"./chunk-4cv7bw5e.js";import"./chunk-7tgjn256.js";import"./chunk-h8zp2fz9.js";import"./chunk-ekvejzvk.js";import"./chunk-3769e62c.js";import"./chunk-7c8r36ve.js";import"./chunk-yj5gkn17.js";import"./chunk-cy8hgd86.js";import"./chunk-twws9vvz.js";import"./chunk-g7qmxjyc.js";import"./chunk-88tt0qg0.js";import"./chunk-e1rv01pn.js";import"./chunk-bdz7nznw.js";import"./chunk-rwtj7j0r.js";import"./chunk-eqhsprr0.js";import"./chunk-csgshaeh.js";import"./chunk-d0qy1ezf.js";import"./chunk-c9kj8p6j.js";import"./chunk-x2wmn8m7.js";import"./chunk-rxz43r6k.js";export{a as getStoreScript,b as clearStoreCache};