@fictjs/runtime 0.5.0 → 0.5.2

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 (51) hide show
  1. package/dist/advanced.cjs +9 -9
  2. package/dist/advanced.js +4 -4
  3. package/dist/{chunk-5AA7HP4S.js → chunk-4NUHM77Z.js} +3 -3
  4. package/dist/{chunk-BQG7VEBY.js → chunk-D2IWOO4X.js} +2 -2
  5. package/dist/{chunk-KYLNC4CD.cjs → chunk-KNGHYGK4.cjs} +17 -17
  6. package/dist/{chunk-KYLNC4CD.cjs.map → chunk-KNGHYGK4.cjs.map} +1 -1
  7. package/dist/{chunk-FKDMDAUR.js → chunk-LRFMCJY3.js} +119 -19
  8. package/dist/chunk-LRFMCJY3.js.map +1 -0
  9. package/dist/{chunk-GHUV2FLD.cjs → chunk-QB2UD62G.cjs} +8 -8
  10. package/dist/{chunk-GHUV2FLD.cjs.map → chunk-QB2UD62G.cjs.map} +1 -1
  11. package/dist/{chunk-KKKYW54Z.js → chunk-SLFAEVKJ.js} +3 -3
  12. package/dist/{chunk-TKWN42TA.cjs → chunk-Z6M3HKLG.cjs} +156 -156
  13. package/dist/{chunk-TKWN42TA.cjs.map → chunk-Z6M3HKLG.cjs.map} +1 -1
  14. package/dist/{chunk-6SOPF5LZ.cjs → chunk-ZR435MDC.cjs} +120 -20
  15. package/dist/chunk-ZR435MDC.cjs.map +1 -0
  16. package/dist/index.cjs +95 -45
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.dev.js +120 -25
  19. package/dist/index.dev.js.map +1 -1
  20. package/dist/index.js +60 -10
  21. package/dist/index.js.map +1 -1
  22. package/dist/internal.cjs +64 -42
  23. package/dist/internal.cjs.map +1 -1
  24. package/dist/internal.d.cts +12 -3
  25. package/dist/internal.d.ts +12 -3
  26. package/dist/internal.js +25 -3
  27. package/dist/internal.js.map +1 -1
  28. package/dist/jsx-dev-runtime.d.cts +671 -0
  29. package/dist/jsx-dev-runtime.d.ts +671 -0
  30. package/dist/loader.cjs +60 -8
  31. package/dist/loader.cjs.map +1 -1
  32. package/dist/loader.d.cts +1 -1
  33. package/dist/loader.d.ts +1 -1
  34. package/dist/loader.js +53 -1
  35. package/dist/loader.js.map +1 -1
  36. package/dist/{resume-Dx8_l72o.d.ts → resume-CqeQ3v_q.d.ts} +5 -1
  37. package/dist/{resume-BrAkmSTY.d.cts → resume-i-A3EFox.d.cts} +5 -1
  38. package/package.json +1 -1
  39. package/src/cycle-guard.ts +1 -1
  40. package/src/internal.ts +4 -0
  41. package/src/list-helpers.ts +19 -4
  42. package/src/loader.ts +58 -0
  43. package/src/resume.ts +55 -0
  44. package/src/signal.ts +47 -22
  45. package/src/ssr-stream.ts +38 -0
  46. package/src/suspense.ts +62 -7
  47. package/dist/chunk-6SOPF5LZ.cjs.map +0 -1
  48. package/dist/chunk-FKDMDAUR.js.map +0 -1
  49. /package/dist/{chunk-5AA7HP4S.js.map → chunk-4NUHM77Z.js.map} +0 -0
  50. /package/dist/{chunk-BQG7VEBY.js.map → chunk-D2IWOO4X.js.map} +0 -0
  51. /package/dist/{chunk-KKKYW54Z.js.map → chunk-SLFAEVKJ.js.map} +0 -0
@@ -40,7 +40,7 @@
40
40
 
41
41
 
42
42
 
43
- var _chunk6SOPF5LZcjs = require('./chunk-6SOPF5LZ.cjs');
43
+ var _chunkZR435MDCcjs = require('./chunk-ZR435MDC.cjs');
44
44
 
45
45
  // src/jsx.ts
46
46
  var Fragment = Symbol("Fragment");
