marko 6.4.16 → 6.5.0

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 (88) hide show
  1. package/cheatsheet.md +12 -1
  2. package/dist/debug/dom/catch.feat.js +2 -2
  3. package/dist/debug/dom/catch.feat.mjs +2 -2
  4. package/dist/debug/dom/compat.feat.js +1 -1
  5. package/dist/debug/dom/compat.feat.mjs +1 -1
  6. package/dist/debug/dom/controllable-input.feat.js +1 -1
  7. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  8. package/dist/debug/dom/controllable-open.feat.js +1 -1
  9. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  10. package/dist/debug/dom/controllable-select.feat.js +1 -1
  11. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  12. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  13. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  14. package/dist/debug/dom/controllable.feat.js +1 -1
  15. package/dist/debug/dom/controllable.feat.mjs +1 -1
  16. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  17. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  18. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  19. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  20. package/dist/debug/dom/lazy.feat.js +1 -1
  21. package/dist/debug/dom/lazy.feat.mjs +1 -1
  22. package/dist/debug/dom/placeholder.feat.js +1 -1
  23. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  24. package/dist/debug/{dom-BLoTKI2r.js → dom-BiJ_UKJV.js} +9 -9
  25. package/dist/debug/{dom-DlBA4dCe.mjs → dom-D3A8gh_D.mjs} +4 -4
  26. package/dist/debug/dom.js +1 -1
  27. package/dist/debug/dom.mjs +1 -1
  28. package/dist/debug/html/compat.feat.js +1 -1
  29. package/dist/debug/html/compat.feat.mjs +1 -1
  30. package/dist/debug/{html-DM7X2D_b.mjs → html-Bfl3MJP9.mjs} +27 -24
  31. package/dist/debug/{html-Du0z056z.js → html-shBfuhlc.js} +27 -24
  32. package/dist/debug/html.js +1 -1
  33. package/dist/debug/html.mjs +1 -1
  34. package/dist/dom/catch.feat.js +3 -3
  35. package/dist/dom/catch.feat.mjs +2 -2
  36. package/dist/dom/compat.feat.js +1 -1
  37. package/dist/dom/compat.feat.mjs +1 -1
  38. package/dist/dom/control-flow.d.ts +1 -1
  39. package/dist/dom/controllable-input.feat.js +1 -1
  40. package/dist/dom/controllable-input.feat.mjs +1 -1
  41. package/dist/dom/controllable-open.feat.js +1 -1
  42. package/dist/dom/controllable-open.feat.mjs +1 -1
  43. package/dist/dom/controllable-select.feat.js +1 -1
  44. package/dist/dom/controllable-select.feat.mjs +1 -1
  45. package/dist/dom/controllable-textarea.feat.js +1 -1
  46. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  47. package/dist/dom/controllable.feat.js +1 -1
  48. package/dist/dom/controllable.feat.mjs +1 -1
  49. package/dist/dom/dynamic-tag-script.feat.js +1 -1
  50. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  51. package/dist/dom/dynamic-tag-var.feat.js +1 -1
  52. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  53. package/dist/dom/lazy.feat.js +1 -1
  54. package/dist/dom/lazy.feat.mjs +1 -1
  55. package/dist/dom/placeholder.feat.js +1 -1
  56. package/dist/dom/placeholder.feat.mjs +1 -1
  57. package/dist/{dom-BRtFOIF-.js → dom-B3piR0q1.js} +5 -5
  58. package/dist/{dom-Cqajrs_w.mjs → dom-CPk_8CMB.mjs} +4 -4
  59. package/dist/dom.js +2 -2
  60. package/dist/dom.mjs +1 -1
  61. package/dist/html/compat.feat.js +1 -1
  62. package/dist/html/compat.feat.mjs +1 -1
  63. package/dist/html/writer.d.ts +0 -1
  64. package/dist/{html-C3dQGQ2x.mjs → html-BD-y50wS.mjs} +25 -22
  65. package/dist/{html-4A3vJpIT.js → html-aFBpTKdf.js} +25 -22
  66. package/dist/html.js +1 -1
  67. package/dist/html.mjs +1 -1
  68. package/dist/translator/core/define.d.ts +6 -0
  69. package/dist/translator/core/show.d.ts +1 -1
  70. package/dist/translator/index.js +577 -611
  71. package/dist/translator/util/assert.d.ts +2 -0
  72. package/dist/translator/util/bindings.d.ts +15 -8
  73. package/dist/translator/util/cyclic-memo.d.ts +0 -1
  74. package/dist/translator/util/entry-builder.d.ts +2 -3
  75. package/dist/translator/util/finalize-references.d.ts +0 -1
  76. package/dist/translator/util/for-selector.d.ts +0 -1
  77. package/dist/translator/util/module-registrations.d.ts +1 -0
  78. package/dist/translator/util/optional.d.ts +7 -5
  79. package/dist/translator/util/reasons.d.ts +1 -2
  80. package/dist/translator/util/references.d.ts +6 -5
  81. package/dist/translator/util/sections.d.ts +4 -1
  82. package/dist/translator/util/signals.d.ts +1 -1
  83. package/dist/translator/util/slots.d.ts +1 -2
  84. package/dist/translator/util/solve-reasons.d.ts +2 -2
  85. package/dist/translator/util/structure.d.ts +1 -0
  86. package/dist/translator/visitors/tag/native-tag.d.ts +2 -0
  87. package/index.d.ts +11 -0
  88. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
