marko 6.3.56 → 6.4.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 (81) hide show
  1. package/cheatsheet.md +2 -2
  2. package/dist/common/constants/accessor-prefix.d.ts +1 -0
  3. package/dist/common/constants/accessor-prefix.debug.d.ts +1 -0
  4. package/dist/common/constants/accessor-prop.d.ts +3 -0
  5. package/dist/common/constants/accessor-prop.debug.d.ts +3 -0
  6. package/dist/common/types.d.ts +8 -2
  7. package/dist/debug/dom/catch.feat.js +12 -14
  8. package/dist/debug/dom/catch.feat.mjs +12 -14
  9. package/dist/debug/dom/controllable-input.feat.js +1 -1
  10. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  11. package/dist/debug/dom/controllable-open.feat.js +1 -1
  12. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  13. package/dist/debug/dom/controllable-select.feat.js +1 -1
  14. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  15. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  16. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  17. package/dist/debug/dom/controllable.feat.js +1 -1
  18. package/dist/debug/dom/controllable.feat.mjs +1 -1
  19. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  20. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  21. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  22. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  23. package/dist/debug/dom/lazy.feat.js +4 -0
  24. package/dist/debug/dom/lazy.feat.mjs +4 -0
  25. package/dist/debug/dom/placeholder.feat.js +1 -1
  26. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  27. package/dist/debug/{dom-DcwejnYg.js → dom-BRO5aArp.js} +232 -178
  28. package/dist/debug/{dom-BeCNT5R5.mjs → dom-Btj2QJhk.mjs} +215 -167
  29. package/dist/debug/dom.js +14 -12
  30. package/dist/debug/dom.mjs +14 -12
  31. package/dist/debug/html.js +603 -517
  32. package/dist/debug/html.mjs +602 -518
  33. package/dist/dom/abort-signal.d.ts +2 -0
  34. package/dist/dom/catch.feat.js +6 -7
  35. package/dist/dom/catch.feat.mjs +5 -7
  36. package/dist/dom/control-flow.d.ts +3 -5
  37. package/dist/dom/controllable-input.feat.js +3 -2
  38. package/dist/dom/controllable-input.feat.mjs +1 -1
  39. package/dist/dom/controllable-open.feat.js +3 -2
  40. package/dist/dom/controllable-open.feat.mjs +1 -1
  41. package/dist/dom/controllable-select.feat.js +3 -2
  42. package/dist/dom/controllable-select.feat.mjs +1 -1
  43. package/dist/dom/controllable-textarea.feat.js +3 -2
  44. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  45. package/dist/dom/controllable.feat.js +3 -2
  46. package/dist/dom/controllable.feat.mjs +1 -1
  47. package/dist/dom/dynamic-tag-script.feat.js +3 -2
  48. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  49. package/dist/dom/dynamic-tag-var.feat.js +2 -1
  50. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  51. package/dist/dom/lazy.feat.d.ts +1 -0
  52. package/dist/dom/lazy.feat.js +4 -0
  53. package/dist/dom/lazy.feat.mjs +4 -0
  54. package/dist/dom/load.d.ts +3 -3
  55. package/dist/dom/placeholder.feat.js +4 -3
  56. package/dist/dom/placeholder.feat.mjs +1 -1
  57. package/dist/dom/queue.d.ts +2 -4
  58. package/dist/dom/resume.d.ts +1 -1
  59. package/dist/dom/scope.d.ts +0 -1
  60. package/dist/{dom-BwNsIevR.mjs → dom-B-v8Gw6T.mjs} +114 -87
  61. package/dist/{dom-QEF0csuC.js → dom-BSsI9OPC.js} +210 -182
  62. package/dist/dom.js +59 -56
  63. package/dist/dom.mjs +34 -32
  64. package/dist/html/attrs.d.ts +2 -0
  65. package/dist/html/writer.d.ts +5 -11
  66. package/dist/html.d.ts +1 -1
  67. package/dist/html.js +362 -317
  68. package/dist/html.mjs +361 -317
  69. package/dist/translator/index.js +791 -650
  70. package/dist/translator/util/binding-has-prop.d.ts +2 -0
  71. package/dist/translator/util/entry-builder.d.ts +2 -0
  72. package/dist/translator/util/generate-uid.d.ts +5 -0
  73. package/dist/translator/util/references.d.ts +3 -2
  74. package/dist/translator/util/runtime.d.ts +3 -3
  75. package/dist/translator/util/sections.d.ts +8 -2
  76. package/dist/translator/util/serialize-reasons.d.ts +2 -2
  77. package/dist/translator/util/setup-work.d.ts +5 -0
  78. package/dist/translator/util/signals.d.ts +5 -7
  79. package/dist/translator/visitors/tag/native-tag.d.ts +1 -0
  80. package/package.json +3 -3
  81. package/dist/translator/util/setup-statements.d.ts +0 -5
@@ -1,16 +1,19 @@
1
+ "use strict";
1
2
  let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", toDelimitedString = function toDelimitedString(val, delimiter, stringify) {
2
3
  let str = "", sep = "", part;
3
- if (val) if (typeof val != "object") str += val;
4
- else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
5
- else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
4
+ if (val) {
5
+ if (typeof val != "object") str += val;
6
+ else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
7
+ else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
8
+ }
6
9
  return str;
7
- }, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
10
+ }, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
8
11
  for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
9
12
  }), runRender = (render) => {
10
13
  (!branchesEnabled || render.b.F?.H !== 0) && render.c(render.b, render.d);
11
14
  }, catchEnabled, abortsEnabled, subscriptionsEnabled, delegate = (type, handler) => handler[1 + type] ||= (document.addEventListener(type, handler, !0), 1), parsers = {}, nextScopeId = 1e6, collectingScopes, destroyNestedScopes = function destroyNestedScopes(scope) {
12
15
  scope.H = 0, scope.D?.forEach(destroyNestedScopes), scope.B?.forEach(cleanupScope);
13
- }, isScheduled, channel, _return = (scope, value) => scope.T?.(value), _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkInternal = function walkInternal(currentWalkIndex, walkCodes, scope) {
16
+ }, isScheduled, channel, _return = (scope, value) => scope.T ? scope.T(value) : scope.RV = value, _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkInternal = function walkInternal(currentWalkIndex, walkCodes, scope) {
14
17
  let value, currentMultiplier, storedMultiplier = 0, currentScopeIndex = 0;
15
18
  for (; currentWalkIndex < walkCodes.length;) if (value = walkCodes.charCodeAt(currentWalkIndex++), currentMultiplier = storedMultiplier, storedMultiplier = 0, value === 32) scope[decodeAccessor(currentScopeIndex++)] = currentNode;
16
19
  else if (value === 37 || value === 49) currentNode.replaceWith(currentNode = scope[decodeAccessor(currentScopeIndex++)] = new Text()), value === 49 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
@@ -67,13 +70,15 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
67
70
  if (normalizedRenderer) {
68
71
  let childScope = scope[childScopeAccessor], args = getInput?.();
69
72
  if (typeof normalizedRenderer == "string") (getContent ? _attrs : _attrs_content)(childScope, "a", (inputIsArgs ? args[0] : args) || {}, controllableRenders[childScope.a.tagName]), (childScope.Ia || childScope.Ea) && queueEffect(childScope, dynamicTagScript);
70
- else if (normalizedRenderer.g?.(childScope), normalizedRenderer.d) if (inputIsArgs) normalizedRenderer.d(childScope, normalizedRenderer._ ? args[0] : args);
71
- else {
72
- let inputWithContent = getContent ? {
73
- ...args,
74
- content: getContent(scope)
75
- } : args || {};
76
- normalizedRenderer.d(childScope, normalizedRenderer._ ? inputWithContent : [inputWithContent]);
73
+ else if (normalizedRenderer.g?.(childScope), normalizedRenderer.d) {
74
+ if (inputIsArgs) normalizedRenderer.d(childScope, normalizedRenderer._ ? args[0] : args);
75
+ else {
76
+ let inputWithContent = getContent ? {
77
+ ...args,
78
+ content: getContent(scope)
79
+ } : args || {};
80
+ normalizedRenderer.d(childScope, normalizedRenderer._ ? inputWithContent : [inputWithContent]);
81
+ }
77
82
  }
78
83
  }
79
84
  };
@@ -232,8 +237,8 @@ function prepareEffects(fn) {
232
237
  }
233
238
  return preparedEffects;
234
239
  }