@@ -249,16 +249,16 @@ function resolvePath(root, path) {
249
249
 
250
250
  // src/transition.ts
251
251
  function startTransition(fn) {
252
- const prev = _chunk6SOPF5LZcjs.setTransitionContext.call(void 0, true);
252
+ const prev = _chunkZR435MDCcjs.setTransitionContext.call(void 0, true);
253
253
  try {
254
254
  fn();
255
255
  } finally {
256
- _chunk6SOPF5LZcjs.setTransitionContext.call(void 0, prev);
257
- _chunk6SOPF5LZcjs.scheduleFlush.call(void 0, );
256
+ _chunkZR435MDCcjs.setTransitionContext.call(void 0, prev);
257
+ _chunkZR435MDCcjs.scheduleFlush.call(void 0, );
258
258
  }
259
259
  }
260
260
  function useTransition() {
261
- const pending = _chunk6SOPF5LZcjs.signal.call(void 0, false);
261
+ const pending = _chunkZR435MDCcjs.signal.call(void 0, false);
262
262
  const start = (fn) => {
263
263
  startTransition(() => {
264
264
  pending(true);
@@ -272,10 +272,10 @@ function useTransition() {
272
272
  return [() => pending(), start];
273
273
  }
274
274
  function useDeferredValue(getValue) {
275
- const deferredValue = _chunk6SOPF5LZcjs.signal.call(void 0, getValue());
276
- _chunk6SOPF5LZcjs.createEffect.call(void 0, () => {
275
+ const deferredValue = _chunkZR435MDCcjs.signal.call(void 0, getValue());
276
+ _chunkZR435MDCcjs.createEffect.call(void 0, () => {
277
277
  const newValue = getValue();
278
- const currentDeferred = _chunk6SOPF5LZcjs.untrack.call(void 0, () => deferredValue());
278
+ const currentDeferred = _chunkZR435MDCcjs.untrack.call(void 0, () => deferredValue());
279
279
  if (currentDeferred !== newValue) {
280
280
  startTransition(() => {
281
281
  deferredValue(newValue);
@@ -287,10 +287,10 @@ function useDeferredValue(getValue) {
287
287
 
288
288
  // src/scheduler.ts
289
289
  function batch2(fn) {
290
- return _chunk6SOPF5LZcjs.batch.call(void 0, fn);
290
+ return _chunkZR435MDCcjs.batch.call(void 0, fn);
291
291
  }
292
292
  function untrack2(fn) {
293
- return _chunk6SOPF5LZcjs.untrack.call(void 0, fn);
293
+ return _chunkZR435MDCcjs.untrack.call(void 0, fn);
294
294
  }
295
295
 
296
296
  // src/hydration.ts
@@ -354,13 +354,13 @@ function isHydratingActive() {
354
354
  var isDev = typeof __DEV__ !== "undefined" ? __DEV__ : typeof process === "undefined" || _optionalChain([process, 'access', _5 => _5.env, 'optionalAccess', _6 => _6.NODE_ENV]) !== "production";
355
355
  function isReactive(value) {
356
356
  if (typeof value !== "function") return false;
357
- if (_chunk6SOPF5LZcjs.isSignal.call(void 0, value) || _chunk6SOPF5LZcjs.isComputed.call(void 0, value)) return true;
358
- if (_chunk6SOPF5LZcjs.isEffect.call(void 0, value) || _chunk6SOPF5LZcjs.isEffectScope.call(void 0, value)) return false;
357
+ if (_chunkZR435MDCcjs.isSignal.call(void 0, value) || _chunkZR435MDCcjs.isComputed.call(void 0, value)) return true;
358
+ if (_chunkZR435MDCcjs.isEffect.call(void 0, value) || _chunkZR435MDCcjs.isEffectScope.call(void 0, value)) return false;
359
359
  return value.length === 0;
360
360
  }
361
361
  function isStrictlyReactive(value) {
362
362
  if (typeof value !== "function") return false;
363
- return _chunk6SOPF5LZcjs.isSignal.call(void 0, value) || _chunk6SOPF5LZcjs.isComputed.call(void 0, value) || isPropGetterFn(value);
363
+ return _chunkZR435MDCcjs.isSignal.call(void 0, value) || _chunkZR435MDCcjs.isComputed.call(void 0, value) || isPropGetterFn(value);
364
364
  }
365
365
  var PROP_GETTER_MARKER = Symbol.for("fict:prop-getter");
366
366
  function isPropGetterFn(value) {
@@ -397,7 +397,7 @@ function callEventHandler(handler, event, node, data) {
397
397
  function createTextBinding(value) {
398
398
  const text = document.createTextNode("");
399
399
  if (isReactive(value)) {
400
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
400
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
401
401
  const v = value();
402
402
  const fmt = formatTextValue(v);
403
403
  if (text.data !== fmt) {
@@ -410,7 +410,7 @@ function createTextBinding(value) {
410
410
  return text;
411
411
  }
412
412
  function bindText(textNode, getValue) {
413
- return _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
413
+ return _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
414
414
  const value = formatTextValue(getValue());
415
415
  if (textNode.data !== value) {
416
416
  textNode.data = value;
@@ -425,7 +425,7 @@ function formatTextValue(value) {
425
425
  }
426
426
  function createAttributeBinding(el, key, value, setter) {
427
427
  if (isReactive(value)) {
428
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
428
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
429
429
  setter(el, key, value());
430
430
  });
431
431
  } else {
@@ -434,7 +434,7 @@ function createAttributeBinding(el, key, value, setter) {
434
434
  }
435
435
  function bindAttribute(el, key, getValue) {
436
436
  let prevValue = void 0;
437
- return _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
437
+ return _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
438
438
  const value = getValue();
439
439
  if (value === prevValue) return;
440
440
  prevValue = value;
@@ -458,7 +458,7 @@ function bindProperty(el, key, getValue) {
458
458
  "muted"
459
459
  ]);
460
460
  let prevValue = void 0;
461
- return _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
461
+ return _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
462
462
  const next = getValue();
463
463
  if (next === prevValue) return;
464
464
  prevValue = next;
@@ -475,7 +475,7 @@ function createStyleBinding(el, value) {
475
475
  const target = el;
476
476
  if (isReactive(value)) {
477
477
  let prev;
478
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
478
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
479
479
  const next = value();
480
480
  applyStyle(target, next, prev);
481
481
  prev = next;
@@ -487,7 +487,7 @@ function createStyleBinding(el, value) {
487
487
  function bindStyle(el, getValue) {
488
488
  const target = el;
489
489
  let prev;
490
- return _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
490
+ return _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
491
491
  const next = getValue();
492
492
  applyStyle(target, next, prev);
493
493
  prev = next;
@@ -533,11 +533,11 @@ function applyStyle(el, value, prev) {
533
533
  }
534
534
  }
535
535
  }
536
- var isUnitlessStyleProperty = isDev ? (prop2) => _chunk6SOPF5LZcjs.UnitlessStyles.has(prop2) : (prop2) => prop2 === "opacity" || prop2 === "zIndex";
536
+ var isUnitlessStyleProperty = isDev ? (prop2) => _chunkZR435MDCcjs.UnitlessStyles.has(prop2) : (prop2) => prop2 === "opacity" || prop2 === "zIndex";
537
537
  function createClassBinding(el, value) {
538
538
  if (isReactive(value)) {
539
539
  let prev = {};
540
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
540
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
541
541
  const next = value();
542
542
  prev = applyClass(el, next, prev);
543
543
  });
@@ -548,7 +548,7 @@ function createClassBinding(el, value) {
548
548
  function bindClass(el, getValue) {
549
549
  let prev = {};
550
550
  let prevString;
551
- return _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
551
+ return _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
552
552
  const next = getValue();
553
553
  if (typeof next === "string") {
554
554
  if (next === prevString) return;
@@ -606,7 +606,7 @@ function classList(node, value, prev = {}) {
606
606
  return applyClass(node, value, prev);
607
607
  }
608
608
  function insert(parent, getValue, markerOrCreateElement, createElementFn) {
609
- const hostRoot = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
609
+ const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
610
610
  let marker;
611
611
  let ownsMarker = false;
612
612
  let createFn = createElementFn;
@@ -645,13 +645,13 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
645
645
  insertNodesBefore(parentNode, [currentText], marker);
646
646
  currentNodes = [currentText];
647
647
  };
648
- const dispose = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
648
+ const dispose = _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
649
649
  const value = getValue();
650
650
  const parentNode = marker.parentNode;
651
651
  const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
652
652
  if (isPrimitive) {
653
653
  if (currentRoot) {
654
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
654
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
655
655
  currentRoot = null;
656
656
  }
657
657
  if (!parentNode) {
@@ -664,12 +664,12 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
664
664
  return;
665
665
  }
666
666
  if (currentRoot) {
667
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
667
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
668
668
  currentRoot = null;
669
669
  }
670
670
  clearCurrentNodes();
671
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, hostRoot);
672
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
671
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
672
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
673
673
  let nodes = [];
674
674
  let handledError = false;
675
675
  try {
@@ -696,28 +696,28 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
696
696
  nodes = toNodeArray(newNode);
697
697
  if (root.suspended) {
698
698
  handledError = true;
699
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
699
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
700
700
  return;
701
701
  }
702
702
  if (parentNode) {
703
703
  insertNodesBefore(parentNode, nodes, marker);
704
704
  }
705
705
  } catch (err) {
706
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root)) {
706
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root)) {
707
707
  handledError = true;
708
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
708
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
709
709
  return;
710
710
  }
711
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
711
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
712
712
  handledError = true;
713
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
713
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
714
714
  return;
715
715
  }
716
716
  throw err;
717
717
  } finally {
718
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
718
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
719
719
  if (!handledError) {
720
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
720
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
721
721
  }
722
722
  }
723
723
  currentRoot = root;
@@ -726,7 +726,7 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
726
726
  return () => {
727
727
  dispose();
728
728
  if (currentRoot) {
729
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
729
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
730
730
  currentRoot = null;
731
731
  }
732
732
  clearCurrentNodes();
@@ -736,11 +736,11 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
736
736
  };
737
737
  }
738
738
  function insertBetween(start, end, getValue, createElementFn) {
739
- const hostRoot = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
739
+ const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
740
740
  let currentNodes = [];
741
741
  let currentText = null;
742
742
  let currentRoot = null;
743
- let initialHydrating = _chunk6SOPF5LZcjs.__fictIsHydrating.call(void 0, );
743
+ let initialHydrating = _chunkZR435MDCcjs.__fictIsHydrating.call(void 0, );
744
744
  const collectBetween = () => {
745
745
  const nodes = [];
746
746
  let cursor = start.nextSibling;
@@ -776,7 +776,7 @@ function insertBetween(start, end, getValue, createElementFn) {
776
776
  currentNodes = [currentText];
777
777
  }
778
778
  };
779
- const dispose = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
779
+ const dispose = _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
780
780
  const value = getValue();
781
781
  const parentNode = start.parentNode;
782
782
  const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
@@ -790,7 +790,7 @@ function insertBetween(start, end, getValue, createElementFn) {
790
790
  }
791
791
  }
792
792
  if (currentRoot) {
793
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
793
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
794
794
  currentRoot = null;
795
795
  }
796
796
  if (!parentNode) {
@@ -804,12 +804,12 @@ function insertBetween(start, end, getValue, createElementFn) {
804
804
  return;
805
805
  }
806
806
  if (currentRoot) {
807
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
807
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
808
808
  currentRoot = null;
809
809
  }
810
810
  clearCurrentNodes();
811
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, hostRoot);
812
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
811
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
812
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
813
813
  let nodes = [];
814
814
  let handledError = false;
815
815
  try {
@@ -843,28 +843,28 @@ function insertBetween(start, end, getValue, createElementFn) {
843
843
  nodes = toNodeArray(newNode);
844
844
  if (root.suspended) {
845
845
  handledError = true;
846
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
846
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
847
847
  return;
848
848
  }
849
849
  if (parentNode && !initialHydrating) {
850
850
  insertNodesBefore(parentNode, nodes, end);
851
851
  }
852
852
  } catch (err) {
853
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root)) {
853
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root)) {
854
854
  handledError = true;
855
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
855
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
856
856
  return;
857
857
  }
858
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
858
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
859
859
  handledError = true;
860
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
860
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
861
861
  return;
862
862
  }
863
863
  throw err;
864
864
  } finally {
865
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
865
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
866
866
  if (!handledError) {
867
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
867
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
868
868
  }
869
869
  }
870
870
  currentRoot = root;
@@ -874,7 +874,7 @@ function insertBetween(start, end, getValue, createElementFn) {
874
874
  return () => {
875
875
  dispose();
876
876
  if (currentRoot) {
877
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
877
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
878
878
  currentRoot = null;
879
879
  }
880
880
  clearCurrentNodes();
@@ -883,10 +883,10 @@ function insertBetween(start, end, getValue, createElementFn) {
883
883
  function createChildBinding(parent, getValue, createElementFn) {
884
884
  const marker = document.createComment("fict:child");
885
885
  parent.appendChild(marker);
886
- const hostRoot = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
887
- const dispose = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
888
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, hostRoot);
889
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
886
+ const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
887
+ const dispose = _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
888
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
889
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
890
890
  let nodes = [];
891
891
  let handledError = false;
892
892
  try {
@@ -901,25 +901,25 @@ function createChildBinding(parent, getValue, createElementFn) {
901
901
  insertNodesBefore(parentNode, nodes, marker);
902
902
  }
903
903
  return () => {
904
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
904
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
905
905
  removeNodes(nodes);
906
906
  };
907
907
  } catch (err) {
908
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root)) {
908
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root)) {
909
909
  handledError = true;
910
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
910
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
911
911
  return;
912
912
  }
913
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
913
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
914
914
  handledError = true;
915
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
915
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
916
916
  return;
917
917
  }
918
918
  throw err;
919
919
  } finally {
920
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
920
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
921
921
  if (!handledError) {
922
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
922
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
923
923
  }
924
924
  }
925
925
  });
@@ -932,7 +932,7 @@ function createChildBinding(parent, getValue, createElementFn) {
932
932
  };
933
933
  }
934
934
  function delegateEvents(eventNames, doc = window.document) {
935
- const e = doc[_chunk6SOPF5LZcjs.$$EVENTS] || (doc[_chunk6SOPF5LZcjs.$$EVENTS] = /* @__PURE__ */ new Set());
935
+ const e = doc[_chunkZR435MDCcjs.$$EVENTS] || (doc[_chunkZR435MDCcjs.$$EVENTS] = /* @__PURE__ */ new Set());
936
936
  for (let i = 0, l = eventNames.length; i < l; i++) {
937
937
  const name = eventNames[i];
938
938
  if (!e.has(name)) {
@@ -942,12 +942,12 @@ function delegateEvents(eventNames, doc = window.document) {
942
942
  }
943
943
  }
944
944
  function clearDelegatedEvents(doc = window.document) {
945
- const e = doc[_chunk6SOPF5LZcjs.$$EVENTS];
945
+ const e = doc[_chunkZR435MDCcjs.$$EVENTS];
946
946
  if (e) {
947
947
  for (const name of e.keys()) {
948
948
  doc.removeEventListener(name, globalEventHandler);
949
949
  }
950
- delete doc[_chunk6SOPF5LZcjs.$$EVENTS];
950
+ delete doc[_chunkZR435MDCcjs.$$EVENTS];
951
951
  }
952
952
  }
953
953
  function globalEventHandler(e) {
@@ -1060,8 +1060,8 @@ function addEventListener(node, name, handler, delegate) {
1060
1060
  function bindEvent(el, eventName, handler, options) {
1061
1061
  if (handler == null) return () => {
1062
1062
  };
1063
- const rootRef = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
1064
- const shouldDelegate = options == null && _chunk6SOPF5LZcjs.DelegatedEvents.has(eventName);
1063
+ const rootRef = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
1064
+ const shouldDelegate = options == null && _chunkZR435MDCcjs.DelegatedEvents.has(eventName);
1065
1065
  if (shouldDelegate) {
1066
1066
  const key = `$$${eventName}`;
1067
1067
  delegateEvents([eventName]);
@@ -1071,7 +1071,7 @@ function bindEvent(el, eventName, handler, options) {
1071
1071
  const fn = resolveHandler();
1072
1072
  callEventHandler(fn, args[0], el);
1073
1073
  } catch (err) {
1074
- if (!_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1074
+ if (!_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1075
1075
  throw err;
1076
1076
  }
1077
1077
  }
@@ -1086,7 +1086,7 @@ function bindEvent(el, eventName, handler, options) {
1086
1086
  const resolved = getHandler();
1087
1087
  callEventHandler(resolved, event, el);
1088
1088
  } catch (err) {
1089
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1089
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
1090
1090
  return;
1091
1091
  }
1092
1092
  throw err;
@@ -1094,7 +1094,7 @@ function bindEvent(el, eventName, handler, options) {
1094
1094
  };
1095
1095
  el.addEventListener(eventName, wrapped, options);
1096
1096
  const cleanup = () => el.removeEventListener(eventName, wrapped, options);
1097
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, cleanup);
1097
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, cleanup);
1098
1098
  return cleanup;
1099
1099
  }
1100
1100
  function bindRef(el, ref) {
@@ -1114,11 +1114,11 @@ function bindRef(el, ref) {
1114
1114
  const initialRef = getRef();
1115
1115
  applyRef2(initialRef);
1116
1116
  if (isReactive(ref)) {
1117
- const cleanup2 = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1117
+ const cleanup2 = _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1118
1118
  const currentRef = getRef();
1119
1119
  applyRef2(currentRef);
1120
1120
  });
1121
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, cleanup2);
1121
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, cleanup2);
1122
1122
  const nullifyCleanup = () => {
1123
1123
  const currentRef = getRef();
1124
1124
  if (currentRef && typeof currentRef === "object" && "current" in currentRef) {
@@ -1126,7 +1126,7 @@ function bindRef(el, ref) {
1126
1126
  currentRef.current = null;
1127
1127
  }
1128
1128
  };
1129
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, nullifyCleanup);
1129
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, nullifyCleanup);
1130
1130
  return () => {
1131
1131
  cleanup2();
1132
1132
  nullifyCleanup();
@@ -1139,23 +1139,23 @@ function bindRef(el, ref) {
1139
1139
  refValue.current = null;
1140
1140
  }
1141
1141
  };
1142
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, cleanup);
1142
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, cleanup);
1143
1143
  return cleanup;
1144
1144
  }
1145
1145
  function spread(node, props = {}, isSVG = false, skipChildren = false) {
1146
1146
  const prevProps = {};
1147
1147
  if (!skipChildren && "children" in props) {
1148
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1148
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1149
1149
  prevProps.children = props.children;
1150
1150
  });
1151
1151
  }
1152
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1152
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1153
1153
  if (typeof props.ref === "function") {
1154
1154
  ;
1155
1155
  props.ref(node);
1156
1156
  }
1157
1157
  });
1158
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1158
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1159
1159
  assign(node, props, isSVG, true, prevProps, true);
1160
1160
  });
1161
1161
  return prevProps;
@@ -1213,7 +1213,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1213
1213
  }
1214
1214
  if (prop2.slice(0, 2) === "on") {
1215
1215
  const eventName = prop2.slice(2).toLowerCase();
1216
- const shouldDelegate = _chunk6SOPF5LZcjs.DelegatedEvents.has(eventName);
1216
+ const shouldDelegate = _chunkZR435MDCcjs.DelegatedEvents.has(eventName);
1217
1217
  if (!shouldDelegate && prev) {
1218
1218
  const handler = Array.isArray(prev) ? prev[0] : prev;
1219
1219
  node.removeEventListener(eventName, handler);
@@ -1246,9 +1246,9 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1246
1246
  }
1247
1247
  const isCE = node.nodeName.includes("-") || "is" in props;
1248
1248
  if (!isSVG) {
1249
- const propAlias = isDev ? _chunk6SOPF5LZcjs.getPropAlias.call(void 0, prop2, node.tagName) : void 0;
1250
- const isProperty = isDev ? _chunk6SOPF5LZcjs.Properties.has(prop2) : prop2 in node;
1251
- const isChildProp = isDev ? _chunk6SOPF5LZcjs.ChildProperties.has(prop2) : prop2 === "innerHTML" || prop2 === "textContent" || prop2 === "innerText" || prop2 === "children";
1249
+ const propAlias = isDev ? _chunkZR435MDCcjs.getPropAlias.call(void 0, prop2, node.tagName) : void 0;
1250
+ const isProperty = isDev ? _chunkZR435MDCcjs.Properties.has(prop2) : prop2 in node;
1251
+ const isChildProp = isDev ? _chunkZR435MDCcjs.ChildProperties.has(prop2) : prop2 === "innerHTML" || prop2 === "textContent" || prop2 === "innerText" || prop2 === "children";
1252
1252
  if (propAlias || isProperty || isChildProp || isCE) {
1253
1253
  const propName = propAlias || prop2;
1254
1254
  if (isCE && !isProperty && !isChildProp && !propAlias) {
@@ -1263,7 +1263,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
1263
1263
  }
1264
1264
  if (isSVG && prop2.indexOf(":") > -1) {
1265
1265
  const [prefix, name] = prop2.split(":");
1266
- const ns = _chunk6SOPF5LZcjs.SVGNamespace[prefix];
1266
+ const ns = _chunkZR435MDCcjs.SVGNamespace[prefix];
1267
1267
  if (ns) {
1268
1268
  if (value == null) node.removeAttributeNS(ns, name);
1269
1269
  else node.setAttributeNS(ns, name, String(value));
@@ -1287,12 +1287,12 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1287
1287
  ;
1288
1288
  fragment.append(startMarker, endMarker);
1289
1289
  }
1290
- const hostRoot = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
1290
+ const hostRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
1291
1291
  let currentNodes = [];
1292
1292
  let currentRoot = null;
1293
1293
  let lastCondition = void 0;
1294
1294
  let pendingRender = false;
1295
- let initialHydrating = _chunk6SOPF5LZcjs.__fictIsHydrating.call(void 0, );
1295
+ let initialHydrating = _chunkZR435MDCcjs.__fictIsHydrating.call(void 0, );
1296
1296
  const collectBetween = () => {
1297
1297
  const nodes = [];
1298
1298
  let cursor = startMarker.nextSibling;
@@ -1302,7 +1302,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1302
1302
  }
1303
1303
  return nodes;
1304
1304
  };
1305
- const conditionMemo = _chunk6SOPF5LZcjs.computed.call(void 0, condition);
1305
+ const conditionMemo = _chunkZR435MDCcjs.computed.call(void 0, condition);
1306
1306
  const runConditional = () => {
1307
1307
  const cond = conditionMemo();
1308
1308
  const parent = startMarker.parentNode;
@@ -1319,8 +1319,8 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1319
1319
  currentNodes = collectBetween();
1320
1320
  return;
1321
1321
  }
1322
- const root2 = _chunk6SOPF5LZcjs.createRootContext.call(void 0, hostRoot);
1323
- const prev2 = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root2);
1322
+ const root2 = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
1323
+ const prev2 = _chunkZR435MDCcjs.pushRoot.call(void 0, root2);
1324
1324
  let handledError2 = false;
1325
1325
  try {
1326
1326
  withHydrationRange(
@@ -1328,7 +1328,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1328
1328
  endMarker,
1329
1329
  _nullishCoalesce(parent.ownerDocument, () => ( document)),
1330
1330
  () => {
1331
- const output = _chunk6SOPF5LZcjs.untrack.call(void 0, render3);
1331
+ const output = _chunkZR435MDCcjs.untrack.call(void 0, render3);
1332
1332
  if (output == null || output === false) {
1333
1333
  return;
1334
1334
  }
@@ -1337,21 +1337,21 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1337
1337
  );
1338
1338
  currentNodes = collectBetween();
1339
1339
  } catch (err) {
1340
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root2)) {
1340
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root2)) {
1341
1341
  handledError2 = true;
1342
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root2);
1342
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root2);
1343
1343
  return;
1344
1344
  }
1345
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root2)) {
1345
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root2)) {
1346
1346
  handledError2 = true;
1347
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root2);
1347
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root2);
1348
1348
  return;
1349
1349
  }
1350
1350
  throw err;
1351
1351
  } finally {
1352
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev2);
1352
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev2);
1353
1353
  if (!handledError2) {
1354
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root2);
1354
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root2);
1355
1355
  currentRoot = root2;