- import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-Cqajrs_w.mjs";
1
+ import { E as _attr_input_checkedValue_script, N as _attr_input_value_script, O as _attr_input_checked_script, V as controllableScripts } from "../dom-CPk_8CMB.mjs";
2
2
  controllableScripts[0] = _attr_input_checked_script, controllableScripts[1] = _attr_input_checkedValue_script, controllableScripts[2] = _attr_input_value_script;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  // src/dom/controllable-open.feat.ts
4
4
  require_control_flow.V[4] = require_control_flow.S;
@@ -1,3 +1,3 @@
1
- import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-Cqajrs_w.mjs";
1
+ import { S as _attr_details_or_dialog_open_script, V as controllableScripts } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/controllable-open.feat.ts
3
3
  controllableScripts[4] = _attr_details_or_dialog_open_script;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  // src/dom/controllable-select.feat.ts
4
4
  require_control_flow.V[3] = require_control_flow.I;
@@ -1,3 +1,3 @@
1
- import { I as _attr_select_value_script, V as controllableScripts } from "../dom-Cqajrs_w.mjs";
1
+ import { I as _attr_select_value_script, V as controllableScripts } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/controllable-select.feat.ts
3
3
  controllableScripts[3] = _attr_select_value_script;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  // src/dom/controllable-textarea.feat.ts
4
4
  require_control_flow.V[2] = require_control_flow.N;
@@ -1,3 +1,3 @@
1
- import { N as _attr_input_value_script, V as controllableScripts } from "../dom-Cqajrs_w.mjs";
1
+ import { N as _attr_input_value_script, V as controllableScripts } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/controllable-textarea.feat.ts
3
3
  controllableScripts[2] = _attr_input_value_script;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.H.INPUT = require_control_flow.L, require_control_flow.H.TEXTAREA = require_control_flow.B, require_control_flow.H.SELECT = require_control_flow.z, require_control_flow.H.DETAILS = require_control_flow.H.DIALOG = require_control_flow.R;
@@ -1,4 +1,4 @@
1
- import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-Cqajrs_w.mjs";
1
+ import { B as _controllable_textarea, H as controllableSpreadHelpers, L as _controllable_input, R as _controllable_open, z as _controllable_select } from "../dom-CPk_8CMB.mjs";
2
2
  import "./controllable-input.feat.mjs";
3
3
  import "./controllable-open.feat.mjs";
4
4
  import "./controllable-select.feat.mjs";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  // src/dom/dynamic-tag-script.feat.ts
4
4
  require_control_flow.yt._d = require_control_flow.xn(require_control_flow.h);
@@ -1,3 +1,3 @@
1
- import { h as dynamicTagScript, xn as withBranches, yt as _resumed } from "../dom-Cqajrs_w.mjs";
1
+ import { h as dynamicTagScript, xn as withBranches, yt as _resumed } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/dynamic-tag-script.feat.ts
3
3
  _resumed._d = withBranches(dynamicTagScript);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  require_control_flow.nn(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
4
4
  branch.BR = require_control_flow.tn(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
5
5
  });
@@ -1,4 +1,4 @@
1
- import { g as installDynamicTagVar, nn as installBranchRenders, tn as createBranchRenders } from "../dom-Cqajrs_w.mjs";
1
+ import { g as installDynamicTagVar, nn as installBranchRenders, tn as createBranchRenders } from "../dom-CPk_8CMB.mjs";
2
2
  installBranchRenders(), installDynamicTagVar((scope, branch, scopeKey, renderer) => {
3
3
  branch.BR = createBranchRenders(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
4
4
  });
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  // src/dom/lazy.feat.ts
3
- require("../dom-BRtFOIF-.js").Et();
3
+ require("../dom-B3piR0q1.js").Et();
@@ -1,3 +1,3 @@
1
- import { Et as withLazy } from "../dom-Cqajrs_w.mjs";
1
+ import { Et as withLazy } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/lazy.feat.ts
3
3
  withLazy();
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../dom-BRtFOIF-.js");
2
+ let require_control_flow = require("../dom-B3piR0q1.js");
3
3
  // src/dom/placeholder.feat.ts
4
4
  require_control_flow.yt._f = (tryBranch) => {
5
5
  tryBranch.P &&= (require_control_flow.qt(tryBranch.P), 0);
@@ -1,4 +1,4 @@
1
- import { qt as destroyBranch, yt as _resumed } from "../dom-Cqajrs_w.mjs";
1
+ import { qt as destroyBranch, yt as _resumed } from "../dom-CPk_8CMB.mjs";
2
2
  // src/dom/placeholder.feat.ts
3
3
  _resumed._f = (tryBranch) => {
4
4
  tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
@@ -1110,13 +1110,13 @@ function createAwaitCounter(tryBranch, done) {
1110
1110
  i: 0,
1111
1111
  c() {
1112
1112
  if (--awaitCounter.i) return 1;
1113
- done(), queueEffect(tryBranch, runPendingEffects);
1113
+ done(), queuePendingEffects(tryBranch);
1114
1114
  }
1115
1115
  };
1116
1116
  return awaitCounter;
1117
1117
  }
1118
- function runPendingEffects(tryBranch) {
1119
- tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => runEffects([fn, scope]), scope.J = null), tryBranch.JS = null);
1118
+ function queuePendingEffects(tryBranch) {
1119
+ tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => queueEffect(scope, fn), scope.J = null), tryBranch.JS = null);
1120
1120
  }