235
- function installCatch(wrapEffects, wrapRender) {
236
- catchEnabled = 1, withBranches(), runEffects = wrapEffects(runEffects), runRender = wrapRender(runRender);
240
+ function installCatch(catchEffects, wrapRender) {
241
+ catchEnabled = 1, withBranches(), runEffects = catchEffects, runRender = wrapRender(runRender);
237
242
  }
238
243
  function runRenders() {
239
244
  for (; pendingRenders.length;) {
@@ -259,6 +264,10 @@ function $signalReset(scope, id) {
259
264
  function $signal(scope, id) {
260
265
  return abortsEnabled = 1, trackCleanup(scope), ((scope.A ||= {})[id] ||= new AbortController()).signal;
261
266
  }
267
+ /** Runs `abort` as a destroyed scope's `$signal` would fire, without creating one. */
268
+ function trackAbort(scope, id, abort) {
269
+ abortsEnabled = 1, trackCleanup(scope), (scope.A ||= {})[id] = { abort };
270
+ }
262
271
  /** Enrols `scope` with its branch so destroying the branch cleans it up. */
263
272
  function trackCleanup(scope, subscribers) {
264
273
  let branch = scope.F;
@@ -273,8 +282,10 @@ function toArray(opt) {
273
282
  return opt ? Array.isArray(opt) ? opt : [opt] : [];
274
283
  }
275
284
  function forEach(opt, cb) {
276
- if (opt) if (Array.isArray(opt)) for (let item of opt) cb(item);
277
- else cb(opt);
285
+ if (opt) {
286
+ if (Array.isArray(opt)) for (let item of opt) cb(item);
287
+ else cb(opt);
288
+ }
278
289
  }
279
290
  function push(opt, item) {
280
291
  return opt ? Array.isArray(opt) ? (opt.push(item), opt) : [opt, item] : item;
@@ -323,11 +334,6 @@ function collectScopes(fn) {
323
334
  function skipScope() {
324
335
  return nextScopeId++;
325
336
  }
326
- function findBranchWithKey(scope, key) {
327
- let branch = scope.F;
328
- for (; branch && branch[key] == null;) branch = branch.N;
329
- return branch;
330
- }
331
337
  function destroyBranch(branch) {
332
338
  branch.N?.D?.delete(branch), destroyNestedScopes(branch);
333
339
  }
@@ -449,7 +455,7 @@ function _closure_get(valueAccessor, fn, getOwnerScope, resumeId) {
449
455
  valueAccessor = decodeAccessor(valueAccessor);
450
456
  let closureSignal = ((scope, resumed) => {
451
457
  let ownerScope = getOwnerScope ? getOwnerScope(scope) : scope._;
452
- scope[closureSignal.b] = closureSignal.c, (!resumed || ownerScope[closureSignal.a]._) && fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
458
+ scope[closureSignal.b] = closureSignal.c, resumed ? ownerScope[closureSignal.a]._ && queueAsyncRender(scope, closureSignal) : fn(scope), subscribeToScopeSet(ownerScope, closureSignal.a, scope);
453
459
  });
454
460
  return closureSignal.a = valueAccessor, closureSignal.b = "C" + valueAccessor, resumeId && (_resumed[resumeId] = (scope) => closureSignal(scope, 1)), closureSignal;
455
461
  }
@@ -459,7 +465,8 @@ function _child_setup(setup) {
459
465
  }, setup;
460
466
  }
461
467
  function _var(scope, childAccessor, signal) {
462
- scope[decodeAccessor(childAccessor)].T = (value) => signal(scope, value);
468
+ let childScope = scope[decodeAccessor(childAccessor)];
469
+ childScope.T = (value) => signal(scope, value), "RV" in childScope && signal(scope, childScope.RV);
463
470
  }
464
471
  function _return_change(scope, changeHandler) {
465
472
  scope.U = changeHandler || void 0;
@@ -478,16 +485,18 @@ function _script(id, fn) {
478
485
  };
479
486
  }
480
487
  function _global_read($global, key) {
481
- return key in $global || console.error(`\`$global.${key}\` is not serialized to the client, so this read is \`undefined\`. Add \`${key}\` to \`serializedGlobals\` at the render call.`), $global[key];
488
+ return $global[key];
482
489
  }
483
490
  function _el_read(value) {
484
491
  return value;
485
492
  }
486
493
  function* traverse(scope, path, args, i = path.length - 1) {
487
- if (scope) if (Symbol.iterator in scope) for (let childScope of scope.values()) childScope.H !== 0 && (yield* traverse(childScope, path, args, i));
488
- else {
489
- let item = scope[path[i]];
490
- i ? yield* traverse(item, path, args, i - 1) : yield typeof item == "function" ? item(...args) : item;
494
+ if (scope) {
495
+ if (Symbol.iterator in scope) for (let childScope of scope.values()) childScope.H !== 0 && (yield* traverse(childScope, path, args, i));
496
+ else {
497
+ let item = scope[path[i]];
498
+ i ? yield* traverse(item, path, args, i - 1) : yield typeof item == "function" ? item(...args) : item;
499
+ }
491
500
  }
492
501
  }
493
502
  function _hoist(...path) {
@@ -512,8 +521,8 @@ function ready(readyId) {
512
521
  for (let renderId in curRenders) runResumeEffects(curRenders[renderId]);
513
522
  }
514
523
  function readyFailed(readyId) {}
515
- function withLazy(runtime) {
516
- return lazyEnabled = 1, runtime;
524
+ function withLazy() {
525
+ lazyEnabled = 1;
517
526
  }
518
527
  function initEmbedded(readyId, runtimeId) {
519
528
  embedRenders || (embedRenders = /* @__PURE__ */ new Map(), new MutationObserver(() => {
@@ -547,7 +556,7 @@ function init(runtimeId = "M") {
547
556
  }
548
557
  for (visitType !== "[" && (visitScope[nextToken()] = visitType === ")" || visitType === "}" ? parent : visit, accessor = "A" + (nodeAccessor = lastToken), singleNode = visitType !== "]" && visitType !== ")", nextToken()); branchId = +lastToken;) {
549
558
  if ((endedBranches ||= []).push(branch = getScope(branchId)), setParentBranch(branch, branch.F), (branch.O = render.p?.[branchId]) && (branch.O.m = render.m), singleNode) {
550
- for (; startVisit.previousSibling && ~visits.indexOf(startVisit = startVisit.previousSibling););
559
+ for (; startVisit.previousSibling && (startVisit = startVisit.previousSibling).nodeType > 1;);
551
560
  branch._ ??= visitScope, branch.K = branch.S = startVisit, visitType === "(" && (branch.a = startVisit);
552
561
  } else branch.C = nodeAccessor, curBranchScopes = push(curBranchScopes, branch), accessor && (visitScope[accessor] = curBranchScopes, forEach(curBranchScopes, (scope) => scope._ ??= visitScope), curBranchScopes = branchScopesStack.pop()), startVisit = branchStarts.pop(), parent !== startVisit.parentNode && parent.prepend(startVisit), branch.S = startVisit, branch.K = visit.previousSibling === startVisit ? startVisit : parent.insertBefore(new Text(), visit);
553
562
  for (; pending.at(-1)?.L >= branchId;) adopt(pending.pop(), branch);
@@ -599,7 +608,7 @@ function init(runtimeId = "M") {
599
608
  }
600
609
  function runResumeEffects(render) {
601
610
  try {
602
- isResuming = 1, runEffects(render.m([]), 1);
611
+ isResuming = 1, runEffects(render.m([]));
603
612
  } finally {
604
613
  isResuming = 0;
605
614
  }
@@ -771,9 +780,7 @@ function attrsInternal(scope, nodeAccessor, nextAttrs, controllable) {
771
780
  case "style":
772
781
  _attr_style(el, value);
773
782
  break;
774
- default:
775
- isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[getEventHandlerName(name)] = value : skip?.test(name) || name === "content" && el.tagName !== "META" || _attr(el, name, value);
776
- break;
783
+ default: isEventHandler(name) ? (events ||= scope["I" + nodeAccessor] = {})[getEventHandlerName(name)] = value : skip?.test(name) || name === "content" && el.tagName !== "META" || _attr(el, name, value);
777
784
  }
778
785
  }
779
786
  }
@@ -795,7 +802,7 @@ function normalizeAttrValue(value) {
795
802
  }
796
803
  function _lifecycle(scope, thisObj, index = 0) {
797
804
  let accessor = "K" + index, instance = scope[accessor];
798
- instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()), $signal(scope, accessor).onabort = () => thisObj.onDestroy?.());
805
+ instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()), trackAbort(scope, accessor, () => thisObj.onDestroy?.()));
799
806
  }
800
807
  function removeChildNodes(startNode, endNode) {
801
808
  let stop = endNode.nextSibling;
@@ -932,14 +939,16 @@ function _attr_select_value_script(scope, nodeAccessor) {
932
939
  setSelectValue(el, oldValue, multiple), valueChange(newValue), run();
933
940
  }
934
941
  };
935
- if (isResuming) if (el.multiple) {
936
- scope["G" + nodeAccessor] = [];
937
- for (let opt of el.options) opt.defaultSelected && scope["G" + nodeAccessor].push(opt.value);
938
- } else {
939
- scope["G" + nodeAccessor] = "";
940
- for (let opt of el.options) if (opt.defaultSelected) {
941
- scope["G" + nodeAccessor] = opt.value;
942
- break;
942
+ if (isResuming) {
943
+ if (el.multiple) {
944
+ scope["G" + nodeAccessor] = [];
945
+ for (let opt of el.options) opt.defaultSelected && scope["G" + nodeAccessor].push(opt.value);
946
+ } else {
947
+ scope["G" + nodeAccessor] = "";
948
+ for (let opt of el.options) if (opt.defaultSelected) {
949
+ scope["G" + nodeAccessor] = opt.value;
950
+ break;
951
+ }
943
952
  }
944
953
  }
945
954
  syncControllableFormInput(el, hasSelectChanged, onChange), observeOnce(scope, nodeAccessor, {
@@ -1025,23 +1034,25 @@ function _controllable_open(scope, nodeAccessor, nextAttrs) {
1025
1034
  //#region src/dom/control-flow.ts
1026
1035
  function _await_promise(nodeAccessor, params) {
1027
1036
  nodeAccessor = decodeAccessor(nodeAccessor);
1028
- let promiseAccessor = "L" + nodeAccessor, branchAccessor = "A" + nodeAccessor, resolveAwait = (scope, referenceNode, value) => {
1037
+ let promiseAccessor = "L" + nodeAccessor, branchAccessor = "A" + nodeAccessor, tryAccessor = "Q" + nodeAccessor, resolveAwait = (scope, referenceNode, value) => {
1029
1038
  let awaitBranch = scope[branchAccessor];
1030
1039
  return awaitBranch.V && (awaitBranch.Y = awaitBranch.Y?.forEach(syncGen), setupBranch(awaitBranch.V, awaitBranch), awaitBranch.V = 0, insertBranchBefore(awaitBranch, scope[nodeAccessor].parentNode, scope[nodeAccessor]), referenceNode.remove()), params?.(awaitBranch, [value]), awaitBranch;
1031
1040
  }, awaitPromise = (scope, promise) => {
1032
1041
  isPromise(scope[promiseAccessor]) || (scope[promiseAccessor] = 0);
1033
- let awaitBranch = scope[branchAccessor], tryPlaceholder = (isPromise(promise) || scope[promiseAccessor]) && findBranchWithKey(scope, "Q"), tryBranch = tryPlaceholder || awaitBranch;
1042
+ let awaitBranch = scope[branchAccessor], tryBranch = scope[tryAccessor] || isPromise(promise) && findTryWithPlaceholder(scope) || awaitBranch;
1034
1043
  if (!tryBranch) {
1035
- let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findBranchWithKey(scope, "Q")?.O;
1044
+ let deferred = scope[promiseAccessor] = () => deferred === scope[promiseAccessor] && awaitPromise(scope, promise), awaitCounter = findTryWithPlaceholder(scope)?.O;
1036
1045
  if (awaitCounter?.i) {
1037
1046
  let complete = awaitCounter.c;
1038
1047
  awaitCounter.c = () => complete() || queueAsyncRender(scope, deferred);
1039
1048
  }
1040
1049
  return;
1041
1050
  }
1042
- if (!isPromise(promise)) return scope[promiseAccessor] ? awaitPromise(scope, Promise.resolve(promise)) : resolveAwait(scope, scope[nodeAccessor], promise);
1051
+ if (!isPromise(promise)) return scope[tryAccessor] ? awaitPromise(scope, Promise.resolve(promise)) : resolveAwait(scope, scope[nodeAccessor], promise);
1043
1052
  let awaitCounter = tryBranch.O;
1044
- placeholderShown.add(pendingEffects), !tryPlaceholder && !awaitCounter?.i && (awaitCounter = createAwaitCounter(tryBranch, () => {
1053
+ scope[tryAccessor] || (scope[tryAccessor] = tryBranch, trackAbort(scope, promiseAccessor, () => {
1054
+ scope[promiseAccessor] = 0, scope[tryAccessor] && queueAsyncRender(scope[tryAccessor], completeAwaitCounter, awaitCounter);
1055
+ }), awaitBranch && (awaitBranch.W ||= []), tryBranch === awaitBranch ? (awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => {
1045
1056
  if (tryBranch === scope[branchAccessor]) {
1046
1057
  let anchor = scope[nodeAccessor];
1047
1058
  if (anchor.parentNode) {
@@ -1049,34 +1060,22 @@ function _await_promise(nodeAccessor, params) {
1049
1060
  detachedParent === anchor.parentNode ? anchor.remove() : anchor.replaceWith(detachedParent);
1050
1061
  }
1051
1062
  }
1052
- })), scope[promiseAccessor] || (awaitBranch && (awaitBranch.W ||= []), tryPlaceholder ? awaitCounter = addAwaitCounter(scope, tryPlaceholder) : scheduleAwaitFrame(awaitCounter, scope, () => {
1063
+ })), scheduleAwaitFrame(awaitCounter, scope, () => {
1053
1064
  awaitBranch.V || (awaitBranch.S.parentNode.insertBefore(scope[nodeAccessor], awaitBranch.S), tempDetachBranch(tryBranch));
1054
- }));
1065
+ })) : awaitCounter = addAwaitCounter(scope, tryBranch));
1055
1066
  let thisPromise = scope[promiseAccessor] = promise.then((data) => {
1056
1067
  if (thisPromise === scope[promiseAccessor]) {
1057
1068
  let referenceNode = scope[nodeAccessor];
1058
- if (scope[promiseAccessor] = 0, !scope[branchAccessor] || scope.F?.H === 0) {
1059
- scope[branchAccessor] || awaitPromise(scope, data), awaitCounter.c(), run();
1060
- return;
1061
- }
1062
- queueAsyncRender(scope, () => {
1063
- awaitBranch = resolveAwait(scope, referenceNode, data);
1064
- let pendingRenders = awaitBranch.W;
1065
- if (awaitBranch.W = 0, pendingRenders?.forEach(queuePendingRender), placeholderShown.add(pendingEffects), awaitCounter.c(), awaitCounter.m) {
1066
- let fnScopes = /* @__PURE__ */ new Map(), effects = awaitCounter.m([]);
1067
- for (let i = 0; i < pendingEffects.length;) {
1068
- let fn = pendingEffects[i++], scopes = fnScopes.get(fn);
1069
- scopes || fnScopes.set(fn, scopes = /* @__PURE__ */ new Set()), scopes.add(pendingEffects[i++]);
1070
- }
1071
- for (let i = 0; i < effects.length;) {
1072
- let fn = effects[i++], scope = effects[i++];
1073
- fnScopes.get(fn)?.has(scope) || queueEffect(scope, fn);
1074
- }
1069
+ scope[promiseAccessor] = 0, scope[branchAccessor] ? queueAsyncRender(scope, () => {
1070
+ if (!scope[promiseAccessor]) {
1071
+ awaitBranch = resolveAwait(scope, referenceNode, data);
1072
+ let pendingRenders = awaitBranch.W;
1073
+ awaitBranch.W = 0, pendingRenders?.forEach(queuePendingRender), scope[tryAccessor] = 0, queueCompleteAwaitCounter(tryBranch, awaitCounter);
1075
1074
  }
1076
- });
1075
+ }) : (scope[tryAccessor] = 0, awaitPromise(scope, data), awaitCounter.c(), run());
1077
1076
  }
1078
1077
  }, (error) => {
1079
- thisPromise === scope[promiseAccessor] && (scope[promiseAccessor] = 0, tryPlaceholder && !awaitCounter.m ? awaitCounter.c() : awaitCounter.i = 0, queueAsyncRender(scope, renderCatch, error));
1078
+ thisPromise === scope[promiseAccessor] && (scope[promiseAccessor] = scope[tryAccessor] = 0, queueAsyncRender(scope, renderCatch, error), tryBranch !== awaitBranch && !awaitCounter.m ? findTryWithCatch(scope) ? queueCompleteAwaitCounter(tryBranch, awaitCounter) : awaitCounter.c() : awaitCounter.i = 0);
1080
1079
  });
1081
1080
  };
1082
1081
  return awaitPromise;
@@ -1089,16 +1088,32 @@ function _await_content(nodeAccessor, template, walks, setup) {
1089
1088
  scope[branchAccessor].Y = pendingScopes, typeof scope[promiseAccessor] == "function" && scope[promiseAccessor]();
1090
1089
  };
1091
1090
  }
1092
- function addAwaitCounter(scope, tryBranch = findBranchWithKey(scope, "Q")) {
1091
+ function addAwaitCounter(scope, tryBranch = findTryWithPlaceholder(scope)) {
1093
1092
  if (!tryBranch) return;
1094
1093
  let awaitCounter = tryBranch.O;
1095
- return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))), placeholderShown.add(pendingEffects), scheduleAwaitFrame(awaitCounter, tryBranch, () => {
1096
- insertBranchBefore(tryBranch.P = createAndSetupBranch(tryBranch.$, tryBranch.Q, tryBranch._, tryBranch.S.parentNode), tryBranch.S.parentNode, tryBranch.S), tempDetachBranch(tryBranch);
1094
+ return awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, () => dismissPlaceholder(tryBranch))), scheduleAwaitFrame(awaitCounter, tryBranch, () => {
1095
+ (tryBranch.P = createAndSetupBranch(tryBranch.$, tryBranch.Q(), tryBranch._, tryBranch.S.parentNode)).PT = tryBranch, insertBranchBefore(tryBranch.P, tryBranch.S.parentNode, tryBranch.S), tempDetachBranch(tryBranch);
1097
1096
  }), awaitCounter;
1098
1097
  }
1099
1098
  function scheduleAwaitFrame(awaitCounter, scope, render) {
1100
1099
  awaitCounter.i++ || requestAnimationFrame(() => awaitCounter.i && runEffects(prepareEffects(() => queueRender(scope, render, -1))));
1101
1100
  }
1101
+ function queueCompleteAwaitCounter(tryBranch, awaitCounter) {
1102
+ queueRender(tryBranch, completeAwaitCounter, -1, awaitCounter, tryBranch.L + 1e9);
1103
+ }
1104
+ function completeAwaitCounter(_scope, awaitCounter) {
1105
+ if (awaitCounter.c(), awaitCounter.m) {
1106
+ let fnScopes = /* @__PURE__ */ new Map(), effects = awaitCounter.m([]);
1107
+ for (let i = 0; i < pendingEffects.length;) {
1108
+ let fn = pendingEffects[i++], scopes = fnScopes.get(fn);
1109
+ scopes || fnScopes.set(fn, scopes = /* @__PURE__ */ new Set()), scopes.add(pendingEffects[i++]);
1110
+ }
1111
+ for (let i = 0; i < effects.length;) {
1112
+ let fn = effects[i++], scope = effects[i++];
1113
+ fnScopes.get(fn)?.has(scope) || queueEffect(scope, fn);
1114
+ }
1115
+ }
1116
+ }
1102
1117
  function createAwaitCounter(tryBranch, done) {
1103
1118
  let awaitCounter = tryBranch.O = {
1104
1119
  i: 0,
@@ -1109,30 +1124,41 @@ function createAwaitCounter(tryBranch, done) {
1109
1124
  };
1110
1125
  return awaitCounter;
1111
1126
  }
1112
- function runPendingEffects(scope) {
1113
- let effects = scope.J;
1114
- effects && (scope.J = [], runEffects(effects, 1));
1127
+ function runPendingEffects(tryBranch) {
1128
+ tryBranch.JS?.forEach((scope) => scope.J.forEach((fn) => runEffects([fn, scope]), scope.J = null), tryBranch.JS = null);
1115
1129
  }
1116
1130
  function dismissPlaceholder(tryBranch) {
1117
1131
  let placeholderBranch = tryBranch.P;
1118
1132
  placeholderBranch && (tryBranch.P = 0, placeholderBranch.S.parentNode.insertBefore(tryBranch.S.parentNode, placeholderBranch.S), removeAndDestroyBranch(placeholderBranch));
1119
1133
  }
1120
- function _try(nodeAccessor, template, walks, setup) {
1134
+ function _try(nodeAccessor, template, walks, setup, placeholderContent, catchContent) {
1121
1135
  nodeAccessor = decodeAccessor(nodeAccessor);
1122
1136
  let branchAccessor = "A" + nodeAccessor, renderer = _content("", template, walks, setup)();
1123
- return (scope, input) => {
1124
- scope[branchAccessor] || setConditionalRenderer(scope, nodeAccessor, renderer, createAndSetupBranch);
1137
+ return (scope) => {
1138
+ setConditionalRenderer(scope, nodeAccessor, renderer, createAndSetupBranch);
1125
1139
  let branch = scope[branchAccessor];
1126
- branch && (branch.C = nodeAccessor, branch.E = input.catch && (normalizeDynamicRenderer(input.catch) || 0), branch.Q = normalizeDynamicRenderer(input.placeholder));
1140
+ branch.C = nodeAccessor, branch.E = catchContent, branch.Q = placeholderContent || void 0;
1127
1141
  };
1128
1142
  }
1129
1143
  function renderCatch(scope, error) {
1130
- let tryWithCatch = findBranchWithKey(scope, "E");
1144
+ let tryWithCatch = findTryWithCatch(scope);
1131
1145
  if (tryWithCatch) {
1132
1146
  let owner = tryWithCatch._, placeholderBranch = tryWithCatch.P;
1133
- placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch)), caughtError.add(pendingEffects), setConditionalRenderer(owner, tryWithCatch.C, tryWithCatch.E, createAndSetupBranch), tryWithCatch.E?.d?.(owner["A" + tryWithCatch.C], [error]);
1147
+ placeholderBranch && (tryWithCatch.O && (tryWithCatch.O.i = 0), owner["A" + tryWithCatch.C] = placeholderBranch, destroyBranch(tryWithCatch));
1148
+ let catchContent = tryWithCatch.E();
1149
+ setConditionalRenderer(owner, tryWithCatch.C, catchContent, createAndSetupBranch), catchContent.d?.(owner["A" + tryWithCatch.C], [error]);
1134
1150
  } else throw error;
1135
1151
  }
1152
+ function findTryWithPlaceholder(scope) {
1153
+ let branch = scope.F;
1154
+ for (; branch && !branch.Q;) branch = branch.N;
1155
+ return branch;
1156
+ }
1157
+ function findTryWithCatch(scope) {
1158
+ let branch = scope.F;
1159
+ for (; branch && !branch.E;) branch = branch.PT || branch.N;
1160
+ return branch;
1161
+ }
1136
1162
  function rendererKey(renderer) {
1137
1163
  return renderer?.e ? renderer.a + " " + renderer.e.L : renderer?.a || renderer;
1138
1164
  }
@@ -1152,10 +1178,12 @@ function setConditionalRenderer(scope, nodeAccessor, newRenderer, createBranch)
1152
1178
  function reorderKeyed(newScopes, start, newEnd, parentNode, afterReference) {
1153
1179
  let diffLen = newEnd - start + 1, sources = Array(diffLen), pred = Array(diffLen), tails = [], tail = -1, lo, hi, mid;
1154
1180
  for (let i = diffLen; i--;) sources[i] = newScopes[start + i].I ?? -1;
1155
- for (let i = 0; i < diffLen; i++) if (~sources[i]) if (tail < 0 || sources[tails[tail]] < sources[i]) ~tail && (pred[i] = tails[tail]), tails[++tail] = i;
1156
- else {
1157
- for (lo = 0, hi = tail; lo < hi;) mid = (lo + hi) / 2 | 0, sources[tails[mid]] < sources[i] ? lo = mid + 1 : hi = mid;
1158
- sources[i] < sources[tails[lo]] && (lo > 0 && (pred[i] = tails[lo - 1]), tails[lo] = i);
1181
+ for (let i = 0; i < diffLen; i++) if (~sources[i]) {
1182
+ if (tail < 0 || sources[tails[tail]] < sources[i]) ~tail && (pred[i] = tails[tail]), tails[++tail] = i;
1183
+ else {
1184
+ for (lo = 0, hi = tail; lo < hi;) mid = (lo + hi) / 2 | 0, sources[tails[mid]] < sources[i] ? lo = mid + 1 : hi = mid;
1185
+ sources[i] < sources[tails[lo]] && (lo > 0 && (pred[i] = tails[lo - 1]), tails[lo] = i);
1186
+ }
1159
1187
  }
1160
1188
  for (hi = tails[tail], lo = tail + 1; lo-- > 0;) tails[lo] = hi, hi = pred[hi];
1161
1189
  for (let i = diffLen; i--;) ~tail && i === tails[tail] ? tail-- : insertBranchBefore(newScopes[start + i], parentNode, afterReference), afterReference = newScopes[start + i].S;
@@ -1173,272 +1201,272 @@ function byFirstArg(name) {
1173
1201
  Object.defineProperty(exports, "$", {
1174
1202
  enumerable: !0,
1175
1203
  get: function() {
1176
- return _attrs_content;
1204
+ return _attrs;
1177
1205
  }
1178
1206
  }), Object.defineProperty(exports, "$t", {
1179
1207
  enumerable: !0,
1180
1208
  get: function() {
1181
- return _on;
1209
+ return syncGen;
1182
1210
  }
1183
1211
  }), Object.defineProperty(exports, "A", {
1184
1212
  enumerable: !0,
1185
1213
  get: function() {
1186
- return _attr_input_value_attribute_default;
1214
+ return _attr_input_value;
1187
1215
  }
1188
1216
  }), Object.defineProperty(exports, "At", {
1189
1217
  enumerable: !0,
1190
1218
  get: function() {
1191
- return _closure_get;
1219
+ return _closure;
1192
1220
  }
1193
1221
  }), Object.defineProperty(exports, "B", {
1194
1222
  enumerable: !0,
1195
1223
  get: function() {
1196
- return _controllable_textarea;
1224
+ return _controllable_select;
1197
1225
  }
1198
1226
  }), Object.defineProperty(exports, "Bt", {
1199
1227
  enumerable: !0,
1200
1228
  get: function() {
1201
- return _let;
1229
+ return _if_closure;
1202
1230
  }
1203
1231
  }), Object.defineProperty(exports, "C", {
1204
1232
  enumerable: !0,
1205
1233
  get: function() {
1206
- return _attr_input_checked;
1234
+ return _attr_details_or_dialog_open_script;
1207
1235
  }
1208
1236
  }), Object.defineProperty(exports, "Ct", {
1209
1237
  enumerable: !0,
1210
1238
  get: function() {
1211
- return init;
1239
+ return getRegisteredWithScope;
1212
1240
  }
1213
1241
  }), Object.defineProperty(exports, "D", {
1214
1242
  enumerable: !0,
1215
1243
  get: function() {
1216
- return _attr_input_checked_default;
1244
+ return _attr_input_checkedValue_script;
1217
1245
  }
1218
1246
  }), Object.defineProperty(exports, "Dt", {
1219
1247
  enumerable: !0,
1220
1248
  get: function() {
1221
- return withLazy;
1249
+ return readyFailed;
1222
1250
  }
1223
1251
  }), Object.defineProperty(exports, "E", {
1224
1252
  enumerable: !0,
1225
1253
  get: function() {
1226
- return _attr_input_checkedValue_script;
1254
+ return _attr_input_checkedValue_default;
1227
1255
  }
1228
1256
  }), Object.defineProperty(exports, "Et", {
1229
1257
  enumerable: !0,
1230
1258
  get: function() {
1231
- return readyFailed;
1259
+ return ready;
1232
1260
  }
1233
1261
  }), Object.defineProperty(exports, "F", {
1234
1262
  enumerable: !0,
1235
1263
  get: function() {
1236
- return _attr_select_value_default;
1264
+ return _attr_select_value;
1237
1265
  }
1238
1266
  }), Object.defineProperty(exports, "Ft", {
1239
1267
  enumerable: !0,
1240
1268
  get: function() {
1241
- return _global_read;
1269
+ return _for_selector;
1242
1270
  }
1243
1271
  }), Object.defineProperty(exports, "G", {
1244
1272
  enumerable: !0,
1245
1273
  get: function() {
1246
- return _attr_class_item;
1274
+ return _attr_class;
1247
1275
  }
1248
1276
  }), Object.defineProperty(exports, "Gt", {
1249
1277
  enumerable: !0,
1250
1278
  get: function() {
1251
- return _script;
1279
+ return _return_change;
1252
1280
  }
1253
1281
  }), Object.defineProperty(exports, "H", {
1254
1282
  enumerable: !0,
1255
1283
  get: function() {
1256
- return controllableScripts;
1284
+ return controllableRenders;
1257
1285
  }
1258
1286
  }), Object.defineProperty(exports, "Ht", {
1259
1287
  enumerable: !0,
1260
1288
  get: function() {
1261
- return _or;
1289
+ return _let_change;
1262
1290
  }
1263
1291
  }), Object.defineProperty(exports, "I", {
1264
1292
  enumerable: !0,
1265
1293
  get: function() {
1266
- return _attr_select_value_script;
1294
+ return _attr_select_value_default;
1267
1295
  }
1268
1296
  }), Object.defineProperty(exports, "It", {
1269
1297
  enumerable: !0,
1270
1298
  get: function() {
1271
- return _hoist;
1299
+ return _global_read;
1272
1300
  }
1273
1301
  }), Object.defineProperty(exports, "J", {
1274
1302
  enumerable: !0,
1275
1303
  get: function() {
1276
- return _attr_nonce;
1304
+ return _attr_content;
1277
1305
  }
1278
1306
  }), Object.defineProperty(exports, "Jt", {
1279
1307
  enumerable: !0,
1280
1308
  get: function() {
1281
- return _assert_init;
1309
+ return _var_change;
1282
1310
  }
1283
1311
  }), Object.defineProperty(exports, "K", {
1284
1312
  enumerable: !0,
1285
1313
  get: function() {
1286
- return _attr_class_items;
1314
+ return _attr_class_item;
1287
1315
  }
1288
1316
  }), Object.defineProperty(exports, "Kt", {
1289
1317
  enumerable: !0,
1290
1318
  get: function() {
1291
- return _var;
1319
+ return _script;
1292
1320
  }
1293
1321
  }), Object.defineProperty(exports, "L", {
1294
1322
  enumerable: !0,
1295
1323
  get: function() {
1296
- return _controllable_input;
1324
+ return _attr_select_value_script;
1297
1325
  }
1298
1326
  }), Object.defineProperty(exports, "Lt", {
1299
1327
  enumerable: !0,
1300
1328
  get: function() {
1301
- return _hoist_resume;
1329
+ return _hoist;
1302
1330
  }
1303
1331
  }), Object.defineProperty(exports, "M", {
1304
1332
  enumerable: !0,
1305
1333
  get: function() {
1306
- return _attr_input_value_dynamic_default;
1334
+ return _attr_input_value_default;
1307
1335
  }
1308
1336
  }), Object.defineProperty(exports, "Mt", {
1309
1337
  enumerable: !0,
1310
1338
  get: function() {
1311
- return _el_read;
1339
+ return _const;
1312
1340
  }
1313
1341
  }), Object.defineProperty(exports, "N", {
1314
1342
  enumerable: !0,
1315
1343
  get: function() {
1316
- return _attr_input_value_script;
1344
+ return _attr_input_value_dynamic_default;
1317
1345
  }
1318
1346
  }), Object.defineProperty(exports, "Nt", {
1319
1347
  enumerable: !0,
1320
1348
  get: function() {
1321
- return _for_closure;
1349
+ return _el_read;
1322
1350
  }
1323
1351
  }), Object.defineProperty(exports, "O", {
1324
1352
  enumerable: !0,
1325
1353
  get: function() {
1326
- return _attr_input_checked_script;
1354
+ return _attr_input_checked_default;
1327
1355
  }
1328
1356
  }), Object.defineProperty(exports, "Ot", {
1329
1357
  enumerable: !0,
1330
1358
  get: function() {
1331
- return _child_setup;
1359
+ return withLazy;
1332
1360
  }
1333
1361
  }), Object.defineProperty(exports, "P", {
1334
1362
  enumerable: !0,
1335
1363
  get: function() {
1336
- return _attr_select_value;
1364
+ return _attr_input_value_script;
1337
1365
  }
1338
1366
  }), Object.defineProperty(exports, "Pt", {
1339
1367
  enumerable: !0,
1340
1368
  get: function() {
1341
- return _for_selector;
1369
+ return _for_closure;
1342
1370
  }
1343
1371
  }), Object.defineProperty(exports, "Q", {
1344
1372
  enumerable: !0,
1345
1373
  get: function() {
1346
- return _attrs;
1374
+ return _attr_style_items;
1347
1375
  }
1348
1376
  }), Object.defineProperty(exports, "Qt", {
1349
1377
  enumerable: !0,
1350
1378
  get: function() {
1351
- return syncGen;
1379
+ return removeAndDestroyBranch;
1352
1380
  }
1353
1381
  }), Object.defineProperty(exports, "R", {
1354
1382
  enumerable: !0,
1355
1383
  get: function() {
1356
- return _controllable_open;
1384
+ return _controllable_input;
1357
1385
  }
1358
1386
  }), Object.defineProperty(exports, "Rt", {
1359
1387
  enumerable: !0,
1360
1388
  get: function() {
1361
- return _id;
1389
+ return _hoist_resume;
1362
1390
  }
1363
1391
  }), Object.defineProperty(exports, "S", {
1364
1392
  enumerable: !0,
1365
1393
  get: function() {
1366
- return _attr_details_or_dialog_open_script;
1394
+ return _attr_details_or_dialog_open_default;
1367
1395
  }
1368
1396
  }), Object.defineProperty(exports, "St", {
1369
1397
  enumerable: !0,
1370
1398
  get: function() {
1371
- return getRegisteredWithScope;
1399
+ return _var_resume;
1372
1400
  }
1373
1401
  }), Object.defineProperty(exports, "T", {
1374
1402
  enumerable: !0,
1375
1403
  get: function() {
1376
- return _attr_input_checkedValue_default;
1404
+ return _attr_input_checkedValue;
1377
1405
  }
1378
1406
  }), Object.defineProperty(exports, "Tt", {
1379
1407
  enumerable: !0,
1380
1408
  get: function() {
1381
- return ready;
1409
+ return initEmbedded;
1382
1410
  }
1383
1411
  }), Object.defineProperty(exports, "U", {
1384
1412
  enumerable: !0,
1385
1413
  get: function() {
1386
- return _attr;
1414
+ return controllableScripts;
1387
1415
  }
1388
1416
  }), Object.defineProperty(exports, "Ut", {
1389
1417
  enumerable: !0,
1390
1418
  get: function() {
1391
- return _return;
1419
+ return _or;
1392
1420
  }
1393
1421
  }), Object.defineProperty(exports, "V", {
1394
1422
  enumerable: !0,
1395
1423
  get: function() {
1396
- return controllableRenders;
1424
+ return _controllable_textarea;
1397
1425
  }
1398
1426
  }), Object.defineProperty(exports, "Vt", {
1399
1427
  enumerable: !0,
1400
1428
  get: function() {
1401
- return _let_change;
1429
+ return _let;
1402
1430
  }
1403
1431
  }), Object.defineProperty(exports, "W", {
1404
1432
  enumerable: !0,
1405
1433
  get: function() {
1406
- return _attr_class;
1434
+ return _attr;
1407
1435
  }
1408
1436
  }), Object.defineProperty(exports, "Wt", {
1409
1437
  enumerable: !0,
1410
1438
  get: function() {
1411
- return _return_change;
1439
+ return _return;
1412
1440
  }
1413
1441
  }), Object.defineProperty(exports, "X", {
1414
1442
  enumerable: !0,
1415
1443
  get: function() {
1416
- return _attr_style_item;
1444
+ return _attr_style;
1417
1445
  }
1418
1446
  }), Object.defineProperty(exports, "Xt", {
1419
1447
  enumerable: !0,
1420
1448
  get: function() {
1421
- return insertBranchBefore;
1449
+ return destroyBranch;
1422
1450
  }
1423
1451
  }), Object.defineProperty(exports, "Y", {
1424
1452
  enumerable: !0,
1425
1453
  get: function() {
1426
- return _attr_style;
1454
+ return _attr_nonce;
1427
1455
  }
1428
1456
  }), Object.defineProperty(exports, "Yt", {
1429
1457
  enumerable: !0,
1430
1458
  get: function() {
1431
- return destroyBranch;
1459
+ return _assert_init;
1432
1460
  }
1433
1461
  }), Object.defineProperty(exports, "Z", {
1434
1462
  enumerable: !0,
1435
1463
  get: function() {
1436
- return _attr_style_items;
1464
+ return _attr_style_item;
1437
1465
  }
1438
1466
  }), Object.defineProperty(exports, "Zt", {
1439
1467
  enumerable: !0,
1440
1468
  get: function() {
1441
- return removeAndDestroyBranch;
1469
+ return insertBranchBefore;
1442
1470
  }
1443
1471
  }), Object.defineProperty(exports, "_", {
1444
1472
  enumerable: !0,
@@ -1453,7 +1481,7 @@ Object.defineProperty(exports, "$", {
1453
1481
  }), Object.defineProperty(exports, "_t", {
1454
1482
  enumerable: !0,
1455
1483
  get: function() {
1456
- return setupBranch;
1484
+ return createBranch;
1457
1485
  }
1458
1486
  }), Object.defineProperty(exports, "a", {
1459
1487
  enumerable: !0,
@@ -1463,22 +1491,22 @@ Object.defineProperty(exports, "$", {
1463
1491
  }), Object.defineProperty(exports, "an", {
1464
1492
  enumerable: !0,
1465
1493
  get: function() {
1466
- return prepareEffects;
1494
+ return queueAsyncRender;
1467
1495
  }
1468
1496
  }), Object.defineProperty(exports, "at", {
1469
1497
  enumerable: !0,
1470
1498
  get: function() {
1471
- return _style_rule_item;
1499
+ return _lifecycle;
1472
1500
  }
1473
1501
  }), Object.defineProperty(exports, "b", {
1474
1502
  enumerable: !0,
1475
1503
  get: function() {
1476
- return _attr_details_or_dialog_open;
1504
+ return runPendingEffects;
1477
1505
  }
1478
1506
  }), Object.defineProperty(exports, "bt", {
1479
1507
  enumerable: !0,
1480
1508
  get: function() {
1481
- return _resumed;
1509
+ return _el;
1482
1510
  }
1483
1511
  }), Object.defineProperty(exports, "c", {
1484
1512
  enumerable: !0,
@@ -1488,12 +1516,12 @@ Object.defineProperty(exports, "$", {
1488
1516
  }), Object.defineProperty(exports, "cn", {
1489
1517
  enumerable: !0,
1490
1518
  get: function() {
1491
- return queueRender;
1519
+ return rendering;
1492
1520
  }
1493
1521
  }), Object.defineProperty(exports, "ct", {
1494
1522
  enumerable: !0,
1495
1523
  get: function() {
1496
- return _text_content;
1524
+ return _text;
1497
1525
  }
1498
1526
  }), Object.defineProperty(exports, "d", {
1499
1527
  enumerable: !0,
@@ -1508,17 +1536,17 @@ Object.defineProperty(exports, "$", {
1508
1536
  }), Object.defineProperty(exports, "dt", {
1509
1537
  enumerable: !0,
1510
1538
  get: function() {
1511
- return toInsertNode;
1539
+ return insertChildNodes;
1512
1540
  }
1513
1541
  }), Object.defineProperty(exports, "en", {
1514
1542
  enumerable: !0,
1515
1543
  get: function() {
1516
- return $signal;
1544
+ return _on;
1517
1545
  }
1518
1546
  }), Object.defineProperty(exports, "et", {
1519
1547
  enumerable: !0,
1520
1548
  get: function() {
1521
- return _attrs_partial;
1549
+ return _attrs_content;
1522
1550
  }
1523
1551
  }), Object.defineProperty(exports, "f", {
1524
1552
  enumerable: !0,
@@ -1533,7 +1561,7 @@ Object.defineProperty(exports, "$", {
1533
1561
  }), Object.defineProperty(exports, "ft", {
1534
1562
  enumerable: !0,
1535
1563
  get: function() {
1536
- return _content;
1564
+ return toInsertNode;
1537
1565
  }
1538
1566
  }), Object.defineProperty(exports, "g", {
1539
1567
  enumerable: !0,
@@ -1548,7 +1576,7 @@ Object.defineProperty(exports, "$", {
1548
1576
  }), Object.defineProperty(exports, "gt", {
1549
1577
  enumerable: !0,
1550
1578
  get: function() {
1551
- return createBranch;
1579
+ return createAndSetupBranch;
1552
1580
  }
1553
1581
  }), Object.defineProperty(exports, "h", {
1554
1582
  enumerable: !0,
@@ -1563,7 +1591,7 @@ Object.defineProperty(exports, "$", {
1563
1591
  }), Object.defineProperty(exports, "ht", {
1564
1592
  enumerable: !0,
1565
1593
  get: function() {
1566
- return createAndSetupBranch;
1594
+ return _content_resume;
1567
1595
  }
1568
1596
  }), Object.defineProperty(exports, "i", {
1569
1597
  enumerable: !0,
@@ -1573,32 +1601,32 @@ Object.defineProperty(exports, "$", {
1573
1601
  }), Object.defineProperty(exports, "in", {
1574
1602
  enumerable: !0,
1575
1603
  get: function() {
1576
- return placeholderShown;
1604
+ return prepareEffects;
1577
1605
  }
1578
1606
  }), Object.defineProperty(exports, "it", {
1579
1607
  enumerable: !0,
1580
1608
  get: function() {
1581
- return _lifecycle;
1609
+ return _html;
1582
1610
  }
1583
1611
  }), Object.defineProperty(exports, "j", {
1584
1612
  enumerable: !0,
1585
1613
  get: function() {
1586
- return _attr_input_value_default;
1614
+ return _attr_input_value_attribute_default;
1587
1615
  }
1588
1616
  }), Object.defineProperty(exports, "jt", {
1589
1617
  enumerable: !0,
1590
1618
  get: function() {
1591
- return _const;
1619
+ return _closure_get;
1592
1620
  }
1593
1621
  }), Object.defineProperty(exports, "k", {
1594
1622
  enumerable: !0,
1595
1623
  get: function() {
1596
- return _attr_input_value;
1624
+ return _attr_input_checked_script;
1597
1625
  }
1598
1626
  }), Object.defineProperty(exports, "kt", {
1599
1627
  enumerable: !0,
1600
1628
  get: function() {
1601
- return _closure;
1629
+ return _child_setup;
1602
1630
  }
1603
1631
  }), Object.defineProperty(exports, "l", {
1604
1632
  enumerable: !0,
@@ -1613,7 +1641,7 @@ Object.defineProperty(exports, "$", {
1613
1641
  }), Object.defineProperty(exports, "lt", {
1614
1642
  enumerable: !0,
1615
1643
  get: function() {
1616
- return _to_text;
1644
+ return _text_content;
1617
1645
  }
1618
1646
  }), Object.defineProperty(exports, "m", {
1619
1647
  enumerable: !0,
@@ -1628,7 +1656,7 @@ Object.defineProperty(exports, "$", {
1628
1656
  }), Object.defineProperty(exports, "mt", {
1629
1657
  enumerable: !0,
1630
1658
  get: function() {
1631
- return _content_resume;
1659
+ return _content_closures;
1632
1660
  }
1633
1661
  }), Object.defineProperty(exports, "n", {
1634
1662
  enumerable: !0,
@@ -1638,12 +1666,12 @@ Object.defineProperty(exports, "$", {
1638
1666
  }), Object.defineProperty(exports, "nn", {
1639
1667
  enumerable: !0,
1640
1668
  get: function() {
1641
- return caughtError;
1669
+ return $signalReset;
1642
1670
  }
1643
1671
  }), Object.defineProperty(exports, "nt", {
1644
1672
  enumerable: !0,
1645
1673
  get: function() {
1646
- return _attrs_script;
1674
+ return _attrs_partial_content;
1647
1675
  }
1648
1676
  }), Object.defineProperty(exports, "o", {
1649
1677
  enumerable: !0,
@@ -1653,12 +1681,12 @@ Object.defineProperty(exports, "$", {
1653
1681
  }), Object.defineProperty(exports, "on", {
1654
1682
  enumerable: !0,
1655
1683
  get: function() {
1656
- return queueAsyncRender;
1684
+ return queueEffect;
1657
1685
  }
1658
1686
  }), Object.defineProperty(exports, "ot", {
1659
1687
  enumerable: !0,
1660
1688
  get: function() {
1661
- return _style_shell;
1689
+ return _style_rule_item;
1662
1690
  }
1663
1691
  }), Object.defineProperty(exports, "p", {
1664
1692
  enumerable: !0,
@@ -1673,17 +1701,17 @@ Object.defineProperty(exports, "$", {
1673
1701
  }), Object.defineProperty(exports, "pt", {
1674
1702
  enumerable: !0,
1675
1703
  get: function() {
1676
- return _content_closures;
1704
+ return _content;
1677
1705
  }
1678
1706
  }), Object.defineProperty(exports, "q", {
1679
1707
  enumerable: !0,
1680
1708
  get: function() {
1681
- return _attr_content;
1709
+ return _attr_class_items;
1682
1710
  }
1683
1711
  }), Object.defineProperty(exports, "qt", {
1684
1712
  enumerable: !0,
1685
1713
  get: function() {
1686
- return _var_change;
1714
+ return _var;
1687
1715
  }
1688
1716
  }), Object.defineProperty(exports, "r", {
1689
1717
  enumerable: !0,
@@ -1698,7 +1726,7 @@ Object.defineProperty(exports, "$", {
1698
1726
  }), Object.defineProperty(exports, "rt", {
1699
1727
  enumerable: !0,
1700
1728
  get: function() {
1701
- return _html;
1729
+ return _attrs_script;
1702
1730
  }
1703
1731
  }), Object.defineProperty(exports, "s", {
1704
1732
  enumerable: !0,
@@ -1708,12 +1736,12 @@ Object.defineProperty(exports, "$", {
1708
1736
  }), Object.defineProperty(exports, "sn", {
1709
1737
  enumerable: !0,
1710
1738
  get: function() {
1711
- return queueEffect;
1739
+ return queueRender;
1712
1740
  }
1713
1741
  }), Object.defineProperty(exports, "st", {
1714
1742
  enumerable: !0,
1715
1743
  get: function() {
1716
- return _text;
1744
+ return _style_shell;
1717
1745
  }
1718
1746
  }), Object.defineProperty(exports, "t", {
1719
1747
  enumerable: !0,
@@ -1723,12 +1751,12 @@ Object.defineProperty(exports, "$", {
1723
1751
  }), Object.defineProperty(exports, "tn", {
1724
1752
  enumerable: !0,
1725
1753
  get: function() {
1726
- return $signalReset;
1754
+ return $signal;
1727
1755
  }
1728
1756
  }), Object.defineProperty(exports, "tt", {
1729
1757
  enumerable: !0,
1730
1758
  get: function() {
1731
- return _attrs_partial_content;
1759
+ return _attrs_partial;
1732
1760
  }
1733
1761
  }), Object.defineProperty(exports, "u", {
1734
1762
  enumerable: !0,
@@ -1743,7 +1771,7 @@ Object.defineProperty(exports, "$", {
1743
1771
  }), Object.defineProperty(exports, "ut", {
1744
1772
  enumerable: !0,
1745
1773
  get: function() {
1746
- return insertChildNodes;
1774
+ return _to_text;
1747
1775
  }
1748
1776
  }), Object.defineProperty(exports, "v", {
1749
1777
  enumerable: !0,
@@ -1758,27 +1786,27 @@ Object.defineProperty(exports, "$", {
1758
1786
  }), Object.defineProperty(exports, "vt", {
1759
1787
  enumerable: !0,
1760
1788
  get: function() {
1761
- return _dynamic_tag_var_resume;
1789
+ return setupBranch;
1762
1790
  }
1763
1791
  }), Object.defineProperty(exports, "w", {
1764
1792
  enumerable: !0,
1765
1793
  get: function() {
1766
- return _attr_input_checkedValue;
1794
+ return _attr_input_checked;
1767
1795
  }
1768
1796
  }), Object.defineProperty(exports, "wt", {
1769
1797
  enumerable: !0,
1770
1798
  get: function() {
1771
- return initEmbedded;
1799
+ return init;
1772
1800
  }
1773
1801
  }), Object.defineProperty(exports, "x", {
1774
1802
  enumerable: !0,
1775
1803
  get: function() {
1776
- return _attr_details_or_dialog_open_default;
1804
+ return _attr_details_or_dialog_open;
1777
1805
  }
1778
1806
  }), Object.defineProperty(exports, "xt", {
1779
1807
  enumerable: !0,
1780
1808
  get: function() {
1781
- return _var_resume;
1809
+ return _resumed;
1782
1810
  }
1783
1811
  }), Object.defineProperty(exports, "y", {
1784
1812
  enumerable: !0,
@@ -1793,16 +1821,16 @@ Object.defineProperty(exports, "$", {
1793
1821
  }), Object.defineProperty(exports, "yt", {
1794
1822
  enumerable: !0,
1795
1823
  get: function() {
1796
- return _el;
1824
+ return _dynamic_tag_var_resume;
1797
1825
  }
1798
1826
  }), Object.defineProperty(exports, "z", {
1799
1827
  enumerable: !0,
1800
1828
  get: function() {
1801
- return _controllable_select;
1829
+ return _controllable_open;
1802
1830
  }
1803
1831
  }), Object.defineProperty(exports, "zt", {
1804
1832
  enumerable: !0,
1805
1833
  get: function() {
1806
- return _if_closure;
1834
+ return _id;
1807
1835
  }
1808
1836
  });