1356
1356
  } else {
1357
1357
  currentRoot = null;
@@ -1367,7 +1367,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1367
1367
  }
1368
1368
  lastCondition = cond;
1369
1369
  if (currentRoot) {
1370
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
1370
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
1371
1371
  currentRoot = null;
1372
1372
  }
1373
1373
  removeNodes(currentNodes);
@@ -1376,11 +1376,11 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1376
1376
  if (!render2) {
1377
1377
  return;
1378
1378
  }
1379
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, hostRoot);
1380
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
1379
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, hostRoot);
1380
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
1381
1381
  let handledError = false;
1382
1382
  try {
1383
- const output = _chunk6SOPF5LZcjs.untrack.call(void 0, render2);
1383
+ const output = _chunkZR435MDCcjs.untrack.call(void 0, render2);
1384
1384
  if (output == null || output === false) {
1385
1385
  return;
1386
1386
  }
@@ -1389,28 +1389,28 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1389
1389
  insertNodesBefore(parent, nodes, endMarker);
1390
1390
  currentNodes = nodes;
1391
1391
  } catch (err) {
1392
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root)) {
1392
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root)) {
1393
1393
  handledError = true;
1394
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1394
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1395
1395
  return;
1396
1396
  }
1397
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1397
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1398
1398
  handledError = true;