1121
1121
  function dismissPlaceholder(tryBranch) {
1122
1122
  let placeholderBranch = tryBranch.P;
@@ -1457,7 +1457,7 @@ Object.defineProperty(exports, "$", {
1457
1457
  }), Object.defineProperty(exports, "_", {
1458
1458
  enumerable: !0,
1459
1459
  get: function() {
1460
- return renderCatch;
1460
+ return queuePendingEffects;
1461
1461
  }
1462
1462
  }), Object.defineProperty(exports, "_n", {
1463
1463
  enumerable: !0,
@@ -1767,7 +1767,7 @@ Object.defineProperty(exports, "$", {
1767
1767
  }), Object.defineProperty(exports, "v", {
1768
1768
  enumerable: !0,
1769
1769
  get: function() {
1770
- return runPendingEffects;
1770
+ return renderCatch;
1771
1771
  }
1772
1772
  }), Object.defineProperty(exports, "vn", {
1773
1773
  enumerable: !0,
@@ -1109,13 +1109,13 @@ function createAwaitCounter(tryBranch, done) {
1109
1109
  i: 0,
1110
1110
  c() {
1111
1111
  if (--awaitCounter.i) return 1;
1112
- done(), queueEffect(tryBranch, runPendingEffects);
1112
+ done(), queuePendingEffects(tryBranch);
1113
1113
  }
1114
1114
  };
1115
1115
  return awaitCounter;
1116
1116
  }
1117
- function runPendingEffects(tryBranch) {
1118
- tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => runEffects([fn, scope]), scope.J = null), tryBranch.JS = null);
1117
+ function queuePendingEffects(tryBranch) {
1118
+ tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => queueEffect(scope, fn), scope.J = null), tryBranch.JS = null);
1119
1119
  }
1120
1120
  function dismissPlaceholder(tryBranch) {
1121
1121
  let placeholderBranch = tryBranch.P;
@@ -1183,4 +1183,4 @@ function bySecondArg(_item, index) {
1183
1183
  function byFirstArg(name) {
1184
1184
  return name;
1185
1185
  }
1186
- export { _attrs as $, $signalReset as $t, _attr_input_value_attribute_default as A, _el_read as At, _controllable_textarea as B, _or as Bt, _attr_input_checked as C, initEmbedded as Ct, _attr_input_checked_default as D, _closure as Dt, _attr_input_checkedValue_script as E, withLazy as Et, _attr_select_value_default as F, _hoist_resume as Ft, _attr_class_item as G, _var_change as Gt, controllableSpreadHelpers as H, _return_change as Ht, _attr_select_value_script as I, _id as It, _attr_content as J, insertBranchBefore as Jt, _attr_class_items as K, _assert_init as Kt, _controllable_input as L, _if_closure as Lt, _attr_input_value_dynamic_default as M, _for_selector as Mt, _attr_input_value_script as N, _global_read as Nt, _attr_input_checked_script as O, _closure_get as Ot, _attr_select_value as P, _hoist as Pt, _attr_style_items as Q, $signal as Qt, _controllable_open as R, _let as Rt, _attr_details_or_dialog_open_script as S, init as St, _attr_input_checkedValue_default as T, readyFailed as Tt, _attr as U, _script as Ut, controllableScripts as V, _return as Vt, _attr_class as W, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, _on as Zt, renderCatch as _, _assert_hoist as _n, _dynamic_tag_var_resume as _t, _for_in as a, queueAsyncRender as an, _lifecycle as at, _attr_details_or_dialog_open as b, setClassAPIRenderer as bn, _var_resume as bt, _for_to as c, rendering as cn, _text as ct, _for_until_unkeyed as d, runId as dn, _content as dt, onAbort as en, _attrs_content as et, _if as f, forIn as fn, _content_closures as ft, installDynamicTagVar as g, _assert_class_toggles as gn, setupBranch as gt, dynamicTagScript as h, forUntil as hn, createBranch as ht, _dynamic_tag_content as i, prepareEffects as in, _html as it, _attr_input_value_default as j, _for_closure as jt, _attr_input_value as k, _const as kt, _for_to_unkeyed as l, run as ln, _text_content as lt, _try as m, forTo as mn, _return_setup as mt, _await_promise as n, installBranchRenders as nn, _attrs_partial_content as nt, _for_of as o, queueEffect as on, _style_rule_item as ot, _show as p, forOf as pn, _content_closures_resume as pt, _attr_class_names as q, destroyBranch as qt, _dynamic_tag as r, installCatch as rn, _attrs_script as rt, _for_of_unkeyed as s, queueRender as sn, _style_shell as st, _await_content as t, createBranchRenders as tn, _attrs_partial as tt, _for_until as u, runEffects as un, _to_text as ut, runPendingEffects as v, _hoist_read_error as vn, _el as vt, _attr_input_checkedValue as w, ready as wt, _attr_details_or_dialog_open_default as x, withBranches as xn, getRegisteredWithScope as xt, startAwait as y, _call as yn, _resumed as yt, _controllable_select as z, _let_change as zt };
1186
+ export { _attrs as $, $signalReset as $t, _attr_input_value_attribute_default as A, _el_read as At, _controllable_textarea as B, _or as Bt, _attr_input_checked as C, initEmbedded as Ct, _attr_input_checked_default as D, _closure as Dt, _attr_input_checkedValue_script as E, withLazy as Et, _attr_select_value_default as F, _hoist_resume as Ft, _attr_class_item as G, _var_change as Gt, controllableSpreadHelpers as H, _return_change as Ht, _attr_select_value_script as I, _id as It, _attr_content as J, insertBranchBefore as Jt, _attr_class_items as K, _assert_init as Kt, _controllable_input as L, _if_closure as Lt, _attr_input_value_dynamic_default as M, _for_selector as Mt, _attr_input_value_script as N, _global_read as Nt, _attr_input_checked_script as O, _closure_get as Ot, _attr_select_value as P, _hoist as Pt, _attr_style_items as Q, $signal as Qt, _controllable_open as R, _let as Rt, _attr_details_or_dialog_open_script as S, init as St, _attr_input_checkedValue_default as T, readyFailed as Tt, _attr as U, _script as Ut, controllableScripts as V, _return as Vt, _attr_class as W, _var as Wt, _attr_style as X, syncGen as Xt, _attr_nonce as Y, removeAndDestroyBranch as Yt, _attr_style_item as Z, _on as Zt, queuePendingEffects as _, _assert_hoist as _n, _dynamic_tag_var_resume as _t, _for_in as a, queueAsyncRender as an, _lifecycle as at, _attr_details_or_dialog_open as b, setClassAPIRenderer as bn, _var_resume as bt, _for_to as c, rendering as cn, _text as ct, _for_until_unkeyed as d, runId as dn, _content as dt, onAbort as en, _attrs_content as et, _if as f, forIn as fn, _content_closures as ft, installDynamicTagVar as g, _assert_class_toggles as gn, setupBranch as gt, dynamicTagScript as h, forUntil as hn, createBranch as ht, _dynamic_tag_content as i, prepareEffects as in, _html as it, _attr_input_value_default as j, _for_closure as jt, _attr_input_value as k, _const as kt, _for_to_unkeyed as l, run as ln, _text_content as lt, _try as m, forTo as mn, _return_setup as mt, _await_promise as n, installBranchRenders as nn, _attrs_partial_content as nt, _for_of as o, queueEffect as on, _style_rule_item as ot, _show as p, forOf as pn, _content_closures_resume as pt, _attr_class_names as q, destroyBranch as qt, _dynamic_tag as r, installCatch as rn, _attrs_script as rt, _for_of_unkeyed as s, queueRender as sn, _style_shell as st, _await_content as t, createBranchRenders as tn, _attrs_partial as tt, _for_until as u, runEffects as un, _to_text as ut, renderCatch as v, _hoist_read_error as vn, _el as vt, _attr_input_checkedValue as w, ready as wt, _attr_details_or_dialog_open_default as x, withBranches as xn, getRegisteredWithScope as xt, startAwait as y, _call as yn, _resumed as yt, _controllable_select as z, _let_change as zt };
package/dist/dom.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("./dom-BRtFOIF-.js"), empty = [], rest = Symbol(), _template = (id, template, walks, setup, inputSignal) => {
2
+ let require_control_flow = require("./dom-B3piR0q1.js"), empty = [], rest = Symbol(), _template = (id, template, walks, setup, inputSignal) => {
3
3
  let renderer = require_control_flow.dt(id, template, walks, setup, inputSignal)();
4
4
  return renderer.mount = mount, renderer._ = renderer, require_control_flow.yt[id] = renderer;
5
5
  }, noop = (_) => 0;
@@ -89,7 +89,7 @@ function insertLoaded(renderer, branch, marker, awaitCounter) {
89
89
  }
90
90
  function loadFailed(scope, awaitCounter) {
91
91
  return (error) => {
92
- awaitCounter && (awaitCounter.m ? awaitCounter.i = 0 : awaitCounter.i && awaitCounter.c()), require_control_flow.an(scope, require_control_flow._, error);
92
+ awaitCounter && (awaitCounter.m ? awaitCounter.i = 0 : awaitCounter.i && awaitCounter.c()), require_control_flow.an(scope, require_control_flow.v, error);
93
93
  };
94
94
  }
95
95
  function _load_signal(load) {
package/dist/dom.mjs CHANGED
@@ -2,7 +2,7 @@ let empty = [], rest = Symbol(), _template = (id, template, walks, setup, inputS
2
2
  let renderer = _content(id, template, walks, setup, inputSignal)();
3
3
  return renderer.mount = mount, renderer._ = renderer, _resumed[id] = renderer;
4
4
  }, noop = (_) => 0;
5
- import { $ as _attrs, $t as $signalReset, A as _attr_input_value_attribute_default, At as _el_read, B as _controllable_textarea, Bt as _or, C as _attr_input_checked, Ct as initEmbedded, D as _attr_input_checked_default, Dt as _closure, E as _attr_input_checkedValue_script, F as _attr_select_value_default, Ft as _hoist_resume, G as _attr_class_item, Gt as _var_change, Ht as _return_change, I as _attr_select_value_script, It as _id, J as _attr_content, Jt as insertBranchBefore, K as _attr_class_items, Kt as _assert_init, L as _controllable_input, Lt as _if_closure, M as _attr_input_value_dynamic_default, Mt as _for_selector, N as _attr_input_value_script, Nt as _global_read, O as _attr_input_checked_script, Ot as _closure_get, P as _attr_select_value, Pt as _hoist, Q as _attr_style_items, Qt as $signal, R as _controllable_open, Rt as _let, S as _attr_details_or_dialog_open_script, St as init, T as _attr_input_checkedValue_default, Tt as readyFailed, U as _attr, Ut as _script, Vt as _return, W as _attr_class, Wt as _var, X as _attr_style, Xt as syncGen, Y as _attr_nonce, Yt as removeAndDestroyBranch, Z as _attr_style_item, Zt as _on, _ as renderCatch, _n as _assert_hoist, _t as _dynamic_tag_var_resume, a as _for_in, an as queueAsyncRender, at as _lifecycle, b as _attr_details_or_dialog_open, bt as _var_resume, c as _for_to, ct as _text, d as _for_until_unkeyed, dn as runId, dt as _content, en as onAbort, et as _attrs_content, f as _if, fn as forIn, ft as _content_closures, gn as _assert_class_toggles, gt as setupBranch, hn as forUntil, ht as createBranch, i as _dynamic_tag_content, in as prepareEffects, it as _html, j as _attr_input_value_default, jt as _for_closure, k as _attr_input_value, kt as _const, l as _for_to_unkeyed, ln as run, lt as _text_content, m as _try, mn as forTo, mt as _return_setup, n as _await_promise, nt as _attrs_partial_content, o as _for_of, ot as _style_rule_item, p as _show, pn as forOf, pt as _content_closures_resume, q as _attr_class_names, r as _dynamic_tag, rt as _attrs_script, s as _for_of_unkeyed, sn as queueRender, st as _style_shell, t as _await_content, tt as _attrs_partial, u as _for_until, un as runEffects, ut as _to_text, vn as _hoist_read_error, vt as _el, w as _attr_input_checkedValue, wt as ready, x as _attr_details_or_dialog_open_default, y as startAwait, yn as _call, yt as _resumed, z as _controllable_select, zt as _let_change } from "./dom-Cqajrs_w.mjs";
5
+ import { $ as _attrs, $t as $signalReset, A as _attr_input_value_attribute_default, At as _el_read, B as _controllable_textarea, Bt as _or, C as _attr_input_checked, Ct as initEmbedded, D as _attr_input_checked_default, Dt as _closure, E as _attr_input_checkedValue_script, F as _attr_select_value_default, Ft as _hoist_resume, G as _attr_class_item, Gt as _var_change, Ht as _return_change, I as _attr_select_value_script, It as _id, J as _attr_content, Jt as insertBranchBefore, K as _attr_class_items, Kt as _assert_init, L as _controllable_input, Lt as _if_closure, M as _attr_input_value_dynamic_default, Mt as _for_selector, N as _attr_input_value_script, Nt as _global_read, O as _attr_input_checked_script, Ot as _closure_get, P as _attr_select_value, Pt as _hoist, Q as _attr_style_items, Qt as $signal, R as _controllable_open, Rt as _let, S as _attr_details_or_dialog_open_script, St as init, T as _attr_input_checkedValue_default, Tt as readyFailed, U as _attr, Ut as _script, Vt as _return, W as _attr_class, Wt as _var, X as _attr_style, Xt as syncGen, Y as _attr_nonce, Yt as removeAndDestroyBranch, Z as _attr_style_item, Zt as _on, _n as _assert_hoist, _t as _dynamic_tag_var_resume, a as _for_in, an as queueAsyncRender, at as _lifecycle, b as _attr_details_or_dialog_open, bt as _var_resume, c as _for_to, ct as _text, d as _for_until_unkeyed, dn as runId, dt as _content, en as onAbort, et as _attrs_content, f as _if, fn as forIn, ft as _content_closures, gn as _assert_class_toggles, gt as setupBranch, hn as forUntil, ht as createBranch, i as _dynamic_tag_content, in as prepareEffects, it as _html, j as _attr_input_value_default, jt as _for_closure, k as _attr_input_value, kt as _const, l as _for_to_unkeyed, ln as run, lt as _text_content, m as _try, mn as forTo, mt as _return_setup, n as _await_promise, nt as _attrs_partial_content, o as _for_of, ot as _style_rule_item, p as _show, pn as forOf, pt as _content_closures_resume, q as _attr_class_names, r as _dynamic_tag, rt as _attrs_script, s as _for_of_unkeyed, sn as queueRender, st as _style_shell, t as _await_content, tt as _attrs_partial, u as _for_until, un as runEffects, ut as _to_text, v as renderCatch, vn as _hoist_read_error, vt as _el, w as _attr_input_checkedValue, wt as ready, x as _attr_details_or_dialog_open_default, y as startAwait, yn as _call, yt as _resumed, z as _controllable_select, zt as _let_change } from "./dom-CPk_8CMB.mjs";
6
6
  // src/common/attr-tag.ts
7
7
  function attrTag(attrs) {
8
8
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("../html-4A3vJpIT.js"), SET_SCOPE_REGISTER_ID = "$C_s", RENDER_BODY_ID = "$C_b", K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap(), compat = {
2
+ let require_control_flow = require("../html-aFBpTKdf.js"), SET_SCOPE_REGISTER_ID = "$C_s", RENDER_BODY_ID = "$C_b", K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap(), compat = {
3
3
  $global: require_control_flow.A,
4
4
  writeLoadAsset: require_control_flow._,
5
5
  fork(scopeId, promise, content) {
@@ -149,7 +149,7 @@ let SET_SCOPE_REGISTER_ID = "$C_s", RENDER_BODY_ID = "$C_b", K_TAGS_API_STATE =
149
149
  return !!pendingClassFunctions.get($global)?.length;
150
150
  }
151
151
  }, pendingClassFunctions = /* @__PURE__ */ new WeakMap();
152
- import { A as $global, F as State, Ft as register, J as _scope_id, M as Boundary, N as Chunk, P as NOOP, Pt as REGISTRY, Q as _set_scope_reason, V as _html, Vt as setClassAPIRenderer, W as _peek_scope_id, Z as _script, _ as writeLoadAsset, at as getChunk, ct as joinHeldEffects, dt as writeScript, j as ALL_GROUPS, k as $chunk, lt as withChunk, ot as getScopeId, st as isInResumedBranch, t as _await, ut as writeScope } from "../html-C3dQGQ2x.mjs";
152
+ import { A as $global, F as State, Ft as register, J as _scope_id, M as Boundary, N as Chunk, P as NOOP, Pt as REGISTRY, Q as _set_scope_reason, V as _html, Vt as setClassAPIRenderer, W as _peek_scope_id, Z as _script, _ as writeLoadAsset, at as getChunk, ct as joinHeldEffects, dt as writeScript, j as ALL_GROUPS, k as $chunk, lt as withChunk, ot as getScopeId, st as isInResumedBranch, t as _await, ut as writeScope } from "../html-BD-y50wS.mjs";
153
153
  // src/common/compat-meta.ts
154
154
  // src/html/compat.feat.ts
155
155
  function drainClassFunctions($global, writeScope) {
@@ -121,7 +121,6 @@ export declare class State implements Channel {
121
121
  queuePassiveScope(target: Channel, scopeId: number, partialScope: PartialScope): void;
122
122
  queueEffect(scopeId: number, registryId: string): void;
123
123
  serializeFlush(boundary: Boundary): void;
124
- getSerializedGlobals(): 0 | Record<string, unknown>;
125
124
  runtimeScript(): string;
126
125
  captureContext(chunk: Chunk): void;
127
126
  keepsTryMarks(chunk: Chunk, resumeWrites: number): boolean;
@@ -1,4 +1,4 @@
1
- let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), kTouchedIterator = /* @__PURE__ */ Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
1
+ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, kTouchedIterator = /* @__PURE__ */ patchIteratorsNext(), REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
2
2
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
3
3
  for (let name of Object.getOwnPropertyNames(Symbol)) {
4
4
  let symbol = Symbol[name];
@@ -324,7 +324,7 @@ function concat(opt, other) {
324
324
  }
325
325
  return Array.isArray(other) ? [opt, ...other] : [opt, other];
326
326
  }
327
- patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
327
+ // src/html/serializer.ts
328
328
  var State$1 = class {
329
329
  ids = 0;
330
330
  flushId = 0;
@@ -1078,12 +1078,16 @@ function hasOnlyZeros(typedArray) {
1078
1078
  for (let i = 0; i < typedArray.length; i++) if (typedArray[i] !== zero) return !1;
1079
1079
  return !0;
1080
1080
  }
1081
- function patchIteratorNext(proto) {
1082
- if (proto.next[kTouchedIterator]) return;
1081
+ function patchIteratorsNext() {
1082
+ let key = Symbol.for("marko.touchedIterator");
1083
+ return patchIteratorNext(Generator.prototype, key), patchIteratorNext(AsyncGenerator.prototype, key), key;
1084
+ }
1085
+ function patchIteratorNext(proto, key) {
1086
+ if (proto.next[key]) return;
1083
1087
  let { next } = proto;
1084
1088
  proto.next = function(value) {
1085
- return this[kTouchedIterator] = 1, next.call(this, value);
1086
- }, proto.next[kTouchedIterator] = !0;
1089
+ return this[key] = 1, next.call(this, value);
1090
+ }, proto.next[key] = !0;
1087
1091
  }
1088
1092
  // src/html/attrs.ts
1089
1093
  function _attr_class(value) {
@@ -1503,20 +1507,6 @@ var State = class {
1503
1507
  serializeFlush(boundary) {
1504
1508
  flushSerializer(boundary, this);
1505
1509
  }
1506
- getSerializedGlobals() {
1507
- let { $global } = this, serializedGlobals = $global.serializedGlobals;
1508
- if (!serializedGlobals) return 0;
1509
- let filtered = 0;
1510
- if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1511
- let value = $global[key];
1512
- value !== void 0 && ((filtered ||= {})[key] = value);
1513
- }
1514
- else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1515
- let value = $global[key];
1516
- value !== void 0 && ((filtered ||= {})[key] = value);
1517
- }
1518
- return filtered;
1519
- }
1520
1510
  runtimeScript() {
1521
1511
  return "(e=>(self[e]||=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(r=l.slice(s+1),(l=l[s])>\"#\"||(a[r]=e),l),r,e),l>\"#\"&&d.push(e);n.currentNode=document.currentScript}},self[e]))(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
1522
1512
  }
@@ -1819,7 +1809,7 @@ function flushSerializer(boundary, channel) {
1819
1809
  }
1820
1810
  if (!channel.readyId && !state.hasWrittenGlobals) {
1821
1811
  state.hasWrittenGlobals = !0;
1822
- let globals = state.getSerializedGlobals();
1812
+ let globals = getFilteredGlobals(state.$global);
1823
1813
  globals && flushes.push([
1824
1814
  0,
1825
1815
  globals,
@@ -1841,7 +1831,7 @@ function flushSerializerGlobals(boundary) {
1841
1831
  let { state } = boundary;
1842
1832
  if (state.hasWrittenGlobals) return;
1843
1833
  state.hasWrittenGlobals = !0;
1844
- let globals = state.getSerializedGlobals();
1834
+ let globals = getFilteredGlobals(state.$global);
1845
1835
  globals && (state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
1846
1836
  0,
1847
1837
  globals,
@@ -1856,6 +1846,19 @@ function readyBatch(state, channel, deps, resumes) {
1856
1846
  }
1857
1847
  return resumes && own[readyId]++, concatSequence(wait && wait + "}", resumes);
1858
1848
  }
1849
+ function getFilteredGlobals($global) {
1850
+ let serializedGlobals = $global.serializedGlobals, filtered = $global.cspNonce ? { cspNonce: $global.cspNonce } : 0;
1851
+ if (!serializedGlobals) return filtered;
1852
+ if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1853
+ let value = $global[key];
1854
+ value !== void 0 && ((filtered ||= {})[key] = value);
1855
+ }
1856
+ else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1857
+ let value = $global[key];
1858
+ value !== void 0 && ((filtered ||= {})[key] = value);
1859
+ }
1860
+ return filtered;
1861
+ }
1859
1862
  function concatEffects(a, b) {
1860
1863
  return a ? b ? a + " " + b : a : b;
1861
1864
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), kTouchedIterator = /* @__PURE__ */ Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
2
+ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, kTouchedIterator = /* @__PURE__ */ patchIteratorsNext(), REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
3
3
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
4
4
  for (let name of Object.getOwnPropertyNames(Symbol)) {
5
5
  let symbol = Symbol[name];
@@ -325,7 +325,7 @@ function concat(opt, other) {
325
325
  }
326
326
  return Array.isArray(other) ? [opt, ...other] : [opt, other];
327
327
  }
328
- patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
328
+ // src/html/serializer.ts
329
329
  var State$1 = class {
330
330
  ids = 0;
331
331
  flushId = 0;
@@ -1079,12 +1079,16 @@ function hasOnlyZeros(typedArray) {
1079
1079
  for (let i = 0; i < typedArray.length; i++) if (typedArray[i] !== zero) return !1;
1080
1080
  return !0;
1081
1081
  }
1082
- function patchIteratorNext(proto) {
1083
- if (proto.next[kTouchedIterator]) return;
1082
+ function patchIteratorsNext() {
1083
+ let key = Symbol.for("marko.touchedIterator");
1084
+ return patchIteratorNext(Generator.prototype, key), patchIteratorNext(AsyncGenerator.prototype, key), key;
1085
+ }
1086
+ function patchIteratorNext(proto, key) {
1087
+ if (proto.next[key]) return;
1084
1088
  let { next } = proto;
1085
1089
  proto.next = function(value) {
1086
- return this[kTouchedIterator] = 1, next.call(this, value);
1087
- }, proto.next[kTouchedIterator] = !0;
1090
+ return this[key] = 1, next.call(this, value);
1091
+ }, proto.next[key] = !0;
1088
1092
  }
1089
1093
  // src/html/attrs.ts
1090
1094
  function _attr_class(value) {
@@ -1504,20 +1508,6 @@ var State = class {
1504
1508
  serializeFlush(boundary) {
1505
1509
  flushSerializer(boundary, this);
1506
1510
  }
1507
- getSerializedGlobals() {
1508
- let { $global } = this, serializedGlobals = $global.serializedGlobals;
1509
- if (!serializedGlobals) return 0;
1510
- let filtered = 0;
1511
- if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1512
- let value = $global[key];
1513
- value !== void 0 && ((filtered ||= {})[key] = value);
1514
- }
1515
- else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1516
- let value = $global[key];
1517
- value !== void 0 && ((filtered ||= {})[key] = value);
1518
- }
1519
- return filtered;
1520
- }
1521
1511
  runtimeScript() {
1522
1512
  return "(e=>(self[e]||=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(r=l.slice(s+1),(l=l[s])>\"#\"||(a[r]=e),l),r,e),l>\"#\"&&d.push(e);n.currentNode=document.currentScript}},self[e]))(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
1523
1513
  }
@@ -1820,7 +1810,7 @@ function flushSerializer(boundary, channel) {
1820
1810
  }
1821
1811
  if (!channel.readyId && !state.hasWrittenGlobals) {
1822
1812
  state.hasWrittenGlobals = !0;
1823
- let globals = state.getSerializedGlobals();
1813
+ let globals = getFilteredGlobals(state.$global);
1824
1814
  globals && flushes.push([
1825
1815
  0,
1826
1816
  globals,
@@ -1842,7 +1832,7 @@ function flushSerializerGlobals(boundary) {
1842
1832
  let { state } = boundary;
1843
1833
  if (state.hasWrittenGlobals) return;
1844
1834
  state.hasWrittenGlobals = !0;
1845
- let globals = state.getSerializedGlobals();
1835
+ let globals = getFilteredGlobals(state.$global);
1846
1836
  globals && (state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
1847
1837
  0,
1848
1838
  globals,
@@ -1857,6 +1847,19 @@ function readyBatch(state, channel, deps, resumes) {
1857
1847
  }
1858
1848
  return resumes && own[readyId]++, concatSequence(wait && wait + "}", resumes);
1859
1849
  }
1850
+ function getFilteredGlobals($global) {
1851
+ let serializedGlobals = $global.serializedGlobals, filtered = $global.cspNonce ? { cspNonce: $global.cspNonce } : 0;
1852
+ if (!serializedGlobals) return filtered;
1853
+ if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1854
+ let value = $global[key];
1855
+ value !== void 0 && ((filtered ||= {})[key] = value);
1856
+ }
1857
+ else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1858
+ let value = $global[key];
1859
+ value !== void 0 && ((filtered ||= {})[key] = value);
1860
+ }
1861
+ return filtered;
1862
+ }
1860
1863
  function concatEffects(a, b) {
1861
1864
  return a ? b ? a + " " + b : a : b;
1862
1865
  }
package/dist/html.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("./html-4A3vJpIT.js"), empty = [], rest = Symbol();
2
+ let require_control_flow = require("./html-aFBpTKdf.js"), empty = [], rest = Symbol();
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  // src/common/attr-tag.ts
5
5
  function attrTag(attrs) {
package/dist/html.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  let empty = [], rest = Symbol();
2
- import { $ as _subscribe, A as $global, At as _attrs_select_value, B as _hoist, Bt as _signal_read_error, C as _escape_comment, Ct as _attr_select_value, D as _to_text, Dt as _attrs_content, E as _escape_style_value, Et as _attrs, G as _resume, H as _html_mark, I as _attr_content, It as _assert_class_toggles, J as _scope_id, K as _resume_branch, L as _el, Lt as _assert_hoist, Mt as _style_html, Nt as _textarea_value, O as _unescaped, Ot as _attrs_partial, Q as _set_scope_reason, R as _el_mark, Rt as _el_read_error, S as _escape, St as _attr_or, T as _escape_style, Tt as _attr_textarea_value, U as _id, V as _html, W as _peek_scope_id, X as _scope_with_id, Y as _scope_reason, Z as _script, _t as _attr_input_checkedValue, a as _for_until, b as _content_resume, bt as _attr_nullish, c as _show_start, d as forOf, et as _text_mark, f as forTo, ft as _attr, g as withPageAssets, gt as _attr_input_checked, h as withLoadAssets, ht as _attr_details_or_dialog_open, i as _for_to, it as _write_if, jt as _attrs_textarea_value, kt as _attrs_partial_content, l as _try, m as _flush_head, mt as _attr_class, n as _for_in, nt as _var, o as _if, p as forUntil, pt as _attr_and, q as _resume_locals, r as _for_of, rt as _write_guard, s as _show_end, t as _await, tt as _trailers, u as forIn, ut as writeScope, v as _template, vt as _attr_input_value, w as _escape_script, wt as _attr_style, x as _dynamic_tag, xt as _attr_option_value, y as _content, yt as _attr_nonce, z as _existing_scope, zt as _hoist_read_error } from "./html-C3dQGQ2x.mjs";
2
+ import { $ as _subscribe, A as $global, At as _attrs_select_value, B as _hoist, Bt as _signal_read_error, C as _escape_comment, Ct as _attr_select_value, D as _to_text, Dt as _attrs_content, E as _escape_style_value, Et as _attrs, G as _resume, H as _html_mark, I as _attr_content, It as _assert_class_toggles, J as _scope_id, K as _resume_branch, L as _el, Lt as _assert_hoist, Mt as _style_html, Nt as _textarea_value, O as _unescaped, Ot as _attrs_partial, Q as _set_scope_reason, R as _el_mark, Rt as _el_read_error, S as _escape, St as _attr_or, T as _escape_style, Tt as _attr_textarea_value, U as _id, V as _html, W as _peek_scope_id, X as _scope_with_id, Y as _scope_reason, Z as _script, _t as _attr_input_checkedValue, a as _for_until, b as _content_resume, bt as _attr_nullish, c as _show_start, d as forOf, et as _text_mark, f as forTo, ft as _attr, g as withPageAssets, gt as _attr_input_checked, h as withLoadAssets, ht as _attr_details_or_dialog_open, i as _for_to, it as _write_if, jt as _attrs_textarea_value, kt as _attrs_partial_content, l as _try, m as _flush_head, mt as _attr_class, n as _for_in, nt as _var, o as _if, p as forUntil, pt as _attr_and, q as _resume_locals, r as _for_of, rt as _write_guard, s as _show_end, t as _await, tt as _trailers, u as forIn, ut as writeScope, v as _template, vt as _attr_input_value, w as _escape_script, wt as _attr_style, x as _dynamic_tag, xt as _attr_option_value, y as _content, yt as _attr_nonce, z as _existing_scope, zt as _hoist_read_error } from "./html-BD-y50wS.mjs";
3
3
  // src/common/attr-tag.ts
4
4
  function attrTag(attrs) {
5
5
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
@@ -1,3 +1,9 @@
1
1
  import { type Tag } from "@marko/compiler/babel-utils";
2
+ declare const kOnlyDirectReferences: unique symbol;
3
+ declare module "@marko/compiler/dist/types" {
4
+ interface MarkoTagExtra {
5
+ [kOnlyDirectReferences]?: true;
6
+ }
7
+ }
2
8
  declare const _default: Tag;
3
9
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { type Tag } from "@marko/compiler/babel-utils";
2
- import { type Binding } from "../util/bindings";
2
+ import type { Binding } from "../util/bindings";
3
3
  import { type Section } from "../util/sections";
4
4
  declare const kStartBinding: unique symbol;
5
5
  declare const kStaticDisplay: unique symbol;