1399
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1399
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1400
1400
  return;
1401
1401
  }
1402
1402
  throw err;
1403
1403
  } finally {
1404
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
1404
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
1405
1405
  if (!handledError) {
1406
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
1406
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
1407
1407
  currentRoot = root;
1408
1408
  } else {
1409
1409
  currentRoot = null;
1410
1410
  }
1411
1411
  }
1412
1412
  };
1413
- const dispose = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, runConditional);
1413
+ const dispose = _chunkZR435MDCcjs.createRenderEffect.call(void 0, runConditional);
1414
1414
  return {
1415
1415
  marker: fragment,
1416
1416
  flush: () => {
@@ -1421,7 +1421,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1421
1421
  dispose: () => {
1422
1422
  dispose();
1423
1423
  if (currentRoot) {
1424
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
1424
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
1425
1425
  }
1426
1426
  removeNodes(currentNodes);
1427
1427
  currentNodes = [];
@@ -1432,27 +1432,27 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
1432
1432
  }
1433
1433
  function createShow(el, condition, displayValue) {
1434
1434
  const originalDisplay = _nullishCoalesce(displayValue, () => ( el.style.display));
1435
- _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1435
+ _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1436
1436
  el.style.display = condition() ? originalDisplay : "none";
1437
1437
  });
1438
1438
  }
1439
1439
  function createPortal(container, render2, createElementFn) {
1440
- const parentRoot = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
1440
+ const parentRoot = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
1441
1441
  const marker = document.createComment("fict:portal");
1442
1442
  container.appendChild(marker);
1443
1443
  let currentNodes = [];
1444
1444
  let currentRoot = null;
1445
- const dispose = _chunk6SOPF5LZcjs.createRenderEffect.call(void 0, () => {
1445
+ const dispose = _chunkZR435MDCcjs.createRenderEffect.call(void 0, () => {
1446
1446
  if (currentRoot) {
1447
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
1447
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
1448
1448
  currentRoot = null;
1449
1449
  }
1450
1450
  if (currentNodes.length > 0) {
1451
1451
  removeNodes(currentNodes);
1452
1452
  currentNodes = [];
1453
1453
  }
1454
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, parentRoot);
1455
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
1454
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, parentRoot);
1455
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
1456
1456
  let handledError = false;
1457
1457
  try {
1458
1458
  const output = render2();
@@ -1465,23 +1465,23 @@ function createPortal(container, render2, createElementFn) {
1465
1465
  currentNodes = nodes;
1466
1466
  }
1467
1467
  } catch (err) {
1468
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err, root)) {
1468
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err, root)) {
1469
1469
  handledError = true;
1470
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1470
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1471
1471
  currentNodes = [];
1472
1472
  return;
1473
1473
  }
1474
- if (_chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1474
+ if (_chunkZR435MDCcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
1475
1475
  handledError = true;
1476
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1476
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1477
1477
  currentNodes = [];
1478
1478
  return;
1479
1479
  }
1480
1480
  throw err;
1481
1481
  } finally {
1482
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
1482
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
1483
1483
  if (!handledError) {
1484
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
1484
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
1485
1485
  currentRoot = root;
1486
1486
  } else {
1487
1487
  currentRoot = null;
@@ -1491,7 +1491,7 @@ function createPortal(container, render2, createElementFn) {
1491
1491
  const portalDispose = () => {
1492
1492
  dispose();
1493
1493
  if (currentRoot) {
1494
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, currentRoot);
1494
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, currentRoot);
1495
1495
  }
1496
1496
  if (currentNodes.length > 0) {
1497
1497
  removeNodes(currentNodes);
@@ -1666,7 +1666,7 @@ function prop(getter, options) {
1666
1666
  const fn = getter;
1667
1667
  const unwrap2 = _optionalChain([options, 'optionalAccess', _22 => _22.unwrap]) !== false;
1668
1668
  return __fictProp(
1669
- _chunk6SOPF5LZcjs.createMemo.call(void 0, () => {
1669
+ _chunkZR435MDCcjs.createMemo.call(void 0, () => {
1670
1670
  const value = fn();
1671
1671
  if (unwrap2 && isPropGetter(value)) {
1672
1672
  return value();
@@ -1682,12 +1682,12 @@ var MATHML_NS = "http://www.w3.org/1998/Math/MathML";
1682
1682
  var isDev2 = typeof __DEV__ !== "undefined" ? __DEV__ : typeof process === "undefined" || _optionalChain([process, 'access', _23 => _23.env, 'optionalAccess', _24 => _24.NODE_ENV]) !== "production";
1683
1683
  var nextComponentId = 1;
1684
1684
  function render(view, container) {
1685
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, );
1686
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
1685
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, );
1686
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
1687
1687
  let dom = void 0;
1688
1688
  try {
1689
1689
  const output = view();
1690
- if (_chunk6SOPF5LZcjs.__fictIsHydrating.call(void 0, )) {
1690
+ if (_chunkZR435MDCcjs.__fictIsHydrating.call(void 0, )) {
1691
1691
  withHydration(container, () => {
1692
1692
  dom = createElement(output);
1693
1693
  });
@@ -1695,35 +1695,35 @@ function render(view, container) {
1695
1695
  dom = createElement(output);
1696
1696
  }
1697
1697
  } finally {
1698
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
1698
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
1699
1699
  }
1700
- if (!_chunk6SOPF5LZcjs.__fictIsHydrating.call(void 0, )) {
1700
+ if (!_chunkZR435MDCcjs.__fictIsHydrating.call(void 0, )) {
1701
1701
  container.replaceChildren(dom);
1702
1702
  }
1703
1703
  container.setAttribute("data-fict-fine-grained", "1");
1704
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
1704
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
1705
1705
  const teardown = () => {
1706
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1706
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1707
1707
  container.innerHTML = "";
1708
1708
  };
1709
1709
  return teardown;
1710
1710
  }
1711
1711
  function hydrateComponent(view, container) {
1712
- const root = _chunk6SOPF5LZcjs.createRootContext.call(void 0, );
1713
- const prev = _chunk6SOPF5LZcjs.pushRoot.call(void 0, root);
1714
- _chunk6SOPF5LZcjs.__fictEnterHydration.call(void 0, );
1712
+ const root = _chunkZR435MDCcjs.createRootContext.call(void 0, );
1713
+ const prev = _chunkZR435MDCcjs.pushRoot.call(void 0, root);
1714
+ _chunkZR435MDCcjs.__fictEnterHydration.call(void 0, );
1715
1715
  try {
1716
1716
  withHydration(container, () => {
1717
1717
  view();
1718
1718
  });
1719
1719
  } finally {
1720
- _chunk6SOPF5LZcjs.__fictExitHydration.call(void 0, );
1721
- _chunk6SOPF5LZcjs.popRoot.call(void 0, prev);
1720
+ _chunkZR435MDCcjs.__fictExitHydration.call(void 0, );
1721
+ _chunkZR435MDCcjs.popRoot.call(void 0, prev);
1722
1722
  }
1723
1723
  container.setAttribute("data-fict-fine-grained", "1");
1724
- _chunk6SOPF5LZcjs.flushOnMount.call(void 0, root);
1724
+ _chunkZR435MDCcjs.flushOnMount.call(void 0, root);
1725
1725
  const teardown = () => {
1726
- _chunk6SOPF5LZcjs.destroyRoot.call(void 0, root);
1726
+ _chunkZR435MDCcjs.destroyRoot.call(void 0, root);
1727
1727
  };
1728
1728
  return teardown;
1729
1729
  }
@@ -1735,7 +1735,7 @@ function resolveNamespace(tagName, namespace) {
1735
1735
  if (tagName === "math") return "mathml";
1736
1736
  if (namespace === "mathml") return "mathml";
1737
1737
  if (namespace === "svg") return "svg";
1738
- if (isDev2 && _chunk6SOPF5LZcjs.SVGElements.has(tagName)) return "svg";
1738
+ if (isDev2 && _chunkZR435MDCcjs.SVGElements.has(tagName)) return "svg";
1739
1739
  return null;
1740
1740
  }
1741
1741
  function createElementWithContext(node, namespace) {
@@ -1756,7 +1756,7 @@ function createElementWithContext(node, namespace) {
1756
1756
  if ("marker" in node) {
1757
1757
  const handle = node;
1758
1758
  if (typeof handle.dispose === "function") {
1759
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, handle.dispose);
1759
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, handle.dispose);
1760
1760
  }
1761
1761
  if (typeof handle.flush === "function") {
1762
1762
  const runFlush = () => handle.flush && handle.flush();
@@ -1807,13 +1807,13 @@ function createElementWithContext(node, namespace) {
1807
1807
  }
1808
1808
  });
1809
1809
  const props = createPropsProxy(baseProps);
1810
- const hook = isDev2 ? _chunk6SOPF5LZcjs.getDevtoolsHook.call(void 0, ) : void 0;
1811
- const parentId = hook ? _chunk6SOPF5LZcjs.__fictGetCurrentComponentId.call(void 0, ) : void 0;
1810
+ const hook = isDev2 ? _chunkZR435MDCcjs.getDevtoolsHook.call(void 0, ) : void 0;
1811
+ const parentId = hook ? _chunkZR435MDCcjs.__fictGetCurrentComponentId.call(void 0, ) : void 0;
1812
1812
  const componentId = hook ? nextComponentId++ : void 0;
1813
1813
  if (_optionalChain([hook, 'optionalAccess', _25 => _25.registerComponent]) && componentId !== void 0) {
1814
1814
  hook.registerComponent(componentId, vnode.type.name || "Anonymous", parentId);
1815
1815
  }
1816
- const ctx = _chunk6SOPF5LZcjs.__fictPushContext.call(void 0, );
1816
+ const ctx = _chunkZR435MDCcjs.__fictPushContext.call(void 0, );
1817
1817
  if (componentId !== void 0) {
1818
1818
  ctx.componentId = componentId;
1819
1819
  if (parentId !== void 0) {
@@ -1823,12 +1823,12 @@ function createElementWithContext(node, namespace) {
1823
1823
  try {
1824
1824
  const rendered = vnode.type(props);
1825
1825
  if (hook && componentId !== void 0) {
1826
- _chunk6SOPF5LZcjs.onMount.call(void 0, () => {
1826
+ _chunkZR435MDCcjs.onMount.call(void 0, () => {
1827
1827
  _optionalChain([hook, 'access', _26 => _26.componentMount, 'optionalCall', _27 => _27(componentId)]);
1828
1828
  });
1829
- _chunk6SOPF5LZcjs.onCleanup.call(void 0, () => _optionalChain([hook, 'access', _28 => _28.componentUnmount, 'optionalCall', _29 => _29(componentId)]));
1829
+ _chunkZR435MDCcjs.onCleanup.call(void 0, () => _optionalChain([hook, 'access', _28 => _28.componentUnmount, 'optionalCall', _29 => _29(componentId)]));
1830
1830
  }
1831
- if (_chunk6SOPF5LZcjs.__fictIsResumable.call(void 0, ) && !_chunk6SOPF5LZcjs.__fictIsHydrating.call(void 0, )) {
1831
+ if (_chunkZR435MDCcjs.__fictIsResumable.call(void 0, ) && !_chunkZR435MDCcjs.__fictIsHydrating.call(void 0, )) {
1832
1832
  const content = createElementWithContext(rendered, namespace);
1833
1833
  const host = namespace === "svg" ? document.createElementNS(SVG_NS, "fict-host") : namespace === "mathml" ? document.createElementNS(MATHML_NS, "fict-host") : document.createElement("fict-host");
1834
1834
  host.setAttribute("data-fict-host", "");
@@ -1838,7 +1838,7 @@ function createElementWithContext(node, namespace) {
1838
1838
  }
1839
1839
  const meta = vnode.type.__fictMeta;
1840
1840
  const typeKey = (_nullishCoalesce(_optionalChain([meta, 'optionalAccess', _30 => _30.id]), () => ( vnode.type.name))) || "Anonymous";
1841
- _chunk6SOPF5LZcjs.__fictRegisterScope.call(void 0, ctx, host, typeKey, rawProps);
1841
+ _chunkZR435MDCcjs.__fictRegisterScope.call(void 0, ctx, host, typeKey, rawProps);
1842
1842
  if (_optionalChain([meta, 'optionalAccess', _31 => _31.resume])) {
1843
1843
  host.setAttribute("data-fict-h", meta.resume);
1844
1844
  }
@@ -1851,13 +1851,13 @@ function createElementWithContext(node, namespace) {
1851
1851
  }
1852
1852
  return createElementWithContext(rendered, namespace);
1853
1853
  } catch (err) {
1854
- if (_chunk6SOPF5LZcjs.handleSuspend.call(void 0, err)) {
1854
+ if (_chunkZR435MDCcjs.handleSuspend.call(void 0, err)) {
1855
1855
  return document.createComment("fict:suspend");
1856
1856
  }
1857
- _chunk6SOPF5LZcjs.handleError.call(void 0, err, { source: "render", componentName: vnode.type.name });
1857
+ _chunkZR435MDCcjs.handleError.call(void 0, err, { source: "render", componentName: vnode.type.name });
1858
1858
  throw err;
1859
1859
  } finally {
1860
- _chunk6SOPF5LZcjs.__fictPopContext.call(void 0, );
1860
+ _chunkZR435MDCcjs.__fictPopContext.call(void 0, );
1861
1861
  }
1862
1862
  }
1863
1863
  if (vnode.type === Fragment) {
@@ -1997,9 +1997,9 @@ function applyRef(el, value) {
1997
1997
  if (typeof value === "function") {
1998
1998
  const refFn = value;
1999
1999
  refFn(el);
2000
- const root = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
2000
+ const root = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
2001
2001
  if (root) {
2002
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, () => {
2002
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, () => {
2003
2003
  refFn(null);
2004
2004
  });
2005
2005
  } else if (isDev2) {
@@ -2010,9 +2010,9 @@ function applyRef(el, value) {
2010
2010
  } else if (value && typeof value === "object" && "current" in value) {
2011
2011
  const refObj = value;
2012
2012
  refObj.current = el;
2013
- const root = _chunk6SOPF5LZcjs.getCurrentRoot.call(void 0, );
2013
+ const root = _chunkZR435MDCcjs.getCurrentRoot.call(void 0, );
2014
2014
  if (root) {
2015
- _chunk6SOPF5LZcjs.registerRootCleanup.call(void 0, () => {
2015
+ _chunkZR435MDCcjs.registerRootCleanup.call(void 0, () => {
2016
2016
  refObj.current = null;
2017
2017
  });
2018
2018
  } else if (isDev2) {
@@ -2086,7 +2086,7 @@ function applyProps(el, props, isSVG = false) {
2086
2086
  }
2087
2087
  continue;
2088
2088
  }
2089
- if (isDev2 && _chunk6SOPF5LZcjs.ChildProperties.has(key) || key === "innerHTML" || key === "textContent" || key === "innerText" || key === "children") {
2089
+ if (isDev2 && _chunkZR435MDCcjs.ChildProperties.has(key) || key === "innerHTML" || key === "textContent" || key === "innerText" || key === "children") {
2090
2090
  createAttributeBinding(el, key, value, setProperty);
2091
2091
  continue;
2092
2092
  }
@@ -2102,8 +2102,8 @@ function applyProps(el, props, isSVG = false) {
2102
2102
  createAttributeBinding(el, key.slice(5), value, setProperty);
2103
2103
  continue;
2104
2104
  }
2105
- const propAlias = !isSVG && isDev2 ? _chunk6SOPF5LZcjs.getPropAlias.call(void 0, key, tagName) : void 0;
2106
- const isProperty = !isSVG ? isDev2 ? _chunk6SOPF5LZcjs.Properties.has(key) : key in el : false;
2105
+ const propAlias = !isSVG && isDev2 ? _chunkZR435MDCcjs.getPropAlias.call(void 0, key, tagName) : void 0;
2106
+ const isProperty = !isSVG ? isDev2 ? _chunkZR435MDCcjs.Properties.has(key) : key in el : false;
2107
2107
  if (propAlias || isProperty || isCE && !isSVG) {
2108
2108
  const propName = propAlias || key;
2109
2109
  if (isCE && !isProperty && !propAlias) {
@@ -2120,7 +2120,7 @@ function applyProps(el, props, isSVG = false) {
2120
2120
  }
2121
2121
  if (isSVG && key.indexOf(":") > -1) {
2122
2122
  const [prefix, name] = key.split(":");
2123
- const ns = _chunk6SOPF5LZcjs.SVGNamespace[prefix];
2123
+ const ns = _chunkZR435MDCcjs.SVGNamespace[prefix];
2124
2124
  if (ns) {
2125
2125
  createAttributeBinding(
2126
2126
  el,
@@ -2256,4 +2256,4 @@ function eventNameFromProp(key) {
2256
2256
 
2257
2257
 
2258
2258
  exports.withHydrationRange = withHydrationRange; exports.isHydratingActive = isHydratingActive; exports.Fragment = Fragment; exports.toNodeArray = toNodeArray; exports.insertNodesBefore = insertNodesBefore; exports.removeNodes = removeNodes; exports.getSlotEnd = getSlotEnd; exports.resolvePath = resolvePath; exports.startTransition = startTransition; exports.useTransition = useTransition; exports.useDeferredValue = useDeferredValue; exports.batch = batch2; exports.untrack = untrack2; exports.isReactive = isReactive; exports.unwrap = unwrap; exports.callEventHandler = callEventHandler; exports.createTextBinding = createTextBinding; exports.bindText = bindText; exports.createAttributeBinding = createAttributeBinding; exports.bindAttribute = bindAttribute; exports.bindProperty = bindProperty; exports.createStyleBinding = createStyleBinding; exports.bindStyle = bindStyle; exports.createClassBinding = createClassBinding; exports.bindClass = bindClass; exports.classList = classList; exports.insert = insert; exports.insertBetween = insertBetween; exports.createChildBinding = createChildBinding; exports.delegateEvents = delegateEvents; exports.clearDelegatedEvents = clearDelegatedEvents; exports.addEventListener = addEventListener; exports.bindEvent = bindEvent; exports.bindRef = bindRef; exports.spread = spread; exports.assign = assign; exports.createConditional = createConditional; exports.createShow = createShow; exports.createPortal = createPortal; exports.__fictProp = __fictProp; exports.createPropsProxy = createPropsProxy; exports.__fictPropsRest = __fictPropsRest; exports.mergeProps = mergeProps; exports.keyed = keyed; exports.prop = prop; exports.render = render; exports.hydrateComponent = hydrateComponent; exports.createElement = createElement; exports.template = template;
2259
- //# sourceMappingURL=chunk-TKWN42TA.cjs.map
2259
+ //# sourceMappingURL=chunk-Z6M3HKLG.cjs.map