@fictjs/runtime 0.9.0 → 0.10.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.
- package/dist/advanced.cjs +9 -9
- package/dist/advanced.d.cts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +4 -4
- package/dist/{binding-BWchH3Kp.d.ts → binding-DUEukRxl.d.cts} +4 -2
- package/dist/{binding-BWchH3Kp.d.cts → binding-DqxS9ZQf.d.ts} +4 -2
- package/dist/{chunk-JVYH76ZX.js → chunk-2JRPPCG7.js} +3 -3
- package/dist/{chunk-FVX77557.js → chunk-DKA2I6ET.js} +3 -3
- package/dist/{chunk-UBFDB6OL.cjs → chunk-EQ5E4WOV.cjs} +216 -50
- package/dist/chunk-EQ5E4WOV.cjs.map +1 -0
- package/dist/{chunk-DXG3TARY.js → chunk-F4RVNXOL.js} +196 -30
- package/dist/chunk-F4RVNXOL.js.map +1 -0
- package/dist/{chunk-OAM7HABA.cjs → chunk-I4GKKAAY.cjs} +226 -182
- package/dist/chunk-I4GKKAAY.cjs.map +1 -0
- package/dist/{chunk-PG4QX2I2.cjs → chunk-K3DH5SD5.cjs} +17 -17
- package/dist/{chunk-PG4QX2I2.cjs.map → chunk-K3DH5SD5.cjs.map} +1 -1
- package/dist/{chunk-N6ODUM2Y.js → chunk-P4TZLFV6.js} +3 -3
- package/dist/{chunk-T2LNV5Q5.js → chunk-R6FINS25.js} +50 -6
- package/dist/chunk-R6FINS25.js.map +1 -0
- package/dist/{chunk-LBE6DC3V.cjs → chunk-SZLJCQFZ.cjs} +40 -40
- package/dist/{chunk-LBE6DC3V.cjs.map → chunk-SZLJCQFZ.cjs.map} +1 -1
- package/dist/{chunk-PD6IQY2Y.cjs → chunk-V7BC64W2.cjs} +8 -8
- package/dist/{chunk-PD6IQY2Y.cjs.map → chunk-V7BC64W2.cjs.map} +1 -1
- package/dist/{devtools-5AipK9CX.d.cts → devtools-C4Hgfa-S.d.ts} +14 -2
- package/dist/{devtools-BDp76luf.d.ts → devtools-CMxlJUTx.d.cts} +14 -2
- package/dist/index.cjs +42 -42
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.dev.js +230 -25
- package/dist/index.dev.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/internal-list.cjs +4 -4
- package/dist/internal-list.d.cts +2 -2
- package/dist/internal-list.d.ts +2 -2
- package/dist/internal-list.js +3 -3
- package/dist/internal.cjs +5 -5
- package/dist/internal.d.cts +6 -6
- package/dist/internal.d.ts +6 -6
- package/dist/internal.js +4 -4
- package/dist/jsx-dev-runtime.d.cts +671 -0
- package/dist/jsx-dev-runtime.d.ts +671 -0
- package/dist/jsx-runtime.d.cts +671 -0
- package/dist/jsx-runtime.d.ts +671 -0
- package/dist/{list-DL5DOFcO.d.ts → list-BBzsJhrm.d.ts} +1 -1
- package/dist/{list-hP7hQ9Vk.d.cts → list-_NJCcjl1.d.cts} +1 -1
- package/dist/loader.cjs +24 -20
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.d.cts +2 -2
- package/dist/loader.d.ts +2 -2
- package/dist/loader.js +7 -3
- package/dist/loader.js.map +1 -1
- package/dist/{props-BpZz0AOq.d.cts → props--zJ4ebbT.d.cts} +2 -2
- package/dist/{props-CjLH0JE-.d.ts → props-BAGR7j-j.d.ts} +2 -2
- package/dist/{resume-BJ4oHLi_.d.cts → resume-C5IKAIdh.d.ts} +2 -2
- package/dist/{resume-CuyJWXP_.d.ts → resume-DPZxmA95.d.cts} +2 -2
- package/dist/{scope-jPt5DHRT.d.ts → scope-CuImnvh1.d.ts} +1 -1
- package/dist/{scope-BJCtq8hJ.d.cts → scope-Dq5hOu7c.d.cts} +1 -1
- package/dist/{signal-C4ISF17w.d.cts → signal-Z4KkDk9h.d.cts} +12 -1
- package/dist/{signal-C4ISF17w.d.ts → signal-Z4KkDk9h.d.ts} +12 -1
- package/package.json +2 -2
- package/src/devtools.ts +19 -2
- package/src/dom.ts +58 -4
- package/src/effect.ts +5 -5
- package/src/hooks.ts +13 -5
- package/src/lifecycle.ts +41 -3
- package/src/loader.ts +10 -4
- package/src/signal.ts +191 -18
- package/src/transition.ts +9 -3
- package/dist/chunk-DXG3TARY.js.map +0 -1
- package/dist/chunk-OAM7HABA.cjs.map +0 -1
- package/dist/chunk-T2LNV5Q5.js.map +0 -1
- package/dist/chunk-UBFDB6OL.cjs.map +0 -1
- /package/dist/{chunk-JVYH76ZX.js.map → chunk-2JRPPCG7.js.map} +0 -0
- /package/dist/{chunk-FVX77557.js.map → chunk-DKA2I6ET.js.map} +0 -0
- /package/dist/{chunk-N6ODUM2Y.js.map → chunk-P4TZLFV6.js.map} +0 -0
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkEQ5E4WOVcjs = require('./chunk-EQ5E4WOV.cjs');
|
|
44
44
|
|
|
45
45
|
// src/transition.ts
|
|
46
46
|
function startTransition(fn) {
|
|
47
|
-
const prev =
|
|
47
|
+
const prev = _chunkEQ5E4WOVcjs.setTransitionContext.call(void 0, true);
|
|
48
48
|
try {
|
|
49
49
|
fn();
|
|
50
50
|
} finally {
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
_chunkEQ5E4WOVcjs.setTransitionContext.call(void 0, prev);
|
|
52
|
+
_chunkEQ5E4WOVcjs.scheduleFlush.call(void 0, );
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
function useTransition() {
|
|
56
|
-
const pending =
|
|
56
|
+
const pending = _chunkEQ5E4WOVcjs.signal.call(void 0, false);
|
|
57
57
|
let pendingCount = 0;
|
|
58
58
|
const beginPending = () => {
|
|
59
59
|
pendingCount += 1;
|
|
@@ -86,7 +86,11 @@ function useTransition() {
|
|
|
86
86
|
throw thrown;
|
|
87
87
|
}
|
|
88
88
|
if (result && typeof result.then === "function") {
|
|
89
|
-
Promise.resolve(result).
|
|
89
|
+
void Promise.resolve(result).catch((error) => {
|
|
90
|
+
if (typeof console !== "undefined" && typeof console.error === "function") {
|
|
91
|
+
console.error("[fict/transition] Async transition failed.", error);
|
|
92
|
+
}
|
|
93
|
+
}).finally(() => {
|
|
90
94
|
endPending();
|
|
91
95
|
});
|
|
92
96
|
return;
|
|
@@ -100,10 +104,10 @@ function useTransition() {
|
|
|
100
104
|
return [() => pending(), start];
|
|
101
105
|
}
|
|
102
106
|
function useDeferredValue(getValue) {
|
|
103
|
-
const deferredValue =
|
|
104
|
-
|
|
107
|
+
const deferredValue = _chunkEQ5E4WOVcjs.signal.call(void 0, getValue());
|
|
108
|
+
_chunkEQ5E4WOVcjs.createEffect.call(void 0, () => {
|
|
105
109
|
const newValue = getValue();
|
|
106
|
-
const currentDeferred =
|
|
110
|
+
const currentDeferred = _chunkEQ5E4WOVcjs.untrack.call(void 0, () => deferredValue());
|
|
107
111
|
if (currentDeferred !== newValue) {
|
|
108
112
|
startTransition(() => {
|
|
109
113
|
deferredValue(newValue);
|
|
@@ -115,10 +119,10 @@ function useDeferredValue(getValue) {
|
|
|
115
119
|
|
|
116
120
|
// src/scheduler.ts
|
|
117
121
|
function batch2(fn) {
|
|
118
|
-
return
|
|
122
|
+
return _chunkEQ5E4WOVcjs.batch.call(void 0, fn);
|
|
119
123
|
}
|
|
120
124
|
function untrack2(fn) {
|
|
121
|
-
return
|
|
125
|
+
return _chunkEQ5E4WOVcjs.untrack.call(void 0, fn);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
// src/jsx.ts
|
|
@@ -421,14 +425,14 @@ function isExplicitReactiveFn(value) {
|
|
|
421
425
|
function isReactive(value) {
|
|
422
426
|
if (typeof value !== "function") return false;
|
|
423
427
|
if (isNonReactiveFn(value)) return false;
|
|
424
|
-
if (
|
|
428
|
+
if (_chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value)) return true;
|
|
425
429
|
if (isExplicitReactiveFn(value)) return true;
|
|
426
|
-
if (
|
|
430
|
+
if (_chunkEQ5E4WOVcjs.isEffect.call(void 0, value) || _chunkEQ5E4WOVcjs.isEffectScope.call(void 0, value)) return false;
|
|
427
431
|
return value.length === 0;
|
|
428
432
|
}
|
|
429
433
|
function isStrictlyReactive(value) {
|
|
430
434
|
if (typeof value !== "function") return false;
|
|
431
|
-
return
|
|
435
|
+
return _chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value) || isPropGetterFn(value) || isExplicitReactiveFn(value);
|
|
432
436
|
}
|
|
433
437
|
var PROP_GETTER_MARKER = Symbol.for("fict:prop-getter");
|
|
434
438
|
function isPropGetterFn(value) {
|
|
@@ -491,7 +495,7 @@ function callEventHandler(handler, event, node, data) {
|
|
|
491
495
|
function createTextBinding(value) {
|
|
492
496
|
const text = document.createTextNode("");
|
|
493
497
|
if (isReactive(value)) {
|
|
494
|
-
|
|
498
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
495
499
|
setText(text, value());
|
|
496
500
|
});
|
|
497
501
|
} else {
|
|
@@ -500,7 +504,7 @@ function createTextBinding(value) {
|
|
|
500
504
|
return text;
|
|
501
505
|
}
|
|
502
506
|
function bindText(textNode, getValue) {
|
|
503
|
-
return
|
|
507
|
+
return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setText(textNode, getValue()));
|
|
504
508
|
}
|
|
505
509
|
function setText(textNode, value) {
|
|
506
510
|
const next = formatTextValue(value);
|
|
@@ -520,7 +524,7 @@ function formatTextValue(value) {
|
|
|
520
524
|
}
|
|
521
525
|
function createAttributeBinding(el, key, value, setter) {
|
|
522
526
|
if (isReactive(value)) {
|
|
523
|
-
|
|
527
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
524
528
|
setter(el, key, value());
|
|
525
529
|
});
|
|
526
530
|
} else {
|
|
@@ -528,7 +532,7 @@ function createAttributeBinding(el, key, value, setter) {
|
|
|
528
532
|
}
|
|
529
533
|
}
|
|
530
534
|
function bindAttribute(el, key, getValue) {
|
|
531
|
-
return
|
|
535
|
+
return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setAttr(el, key, getValue()));
|
|
532
536
|
}
|
|
533
537
|
function setAttr(el, key, value) {
|
|
534
538
|
const cacheTarget = el;
|
|
@@ -544,7 +548,7 @@ function setAttr(el, key, value) {
|
|
|
544
548
|
}
|
|
545
549
|
}
|
|
546
550
|
function bindProperty(el, key, getValue) {
|
|
547
|
-
return
|
|
551
|
+
return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setProp(el, key, getValue()));
|
|
548
552
|
}
|
|
549
553
|
function setProp(el, key, value) {
|
|
550
554
|
const cacheTarget = el;
|
|
@@ -561,7 +565,7 @@ function setProp(el, key, value) {
|
|
|
561
565
|
}
|
|
562
566
|
function createStyleBinding(el, value) {
|
|
563
567
|
if (isReactive(value)) {
|
|
564
|
-
|
|
568
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
565
569
|
setStyle(el, value());
|
|
566
570
|
});
|
|
567
571
|
} else {
|
|
@@ -569,7 +573,7 @@ function createStyleBinding(el, value) {
|
|
|
569
573
|
}
|
|
570
574
|
}
|
|
571
575
|
function bindStyle(el, getValue) {
|
|
572
|
-
return
|
|
576
|
+
return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setStyle(el, getValue()));
|
|
573
577
|
}
|
|
574
578
|
function setStyle(el, value) {
|
|
575
579
|
const target = el;
|
|
@@ -624,7 +628,7 @@ function applyStyle(el, value, prev) {
|
|
|
624
628
|
}
|
|
625
629
|
}
|
|
626
630
|
}
|
|
627
|
-
var isUnitlessStyleProperty = isDev ? (prop2) =>
|
|
631
|
+
var isUnitlessStyleProperty = isDev ? (prop2) => _chunkEQ5E4WOVcjs.UnitlessStyles.has(prop2) : (prop2) => prop2 === "opacity" || prop2 === "zIndex";
|
|
628
632
|
function normalizeStyleProperty(prop2) {
|
|
629
633
|
const cached = STYLE_PROP_CACHE.get(prop2);
|
|
630
634
|
if (cached) return cached;
|
|
@@ -634,7 +638,7 @@ function normalizeStyleProperty(prop2) {
|
|
|
634
638
|
}
|
|
635
639
|
function createClassBinding(el, value) {
|
|
636
640
|
if (isReactive(value)) {
|
|
637
|
-
|
|
641
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0,
|
|
638
642
|
() => setClass(el, value())
|
|
639
643
|
);
|
|
640
644
|
} else {
|
|
@@ -642,7 +646,7 @@ function createClassBinding(el, value) {
|
|
|
642
646
|
}
|
|
643
647
|
}
|
|
644
648
|
function bindClass(el, getValue) {
|
|
645
|
-
return
|
|
649
|
+
return _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => setClass(el, getValue()));
|
|
646
650
|
}
|
|
647
651
|
function setClass(el, value) {
|
|
648
652
|
const cache = el;
|
|
@@ -703,7 +707,7 @@ function classList(node, value, prev = {}) {
|
|
|
703
707
|
return applyClass(node, value, prev);
|
|
704
708
|
}
|
|
705
709
|
function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
706
|
-
const hostRoot =
|
|
710
|
+
const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
707
711
|
let marker;
|
|
708
712
|
let ownsMarker = false;
|
|
709
713
|
let createFn = createElementFn;
|
|
@@ -742,13 +746,13 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
|
742
746
|
insertNodesBefore(parentNode, [currentText], marker);
|
|
743
747
|
currentNodes = [currentText];
|
|
744
748
|
};
|
|
745
|
-
const dispose =
|
|
749
|
+
const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
746
750
|
const value = getValue();
|
|
747
751
|
const parentNode = marker.parentNode;
|
|
748
752
|
const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
749
753
|
if (isPrimitive) {
|
|
750
754
|
if (currentRoot) {
|
|
751
|
-
|
|
755
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
752
756
|
currentRoot = null;
|
|
753
757
|
}
|
|
754
758
|
if (!parentNode) {
|
|
@@ -761,12 +765,12 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
|
761
765
|
return;
|
|
762
766
|
}
|
|
763
767
|
if (currentRoot) {
|
|
764
|
-
|
|
768
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
765
769
|
currentRoot = null;
|
|
766
770
|
}
|
|
767
771
|
clearCurrentNodes();
|
|
768
|
-
const root =
|
|
769
|
-
const prev =
|
|
772
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
773
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
770
774
|
let nodes = [];
|
|
771
775
|
let handledError = false;
|
|
772
776
|
try {
|
|
@@ -793,28 +797,28 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
|
793
797
|
nodes = toNodeArray(newNode);
|
|
794
798
|
if (root.suspended) {
|
|
795
799
|
handledError = true;
|
|
796
|
-
|
|
800
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
797
801
|
return;
|
|
798
802
|
}
|
|
799
803
|
if (parentNode) {
|
|
800
804
|
insertNodesBefore(parentNode, nodes, marker);
|
|
801
805
|
}
|
|
802
806
|
} catch (err) {
|
|
803
|
-
if (
|
|
807
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
|
|
804
808
|
handledError = true;
|
|
805
|
-
|
|
809
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
806
810
|
return;
|
|
807
811
|
}
|
|
808
|
-
if (
|
|
812
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
|
|
809
813
|
handledError = true;
|
|
810
|
-
|
|
814
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
811
815
|
return;
|
|
812
816
|
}
|
|
813
817
|
throw err;
|
|
814
818
|
} finally {
|
|
815
|
-
|
|
819
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
816
820
|
if (!handledError) {
|
|
817
|
-
|
|
821
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
818
822
|
}
|
|
819
823
|
}
|
|
820
824
|
currentRoot = root;
|
|
@@ -823,7 +827,7 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
|
823
827
|
return () => {
|
|
824
828
|
dispose();
|
|
825
829
|
if (currentRoot) {
|
|
826
|
-
|
|
830
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
827
831
|
currentRoot = null;
|
|
828
832
|
}
|
|
829
833
|
clearCurrentNodes();
|
|
@@ -833,11 +837,11 @@ function insert(parent, getValue, markerOrCreateElement, createElementFn) {
|
|
|
833
837
|
};
|
|
834
838
|
}
|
|
835
839
|
function insertBetween(start, end, getValue, createElementFn) {
|
|
836
|
-
const hostRoot =
|
|
840
|
+
const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
837
841
|
let currentNodes = [];
|
|
838
842
|
let currentText = null;
|
|
839
843
|
let currentRoot = null;
|
|
840
|
-
let initialHydrating =
|
|
844
|
+
let initialHydrating = _chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, );
|
|
841
845
|
const collectBetween = () => {
|
|
842
846
|
const nodes = [];
|
|
843
847
|
let cursor = start.nextSibling;
|
|
@@ -873,7 +877,7 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
873
877
|
currentNodes = [currentText];
|
|
874
878
|
}
|
|
875
879
|
};
|
|
876
|
-
const dispose =
|
|
880
|
+
const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
877
881
|
const value = getValue();
|
|
878
882
|
const parentNode = start.parentNode;
|
|
879
883
|
const isPrimitive = value == null || value === false || typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
@@ -887,7 +891,7 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
887
891
|
}
|
|
888
892
|
}
|
|
889
893
|
if (currentRoot) {
|
|
890
|
-
|
|
894
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
891
895
|
currentRoot = null;
|
|
892
896
|
}
|
|
893
897
|
if (!parentNode) {
|
|
@@ -901,12 +905,12 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
901
905
|
return;
|
|
902
906
|
}
|
|
903
907
|
if (currentRoot) {
|
|
904
|
-
|
|
908
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
905
909
|
currentRoot = null;
|
|
906
910
|
}
|
|
907
911
|
clearCurrentNodes();
|
|
908
|
-
const root =
|
|
909
|
-
const prev =
|
|
912
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
913
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
910
914
|
let nodes = [];
|
|
911
915
|
let handledError = false;
|
|
912
916
|
try {
|
|
@@ -940,28 +944,28 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
940
944
|
nodes = toNodeArray(newNode);
|
|
941
945
|
if (root.suspended) {
|
|
942
946
|
handledError = true;
|
|
943
|
-
|
|
947
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
944
948
|
return;
|
|
945
949
|
}
|
|
946
950
|
if (parentNode && !initialHydrating) {
|
|
947
951
|
insertNodesBefore(parentNode, nodes, end);
|
|
948
952
|
}
|
|
949
953
|
} catch (err) {
|
|
950
|
-
if (
|
|
954
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
|
|
951
955
|
handledError = true;
|
|
952
|
-
|
|
956
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
953
957
|
return;
|
|
954
958
|
}
|
|
955
|
-
if (
|
|
959
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
|
|
956
960
|
handledError = true;
|
|
957
|
-
|
|
961
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
958
962
|
return;
|
|
959
963
|
}
|
|
960
964
|
throw err;
|
|
961
965
|
} finally {
|
|
962
|
-
|
|
966
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
963
967
|
if (!handledError) {
|
|
964
|
-
|
|
968
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
965
969
|
}
|
|
966
970
|
}
|
|
967
971
|
currentRoot = root;
|
|
@@ -971,7 +975,7 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
971
975
|
return () => {
|
|
972
976
|
dispose();
|
|
973
977
|
if (currentRoot) {
|
|
974
|
-
|
|
978
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
975
979
|
currentRoot = null;
|
|
976
980
|
}
|
|
977
981
|
clearCurrentNodes();
|
|
@@ -980,10 +984,10 @@ function insertBetween(start, end, getValue, createElementFn) {
|
|
|
980
984
|
function createChildBinding(parent, getValue, createElementFn) {
|
|
981
985
|
const marker = document.createComment("fict:child");
|
|
982
986
|
parent.appendChild(marker);
|
|
983
|
-
const hostRoot =
|
|
984
|
-
const dispose =
|
|
985
|
-
const root =
|
|
986
|
-
const prev =
|
|
987
|
+
const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
988
|
+
const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
989
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
990
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
987
991
|
let nodes = [];
|
|
988
992
|
let handledError = false;
|
|
989
993
|
try {
|
|
@@ -998,25 +1002,25 @@ function createChildBinding(parent, getValue, createElementFn) {
|
|
|
998
1002
|
insertNodesBefore(parentNode, nodes, marker);
|
|
999
1003
|
}
|
|
1000
1004
|
return () => {
|
|
1001
|
-
|
|
1005
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1002
1006
|
removeNodes(nodes);
|
|
1003
1007
|
};
|
|
1004
1008
|
} catch (err) {
|
|
1005
|
-
if (
|
|
1009
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
|
|
1006
1010
|
handledError = true;
|
|
1007
|
-
|
|
1011
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1008
1012
|
return;
|
|
1009
1013
|
}
|
|
1010
|
-
if (
|
|
1014
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
|
|
1011
1015
|
handledError = true;
|
|
1012
|
-
|
|
1016
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1013
1017
|
return;
|
|
1014
1018
|
}
|
|
1015
1019
|
throw err;
|
|
1016
1020
|
} finally {
|
|
1017
|
-
|
|
1021
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
1018
1022
|
if (!handledError) {
|
|
1019
|
-
|
|
1023
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
1020
1024
|
}
|
|
1021
1025
|
}
|
|
1022
1026
|
});
|
|
@@ -1029,7 +1033,7 @@ function createChildBinding(parent, getValue, createElementFn) {
|
|
|
1029
1033
|
};
|
|
1030
1034
|
}
|
|
1031
1035
|
function delegateEvents(eventNames, doc = window.document) {
|
|
1032
|
-
const e = doc[
|
|
1036
|
+
const e = doc[_chunkEQ5E4WOVcjs.$$EVENTS] || (doc[_chunkEQ5E4WOVcjs.$$EVENTS] = /* @__PURE__ */ new Set());
|
|
1033
1037
|
for (let i = 0, l = eventNames.length; i < l; i++) {
|
|
1034
1038
|
const name = eventNames[i];
|
|
1035
1039
|
if (!e.has(name)) {
|
|
@@ -1039,12 +1043,12 @@ function delegateEvents(eventNames, doc = window.document) {
|
|
|
1039
1043
|
}
|
|
1040
1044
|
}
|
|
1041
1045
|
function clearDelegatedEvents(doc = window.document) {
|
|
1042
|
-
const e = doc[
|
|
1046
|
+
const e = doc[_chunkEQ5E4WOVcjs.$$EVENTS];
|
|
1043
1047
|
if (e) {
|
|
1044
1048
|
for (const name of e.keys()) {
|
|
1045
1049
|
doc.removeEventListener(name, globalEventHandler);
|
|
1046
1050
|
}
|
|
1047
|
-
delete doc[
|
|
1051
|
+
delete doc[_chunkEQ5E4WOVcjs.$$EVENTS];
|
|
1048
1052
|
}
|
|
1049
1053
|
}
|
|
1050
1054
|
function globalEventHandler(e) {
|
|
@@ -1157,8 +1161,8 @@ function addEventListener(node, name, handler, delegate) {
|
|
|
1157
1161
|
function bindEvent(el, eventName, handler, options) {
|
|
1158
1162
|
if (handler == null) return () => {
|
|
1159
1163
|
};
|
|
1160
|
-
const rootRef =
|
|
1161
|
-
const shouldDelegate = options == null &&
|
|
1164
|
+
const rootRef = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
1165
|
+
const shouldDelegate = options == null && _chunkEQ5E4WOVcjs.DelegatedEvents.has(eventName);
|
|
1162
1166
|
if (shouldDelegate) {
|
|
1163
1167
|
const key = `$$${eventName}`;
|
|
1164
1168
|
delegateEvents([eventName]);
|
|
@@ -1168,7 +1172,7 @@ function bindEvent(el, eventName, handler, options) {
|
|
|
1168
1172
|
const fn = resolveHandler();
|
|
1169
1173
|
callEventHandler(fn, args[0], el);
|
|
1170
1174
|
} catch (err) {
|
|
1171
|
-
if (!
|
|
1175
|
+
if (!_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
|
|
1172
1176
|
throw err;
|
|
1173
1177
|
}
|
|
1174
1178
|
}
|
|
@@ -1183,7 +1187,7 @@ function bindEvent(el, eventName, handler, options) {
|
|
|
1183
1187
|
const resolved = getHandler();
|
|
1184
1188
|
callEventHandler(resolved, event, el);
|
|
1185
1189
|
} catch (err) {
|
|
1186
|
-
if (
|
|
1190
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "event", eventName }, rootRef)) {
|
|
1187
1191
|
return;
|
|
1188
1192
|
}
|
|
1189
1193
|
throw err;
|
|
@@ -1191,7 +1195,7 @@ function bindEvent(el, eventName, handler, options) {
|
|
|
1191
1195
|
};
|
|
1192
1196
|
el.addEventListener(eventName, wrapped, options);
|
|
1193
1197
|
const cleanup = () => el.removeEventListener(eventName, wrapped, options);
|
|
1194
|
-
|
|
1198
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup);
|
|
1195
1199
|
return cleanup;
|
|
1196
1200
|
}
|
|
1197
1201
|
function bindRef(el, ref) {
|
|
@@ -1211,11 +1215,11 @@ function bindRef(el, ref) {
|
|
|
1211
1215
|
const initialRef = getRef();
|
|
1212
1216
|
applyRef2(initialRef);
|
|
1213
1217
|
if (isReactive(ref)) {
|
|
1214
|
-
const cleanup2 =
|
|
1218
|
+
const cleanup2 = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1215
1219
|
const currentRef = getRef();
|
|
1216
1220
|
applyRef2(currentRef);
|
|
1217
1221
|
});
|
|
1218
|
-
|
|
1222
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup2);
|
|
1219
1223
|
const nullifyCleanup = () => {
|
|
1220
1224
|
const currentRef = getRef();
|
|
1221
1225
|
if (currentRef && typeof currentRef === "object" && "current" in currentRef) {
|
|
@@ -1223,7 +1227,7 @@ function bindRef(el, ref) {
|
|
|
1223
1227
|
currentRef.current = null;
|
|
1224
1228
|
}
|
|
1225
1229
|
};
|
|
1226
|
-
|
|
1230
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, nullifyCleanup);
|
|
1227
1231
|
return () => {
|
|
1228
1232
|
cleanup2();
|
|
1229
1233
|
nullifyCleanup();
|
|
@@ -1236,23 +1240,23 @@ function bindRef(el, ref) {
|
|
|
1236
1240
|
refValue.current = null;
|
|
1237
1241
|
}
|
|
1238
1242
|
};
|
|
1239
|
-
|
|
1243
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, cleanup);
|
|
1240
1244
|
return cleanup;
|
|
1241
1245
|
}
|
|
1242
1246
|
function spread(node, props = {}, isSVG = false, skipChildren = false) {
|
|
1243
1247
|
const prevProps = {};
|
|
1244
1248
|
if (!skipChildren && "children" in props) {
|
|
1245
|
-
|
|
1249
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1246
1250
|
prevProps.children = props.children;
|
|
1247
1251
|
});
|
|
1248
1252
|
}
|
|
1249
|
-
|
|
1253
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1250
1254
|
if (typeof props.ref === "function") {
|
|
1251
1255
|
;
|
|
1252
1256
|
props.ref(node);
|
|
1253
1257
|
}
|
|
1254
1258
|
});
|
|
1255
|
-
|
|
1259
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1256
1260
|
assign(node, props, isSVG, true, prevProps, true);
|
|
1257
1261
|
});
|
|
1258
1262
|
return prevProps;
|
|
@@ -1310,7 +1314,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
|
|
|
1310
1314
|
}
|
|
1311
1315
|
if (prop2.slice(0, 2) === "on") {
|
|
1312
1316
|
const eventName = prop2.slice(2).toLowerCase();
|
|
1313
|
-
const shouldDelegate =
|
|
1317
|
+
const shouldDelegate = _chunkEQ5E4WOVcjs.DelegatedEvents.has(eventName);
|
|
1314
1318
|
if (!shouldDelegate && prev) {
|
|
1315
1319
|
const handler = Array.isArray(prev) ? prev[0] : prev;
|
|
1316
1320
|
node.removeEventListener(eventName, handler);
|
|
@@ -1343,9 +1347,9 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
|
|
|
1343
1347
|
}
|
|
1344
1348
|
const isCE = node.nodeName.includes("-") || "is" in props;
|
|
1345
1349
|
if (!isSVG) {
|
|
1346
|
-
const propAlias = isDev ?
|
|
1347
|
-
const isProperty = isDev ?
|
|
1348
|
-
const isChildProp = isDev ?
|
|
1350
|
+
const propAlias = isDev ? _chunkEQ5E4WOVcjs.getPropAlias.call(void 0, prop2, node.tagName) : void 0;
|
|
1351
|
+
const isProperty = isDev ? _chunkEQ5E4WOVcjs.Properties.has(prop2) : prop2 in node;
|
|
1352
|
+
const isChildProp = isDev ? _chunkEQ5E4WOVcjs.ChildProperties.has(prop2) : prop2 === "innerHTML" || prop2 === "textContent" || prop2 === "innerText" || prop2 === "children";
|
|
1349
1353
|
if (propAlias || isProperty || isChildProp || isCE) {
|
|
1350
1354
|
const propName = propAlias || prop2;
|
|
1351
1355
|
if (isCE && !isProperty && !isChildProp && !propAlias) {
|
|
@@ -1360,7 +1364,7 @@ function assignProp(node, prop2, value, prev, isSVG, skipRef, props) {
|
|
|
1360
1364
|
}
|
|
1361
1365
|
if (isSVG && prop2.indexOf(":") > -1) {
|
|
1362
1366
|
const [prefix, name] = prop2.split(":");
|
|
1363
|
-
const ns =
|
|
1367
|
+
const ns = _chunkEQ5E4WOVcjs.SVGNamespace[prefix];
|
|
1364
1368
|
if (ns) {
|
|
1365
1369
|
if (value == null) node.removeAttributeNS(ns, name);
|
|
1366
1370
|
else node.setAttributeNS(ns, name, String(value));
|
|
@@ -1385,12 +1389,12 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1385
1389
|
;
|
|
1386
1390
|
fragment.append(startMarker, endMarker);
|
|
1387
1391
|
}
|
|
1388
|
-
const hostRoot =
|
|
1392
|
+
const hostRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
1389
1393
|
let currentNodes = [];
|
|
1390
1394
|
let currentRoot = null;
|
|
1391
1395
|
let lastCondition = void 0;
|
|
1392
1396
|
let pendingRender = false;
|
|
1393
|
-
let initialHydrating =
|
|
1397
|
+
let initialHydrating = _chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, );
|
|
1394
1398
|
const collectBetween = () => {
|
|
1395
1399
|
const nodes = [];
|
|
1396
1400
|
let cursor = startMarker.nextSibling;
|
|
@@ -1400,7 +1404,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1400
1404
|
}
|
|
1401
1405
|
return nodes;
|
|
1402
1406
|
};
|
|
1403
|
-
const conditionMemo =
|
|
1407
|
+
const conditionMemo = _chunkEQ5E4WOVcjs.computed.call(void 0, condition);
|
|
1404
1408
|
const runConditional = () => {
|
|
1405
1409
|
const cond = conditionMemo();
|
|
1406
1410
|
const parent = startMarker.parentNode;
|
|
@@ -1417,8 +1421,8 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1417
1421
|
currentNodes = collectBetween();
|
|
1418
1422
|
return;
|
|
1419
1423
|
}
|
|
1420
|
-
const root2 =
|
|
1421
|
-
const prev2 =
|
|
1424
|
+
const root2 = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
1425
|
+
const prev2 = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root2);
|
|
1422
1426
|
let handledError2 = false;
|
|
1423
1427
|
try {
|
|
1424
1428
|
withHydrationRange(
|
|
@@ -1426,7 +1430,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1426
1430
|
endMarker,
|
|
1427
1431
|
_nullishCoalesce(parent.ownerDocument, () => ( document)),
|
|
1428
1432
|
() => {
|
|
1429
|
-
const output = trackBranchReads ? render3() :
|
|
1433
|
+
const output = trackBranchReads ? render3() : _chunkEQ5E4WOVcjs.untrack.call(void 0, render3);
|
|
1430
1434
|
if (output == null || output === false) {
|
|
1431
1435
|
return;
|
|
1432
1436
|
}
|
|
@@ -1435,21 +1439,21 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1435
1439
|
);
|
|
1436
1440
|
currentNodes = collectBetween();
|
|
1437
1441
|
} catch (err) {
|
|
1438
|
-
if (
|
|
1442
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root2)) {
|
|
1439
1443
|
handledError2 = true;
|
|
1440
|
-
|
|
1444
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root2);
|
|
1441
1445
|
return;
|
|
1442
1446
|
}
|
|
1443
|
-
if (
|
|
1447
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root2)) {
|
|
1444
1448
|
handledError2 = true;
|
|
1445
|
-
|
|
1449
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root2);
|
|
1446
1450
|
return;
|
|
1447
1451
|
}
|
|
1448
1452
|
throw err;
|
|
1449
1453
|
} finally {
|
|
1450
|
-
|
|
1454
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev2);
|
|
1451
1455
|
if (!handledError2) {
|
|
1452
|
-
|
|
1456
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root2);
|
|
1453
1457
|
currentRoot = root2;
|
|
1454
1458
|
} else {
|
|
1455
1459
|
currentRoot = null;
|
|
@@ -1470,8 +1474,8 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1470
1474
|
return;
|
|
1471
1475
|
}
|
|
1472
1476
|
let patched = false;
|
|
1473
|
-
const scratchRoot =
|
|
1474
|
-
const prevScratch =
|
|
1477
|
+
const scratchRoot = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
1478
|
+
const prevScratch = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, scratchRoot);
|
|
1475
1479
|
let handledPatchError = false;
|
|
1476
1480
|
let scratchOutput = null;
|
|
1477
1481
|
try {
|
|
@@ -1489,34 +1493,34 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1489
1493
|
}
|
|
1490
1494
|
}
|
|
1491
1495
|
} catch (err) {
|
|
1492
|
-
if (
|
|
1496
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, scratchRoot)) {
|
|
1493
1497
|
handledPatchError = true;
|
|
1494
1498
|
return;
|
|
1495
1499
|
}
|
|
1496
|
-
if (
|
|
1500
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
|
|
1497
1501
|
handledPatchError = true;
|
|
1498
1502
|
return;
|
|
1499
1503
|
}
|
|
1500
1504
|
throw err;
|
|
1501
1505
|
} finally {
|
|
1502
|
-
|
|
1506
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prevScratch);
|
|
1503
1507
|
}
|
|
1504
1508
|
if (handledPatchError) {
|
|
1505
|
-
|
|
1509
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
|
|
1506
1510
|
return;
|
|
1507
1511
|
}
|
|
1508
1512
|
if (patched) {
|
|
1509
|
-
|
|
1513
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
|
|
1510
1514
|
return;
|
|
1511
1515
|
}
|
|
1512
1516
|
lastCondition = cond;
|
|
1513
1517
|
if (currentRoot) {
|
|
1514
|
-
|
|
1518
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
1515
1519
|
currentRoot = null;
|
|
1516
1520
|
}
|
|
1517
1521
|
removeNodes(currentNodes);
|
|
1518
1522
|
currentNodes = [];
|
|
1519
|
-
const prev2 =
|
|
1523
|
+
const prev2 = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, scratchRoot);
|
|
1520
1524
|
let handledError2 = false;
|
|
1521
1525
|
try {
|
|
1522
1526
|
if (scratchOutput == null || scratchOutput === false) {
|
|
@@ -1527,21 +1531,21 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1527
1531
|
insertNodesBefore(parent, nodes, endMarker);
|
|
1528
1532
|
currentNodes = nodes;
|
|
1529
1533
|
} catch (err) {
|
|
1530
|
-
if (
|
|
1534
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, scratchRoot)) {
|
|
1531
1535
|
handledError2 = true;
|
|
1532
|
-
|
|
1536
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
|
|
1533
1537
|
return;
|
|
1534
1538
|
}
|
|
1535
|
-
if (
|
|
1539
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, scratchRoot)) {
|
|
1536
1540
|
handledError2 = true;
|
|
1537
|
-
|
|
1541
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, scratchRoot);
|
|
1538
1542
|
return;
|
|
1539
1543
|
}
|
|
1540
1544
|
throw err;
|
|
1541
1545
|
} finally {
|
|
1542
|
-
|
|
1546
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev2);
|
|
1543
1547
|
if (!handledError2) {
|
|
1544
|
-
|
|
1548
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, scratchRoot);
|
|
1545
1549
|
currentRoot = scratchRoot;
|
|
1546
1550
|
} else {
|
|
1547
1551
|
currentRoot = null;
|
|
@@ -1551,7 +1555,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1551
1555
|
}
|
|
1552
1556
|
lastCondition = cond;
|
|
1553
1557
|
if (currentRoot) {
|
|
1554
|
-
|
|
1558
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
1555
1559
|
currentRoot = null;
|
|
1556
1560
|
}
|
|
1557
1561
|
removeNodes(currentNodes);
|
|
@@ -1560,11 +1564,11 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1560
1564
|
if (!render2) {
|
|
1561
1565
|
return;
|
|
1562
1566
|
}
|
|
1563
|
-
const root =
|
|
1564
|
-
const prev =
|
|
1567
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, hostRoot);
|
|
1568
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
1565
1569
|
let handledError = false;
|
|
1566
1570
|
try {
|
|
1567
|
-
const output = trackBranchReads ? render2() :
|
|
1571
|
+
const output = trackBranchReads ? render2() : _chunkEQ5E4WOVcjs.untrack.call(void 0, render2);
|
|
1568
1572
|
if (output == null || output === false) {
|
|
1569
1573
|
return;
|
|
1570
1574
|
}
|
|
@@ -1573,28 +1577,28 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1573
1577
|
insertNodesBefore(parent, nodes, endMarker);
|
|
1574
1578
|
currentNodes = nodes;
|
|
1575
1579
|
} catch (err) {
|
|
1576
|
-
if (
|
|
1580
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
|
|
1577
1581
|
handledError = true;
|
|
1578
|
-
|
|
1582
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1579
1583
|
return;
|
|
1580
1584
|
}
|
|
1581
|
-
if (
|
|
1585
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
|
|
1582
1586
|
handledError = true;
|
|
1583
|
-
|
|
1587
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1584
1588
|
return;
|
|
1585
1589
|
}
|
|
1586
1590
|
throw err;
|
|
1587
1591
|
} finally {
|
|
1588
|
-
|
|
1592
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
1589
1593
|
if (!handledError) {
|
|
1590
|
-
|
|
1594
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
1591
1595
|
currentRoot = root;
|
|
1592
1596
|
} else {
|
|
1593
1597
|
currentRoot = null;
|
|
1594
1598
|
}
|
|
1595
1599
|
}
|
|
1596
1600
|
};
|
|
1597
|
-
const dispose =
|
|
1601
|
+
const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, runConditional);
|
|
1598
1602
|
return {
|
|
1599
1603
|
marker: fragment,
|
|
1600
1604
|
flush: () => {
|
|
@@ -1605,7 +1609,7 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1605
1609
|
dispose: () => {
|
|
1606
1610
|
dispose();
|
|
1607
1611
|
if (currentRoot) {
|
|
1608
|
-
|
|
1612
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
1609
1613
|
}
|
|
1610
1614
|
removeNodes(currentNodes);
|
|
1611
1615
|
currentNodes = [];
|
|
@@ -1616,27 +1620,27 @@ function createConditional(condition, renderTrue, createElementFn, renderFalse,
|
|
|
1616
1620
|
}
|
|
1617
1621
|
function createShow(el, condition, displayValue) {
|
|
1618
1622
|
const originalDisplay = _nullishCoalesce(displayValue, () => ( el.style.display));
|
|
1619
|
-
|
|
1623
|
+
_chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1620
1624
|
el.style.display = condition() ? originalDisplay : "none";
|
|
1621
1625
|
});
|
|
1622
1626
|
}
|
|
1623
1627
|
function createPortal(container, render2, createElementFn) {
|
|
1624
|
-
const parentRoot =
|
|
1628
|
+
const parentRoot = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
1625
1629
|
const marker = document.createComment("fict:portal");
|
|
1626
1630
|
container.appendChild(marker);
|
|
1627
1631
|
let currentNodes = [];
|
|
1628
1632
|
let currentRoot = null;
|
|
1629
|
-
const dispose =
|
|
1633
|
+
const dispose = _chunkEQ5E4WOVcjs.createRenderEffect.call(void 0, () => {
|
|
1630
1634
|
if (currentRoot) {
|
|
1631
|
-
|
|
1635
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
1632
1636
|
currentRoot = null;
|
|
1633
1637
|
}
|
|
1634
1638
|
if (currentNodes.length > 0) {
|
|
1635
1639
|
removeNodes(currentNodes);
|
|
1636
1640
|
currentNodes = [];
|
|
1637
1641
|
}
|
|
1638
|
-
const root =
|
|
1639
|
-
const prev =
|
|
1642
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, parentRoot);
|
|
1643
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
1640
1644
|
let handledError = false;
|
|
1641
1645
|
try {
|
|
1642
1646
|
const output = render2();
|
|
@@ -1649,23 +1653,23 @@ function createPortal(container, render2, createElementFn) {
|
|
|
1649
1653
|
currentNodes = nodes;
|
|
1650
1654
|
}
|
|
1651
1655
|
} catch (err) {
|
|
1652
|
-
if (
|
|
1656
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err, root)) {
|
|
1653
1657
|
handledError = true;
|
|
1654
|
-
|
|
1658
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1655
1659
|
currentNodes = [];
|
|
1656
1660
|
return;
|
|
1657
1661
|
}
|
|
1658
|
-
if (
|
|
1662
|
+
if (_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "renderChild" }, root)) {
|
|
1659
1663
|
handledError = true;
|
|
1660
|
-
|
|
1664
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
1661
1665
|
currentNodes = [];
|
|
1662
1666
|
return;
|
|
1663
1667
|
}
|
|
1664
1668
|
throw err;
|
|
1665
1669
|
} finally {
|
|
1666
|
-
|
|
1670
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
1667
1671
|
if (!handledError) {
|
|
1668
|
-
|
|
1672
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
1669
1673
|
currentRoot = root;
|
|
1670
1674
|
} else {
|
|
1671
1675
|
currentRoot = null;
|
|
@@ -1675,7 +1679,7 @@ function createPortal(container, render2, createElementFn) {
|
|
|
1675
1679
|
const portalDispose = () => {
|
|
1676
1680
|
dispose();
|
|
1677
1681
|
if (currentRoot) {
|
|
1678
|
-
|
|
1682
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, currentRoot);
|
|
1679
1683
|
}
|
|
1680
1684
|
if (currentNodes.length > 0) {
|
|
1681
1685
|
removeNodes(currentNodes);
|
|
@@ -1839,10 +1843,10 @@ function isExplicitReactiveFn2(value) {
|
|
|
1839
1843
|
function normalizePropsFunction(value) {
|
|
1840
1844
|
if (typeof value !== "function") return value;
|
|
1841
1845
|
if (value.length !== 0) return value;
|
|
1842
|
-
if (isPropGetter(value) ||
|
|
1846
|
+
if (isPropGetter(value) || _chunkEQ5E4WOVcjs.isSignal.call(void 0, value) || _chunkEQ5E4WOVcjs.isComputed.call(void 0, value) || isExplicitReactiveFn2(value)) {
|
|
1843
1847
|
return value;
|
|
1844
1848
|
}
|
|
1845
|
-
if (
|
|
1849
|
+
if (_chunkEQ5E4WOVcjs.isEffect.call(void 0, value) || _chunkEQ5E4WOVcjs.isEffectScope.call(void 0, value) || isNonReactiveFn2(value)) return value;
|
|
1846
1850
|
return markNonReactiveFn(value);
|
|
1847
1851
|
}
|
|
1848
1852
|
function createPropsProxy(props) {
|
|
@@ -1981,7 +1985,7 @@ function prop(getter, options) {
|
|
|
1981
1985
|
const fn = getter;
|
|
1982
1986
|
const unwrap2 = _optionalChain([options, 'optionalAccess', _29 => _29.unwrap]) !== false;
|
|
1983
1987
|
return __fictProp(
|
|
1984
|
-
|
|
1988
|
+
_chunkEQ5E4WOVcjs.createMemo.call(void 0, () => {
|
|
1985
1989
|
const value = fn();
|
|
1986
1990
|
if (unwrap2 && isPropGetter(value)) {
|
|
1987
1991
|
return value();
|
|
@@ -1996,13 +2000,39 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
1996
2000
|
var MATHML_NS = "http://www.w3.org/1998/Math/MathML";
|
|
1997
2001
|
var isDev2 = typeof __DEV__ !== "undefined" ? __DEV__ : typeof process !== "undefined" && _optionalChain([process, 'access', _30 => _30.env, 'optionalAccess', _31 => _31.NODE_ENV]) !== "production";
|
|
1998
2002
|
var nextComponentId = 1;
|
|
2003
|
+
function collectComponentMountElements(node) {
|
|
2004
|
+
if (node instanceof DocumentFragment) {
|
|
2005
|
+
return Array.from(node.childNodes).filter(
|
|
2006
|
+
(child) => child instanceof HTMLElement
|
|
2007
|
+
);
|
|
2008
|
+
}
|
|
2009
|
+
if (node instanceof HTMLElement) {
|
|
2010
|
+
if (node.hasAttribute("data-fict-host")) {
|
|
2011
|
+
const children = Array.from(node.children).filter(
|
|
2012
|
+
(child) => child instanceof HTMLElement
|
|
2013
|
+
);
|
|
2014
|
+
if (children.length > 0) return children;
|
|
2015
|
+
}
|
|
2016
|
+
return [node];
|
|
2017
|
+
}
|
|
2018
|
+
return [];
|
|
2019
|
+
}
|
|
2020
|
+
function annotateComponentElements(elements, componentId, componentName) {
|
|
2021
|
+
for (const element of elements) {
|
|
2022
|
+
element.setAttribute("data-fict-component", componentName);
|
|
2023
|
+
element.setAttribute("data-fict-component-id", String(componentId));
|
|
2024
|
+
const annotated = element;
|
|
2025
|
+
annotated.__fict_component_id__ = componentId;
|
|
2026
|
+
annotated.__fict_component_name__ = componentName;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
1999
2029
|
function render(view, container) {
|
|
2000
|
-
const root =
|
|
2001
|
-
const prev =
|
|
2030
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, );
|
|
2031
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
2002
2032
|
let dom = void 0;
|
|
2003
2033
|
try {
|
|
2004
2034
|
const output = view();
|
|
2005
|
-
if (
|
|
2035
|
+
if (_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
|
|
2006
2036
|
withHydration(container, () => {
|
|
2007
2037
|
dom = createElement(output);
|
|
2008
2038
|
});
|
|
@@ -2010,35 +2040,35 @@ function render(view, container) {
|
|
|
2010
2040
|
dom = createElement(output);
|
|
2011
2041
|
}
|
|
2012
2042
|
} finally {
|
|
2013
|
-
|
|
2043
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
2014
2044
|
}
|
|
2015
|
-
if (!
|
|
2045
|
+
if (!_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
|
|
2016
2046
|
container.replaceChildren(dom);
|
|
2017
2047
|
}
|
|
2018
2048
|
container.setAttribute("data-fict-fine-grained", "1");
|
|
2019
|
-
|
|
2049
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
2020
2050
|
const teardown = () => {
|
|
2021
|
-
|
|
2051
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
2022
2052
|
container.innerHTML = "";
|
|
2023
2053
|
};
|
|
2024
2054
|
return teardown;
|
|
2025
2055
|
}
|
|
2026
2056
|
function hydrateComponent(view, container) {
|
|
2027
|
-
const root =
|
|
2028
|
-
const prev =
|
|
2029
|
-
|
|
2057
|
+
const root = _chunkEQ5E4WOVcjs.createRootContext.call(void 0, );
|
|
2058
|
+
const prev = _chunkEQ5E4WOVcjs.pushRoot.call(void 0, root);
|
|
2059
|
+
_chunkEQ5E4WOVcjs.__fictEnterHydration.call(void 0, );
|
|
2030
2060
|
try {
|
|
2031
2061
|
withHydration(container, () => {
|
|
2032
2062
|
view();
|
|
2033
2063
|
});
|
|
2034
2064
|
} finally {
|
|
2035
|
-
|
|
2036
|
-
|
|
2065
|
+
_chunkEQ5E4WOVcjs.__fictExitHydration.call(void 0, );
|
|
2066
|
+
_chunkEQ5E4WOVcjs.popRoot.call(void 0, prev);
|
|
2037
2067
|
}
|
|
2038
2068
|
container.setAttribute("data-fict-fine-grained", "1");
|
|
2039
|
-
|
|
2069
|
+
_chunkEQ5E4WOVcjs.flushOnMount.call(void 0, root);
|
|
2040
2070
|
const teardown = () => {
|
|
2041
|
-
|
|
2071
|
+
_chunkEQ5E4WOVcjs.destroyRoot.call(void 0, root);
|
|
2042
2072
|
};
|
|
2043
2073
|
return teardown;
|
|
2044
2074
|
}
|
|
@@ -2050,7 +2080,7 @@ function resolveNamespace(tagName, namespace) {
|
|
|
2050
2080
|
if (tagName === "math") return "mathml";
|
|
2051
2081
|
if (namespace === "mathml") return "mathml";
|
|
2052
2082
|
if (namespace === "svg") return "svg";
|
|
2053
|
-
if (isDev2 &&
|
|
2083
|
+
if (isDev2 && _chunkEQ5E4WOVcjs.SVGElements.has(tagName)) return "svg";
|
|
2054
2084
|
return null;
|
|
2055
2085
|
}
|
|
2056
2086
|
function createElementWithContext(node, namespace) {
|
|
@@ -2074,7 +2104,7 @@ function createElementWithContext(node, namespace) {
|
|
|
2074
2104
|
if ("marker" in node) {
|
|
2075
2105
|
const handle = node;
|
|
2076
2106
|
if (typeof handle.dispose === "function") {
|
|
2077
|
-
|
|
2107
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, handle.dispose);
|
|
2078
2108
|
}
|
|
2079
2109
|
if (typeof handle.flush === "function") {
|
|
2080
2110
|
const runFlush = () => handle.flush && handle.flush();
|
|
@@ -2125,13 +2155,14 @@ function createElementWithContext(node, namespace) {
|
|
|
2125
2155
|
}
|
|
2126
2156
|
});
|
|
2127
2157
|
const props = createPropsProxy(baseProps);
|
|
2128
|
-
const hook = isDev2 ?
|
|
2129
|
-
const
|
|
2158
|
+
const hook = isDev2 ? _chunkEQ5E4WOVcjs.getDevtoolsHook.call(void 0, ) : void 0;
|
|
2159
|
+
const componentName = vnode.type.name || "Anonymous";
|
|
2160
|
+
const parentId = hook ? _chunkEQ5E4WOVcjs.__fictGetCurrentComponentId.call(void 0, ) : void 0;
|
|
2130
2161
|
const componentId = hook ? nextComponentId++ : void 0;
|
|
2131
2162
|
if (_optionalChain([hook, 'optionalAccess', _32 => _32.registerComponent]) && componentId !== void 0) {
|
|
2132
|
-
hook.registerComponent(componentId,
|
|
2163
|
+
hook.registerComponent(componentId, componentName, parentId);
|
|
2133
2164
|
}
|
|
2134
|
-
const ctx =
|
|
2165
|
+
const ctx = _chunkEQ5E4WOVcjs.__fictPushContext.call(void 0, );
|
|
2135
2166
|
if (componentId !== void 0) {
|
|
2136
2167
|
ctx.componentId = componentId;
|
|
2137
2168
|
if (parentId !== void 0) {
|
|
@@ -2140,13 +2171,17 @@ function createElementWithContext(node, namespace) {
|
|
|
2140
2171
|
}
|
|
2141
2172
|
try {
|
|
2142
2173
|
const rendered = vnode.type(props);
|
|
2174
|
+
let mountElements;
|
|
2175
|
+
if (hook && componentId !== void 0) {
|
|
2176
|
+
_optionalChain([hook, 'access', _33 => _33.componentRender, 'optionalCall', _34 => _34(componentId)]);
|
|
2177
|
+
}
|
|
2143
2178
|
if (hook && componentId !== void 0) {
|
|
2144
|
-
|
|
2145
|
-
_optionalChain([hook, 'access',
|
|
2179
|
+
_chunkEQ5E4WOVcjs.onMount.call(void 0, () => {
|
|
2180
|
+
_optionalChain([hook, 'access', _35 => _35.componentMount, 'optionalCall', _36 => _36(componentId, mountElements)]);
|
|
2146
2181
|
});
|
|
2147
|
-
|
|
2182
|
+
_chunkEQ5E4WOVcjs.onCleanup.call(void 0, () => _optionalChain([hook, 'access', _37 => _37.componentUnmount, 'optionalCall', _38 => _38(componentId)]));
|
|
2148
2183
|
}
|
|
2149
|
-
if (
|
|
2184
|
+
if (_chunkEQ5E4WOVcjs.__fictIsResumable.call(void 0, ) && !_chunkEQ5E4WOVcjs.__fictIsHydrating.call(void 0, )) {
|
|
2150
2185
|
const content = createElementWithContext(rendered, namespace);
|
|
2151
2186
|
const host = namespace === "svg" ? document.createElementNS(SVG_NS, "fict-host") : namespace === "mathml" ? document.createElementNS(MATHML_NS, "fict-host") : document.createElement("fict-host");
|
|
2152
2187
|
host.setAttribute("data-fict-host", "");
|
|
@@ -2155,9 +2190,9 @@ function createElementWithContext(node, namespace) {
|
|
|
2155
2190
|
host.style.display = "contents";
|
|
2156
2191
|
}
|
|
2157
2192
|
const meta = vnode.type.__fictMeta;
|
|
2158
|
-
const typeKey = (_nullishCoalesce(_optionalChain([meta, 'optionalAccess',
|
|
2159
|
-
|
|
2160
|
-
if (_optionalChain([meta, 'optionalAccess',
|
|
2193
|
+
const typeKey = (_nullishCoalesce(_optionalChain([meta, 'optionalAccess', _39 => _39.id]), () => ( vnode.type.name))) || "Anonymous";
|
|
2194
|
+
_chunkEQ5E4WOVcjs.__fictRegisterScope.call(void 0, ctx, host, typeKey, rawProps);
|
|
2195
|
+
if (_optionalChain([meta, 'optionalAccess', _40 => _40.resume])) {
|
|
2161
2196
|
host.setAttribute("data-fict-h", meta.resume);
|
|
2162
2197
|
}
|
|
2163
2198
|
if (content instanceof DocumentFragment) {
|
|
@@ -2165,22 +2200,31 @@ function createElementWithContext(node, namespace) {
|
|
|
2165
2200
|
} else {
|
|
2166
2201
|
host.appendChild(content);
|
|
2167
2202
|
}
|
|
2203
|
+
if (hook && componentId !== void 0) {
|
|
2204
|
+
mountElements = collectComponentMountElements(host);
|
|
2205
|
+
annotateComponentElements(mountElements, componentId, componentName);
|
|
2206
|
+
}
|
|
2168
2207
|
return host;
|
|
2169
2208
|
}
|
|
2170
|
-
|
|
2209
|
+
const componentRoot = createElementWithContext(rendered, namespace);
|
|
2210
|
+
if (hook && componentId !== void 0) {
|
|
2211
|
+
mountElements = collectComponentMountElements(componentRoot);
|
|
2212
|
+
annotateComponentElements(mountElements, componentId, componentName);
|
|
2213
|
+
}
|
|
2214
|
+
return componentRoot;
|
|
2171
2215
|
} catch (err) {
|
|
2172
|
-
if (
|
|
2216
|
+
if (_chunkEQ5E4WOVcjs.handleSuspend.call(void 0, err)) {
|
|
2173
2217
|
return document.createComment("fict:suspend");
|
|
2174
2218
|
}
|
|
2175
|
-
|
|
2219
|
+
_chunkEQ5E4WOVcjs.handleError.call(void 0, err, { source: "render", componentName: vnode.type.name });
|
|
2176
2220
|
throw err;
|
|
2177
2221
|
} finally {
|
|
2178
|
-
|
|
2222
|
+
_chunkEQ5E4WOVcjs.__fictPopContext.call(void 0, );
|
|
2179
2223
|
}
|
|
2180
2224
|
}
|
|
2181
2225
|
if (vnode.type === Fragment) {
|
|
2182
2226
|
const frag = document.createDocumentFragment();
|
|
2183
|
-
const children = _optionalChain([vnode, 'access',
|
|
2227
|
+
const children = _optionalChain([vnode, 'access', _41 => _41.props, 'optionalAccess', _42 => _42.children]);
|
|
2184
2228
|
appendChildren(frag, children, namespace);
|
|
2185
2229
|
return frag;
|
|
2186
2230
|
}
|
|
@@ -2190,7 +2234,7 @@ function createElementWithContext(node, namespace) {
|
|
|
2190
2234
|
applyProps(el, _nullishCoalesce(vnode.props, () => ( {})), resolvedNamespace === "svg");
|
|
2191
2235
|
appendChildren(
|
|
2192
2236
|
el,
|
|
2193
|
-
_optionalChain([vnode, 'access',
|
|
2237
|
+
_optionalChain([vnode, 'access', _43 => _43.props, 'optionalAccess', _44 => _44.children]),
|
|
2194
2238
|
tagName === "foreignObject" ? null : resolvedNamespace
|
|
2195
2239
|
);
|
|
2196
2240
|
return el;
|
|
@@ -2260,7 +2304,7 @@ function appendChildNode(parent, child, namespace) {
|
|
|
2260
2304
|
}
|
|
2261
2305
|
if (isBindingHandle(child)) {
|
|
2262
2306
|
appendChildNode(parent, child.marker, namespace);
|
|
2263
|
-
_optionalChain([child, 'access',
|
|
2307
|
+
_optionalChain([child, 'access', _45 => _45.flush, 'optionalCall', _46 => _46()]);
|
|
2264
2308
|
return;
|
|
2265
2309
|
}
|
|
2266
2310
|
if (typeof child === "function") {
|
|
@@ -2318,9 +2362,9 @@ function applyRef(el, value) {
|
|
|
2318
2362
|
if (typeof value === "function") {
|
|
2319
2363
|
const refFn = value;
|
|
2320
2364
|
refFn(el);
|
|
2321
|
-
const root =
|
|
2365
|
+
const root = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
2322
2366
|
if (root) {
|
|
2323
|
-
|
|
2367
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, () => {
|
|
2324
2368
|
refFn(null);
|
|
2325
2369
|
});
|
|
2326
2370
|
} else if (isDev2) {
|
|
@@ -2331,9 +2375,9 @@ function applyRef(el, value) {
|
|
|
2331
2375
|
} else if (value && typeof value === "object" && "current" in value) {
|
|
2332
2376
|
const refObj = value;
|
|
2333
2377
|
refObj.current = el;
|
|
2334
|
-
const root =
|
|
2378
|
+
const root = _chunkEQ5E4WOVcjs.getCurrentRoot.call(void 0, );
|
|
2335
2379
|
if (root) {
|
|
2336
|
-
|
|
2380
|
+
_chunkEQ5E4WOVcjs.registerRootCleanup.call(void 0, () => {
|
|
2337
2381
|
refObj.current = null;
|
|
2338
2382
|
});
|
|
2339
2383
|
} else if (isDev2) {
|
|
@@ -2407,7 +2451,7 @@ function applyProps(el, props, isSVG = false) {
|
|
|
2407
2451
|
}
|
|
2408
2452
|
continue;
|
|
2409
2453
|
}
|
|
2410
|
-
if (isDev2 &&
|
|
2454
|
+
if (isDev2 && _chunkEQ5E4WOVcjs.ChildProperties.has(key) || key === "innerHTML" || key === "textContent" || key === "innerText" || key === "children") {
|
|
2411
2455
|
createAttributeBinding(el, key, value, setProperty);
|
|
2412
2456
|
continue;
|
|
2413
2457
|
}
|
|
@@ -2423,8 +2467,8 @@ function applyProps(el, props, isSVG = false) {
|
|
|
2423
2467
|
createAttributeBinding(el, key.slice(5), value, setProperty);
|
|
2424
2468
|
continue;
|
|
2425
2469
|
}
|
|
2426
|
-
const propAlias = !isSVG && isDev2 ?
|
|
2427
|
-
const isProperty = !isSVG ? isDev2 ?
|
|
2470
|
+
const propAlias = !isSVG && isDev2 ? _chunkEQ5E4WOVcjs.getPropAlias.call(void 0, key, tagName) : void 0;
|
|
2471
|
+
const isProperty = !isSVG ? isDev2 ? _chunkEQ5E4WOVcjs.Properties.has(key) : key in el : false;
|
|
2428
2472
|
if (propAlias || isProperty || isCE && !isSVG) {
|
|
2429
2473
|
const propName = propAlias || key;
|
|
2430
2474
|
if (isCE && !isProperty && !propAlias) {
|
|
@@ -2441,7 +2485,7 @@ function applyProps(el, props, isSVG = false) {
|
|
|
2441
2485
|
}
|
|
2442
2486
|
if (isSVG && key.indexOf(":") > -1) {
|
|
2443
2487
|
const [prefix, name] = key.split(":");
|
|
2444
|
-
const ns =
|
|
2488
|
+
const ns = _chunkEQ5E4WOVcjs.SVGNamespace[prefix];
|
|
2445
2489
|
if (ns) {
|
|
2446
2490
|
createAttributeBinding(
|
|
2447
2491
|
el,
|
|
@@ -2584,4 +2628,4 @@ function eventNameFromProp(key) {
|
|
|
2584
2628
|
|
|
2585
2629
|
|
|
2586
2630
|
exports.startTransition = startTransition; exports.useTransition = useTransition; exports.useDeferredValue = useDeferredValue; exports.batch = batch2; exports.untrack = untrack2; exports.Fragment = Fragment; exports.withHydrationRange = withHydrationRange; exports.isHydratingActive = isHydratingActive; exports.toNodeArray = toNodeArray; exports.insertNodesBefore = insertNodesBefore; exports.removeNodes = removeNodes; exports.getSlotEnd = getSlotEnd; exports.resolvePath = resolvePath; exports.isReactive = isReactive; exports.nonReactive = nonReactive; exports.reactive = reactive; exports.unwrap = unwrap; exports.callEventHandler = callEventHandler; exports.createTextBinding = createTextBinding; exports.bindText = bindText; exports.setText = setText; exports.createAttributeBinding = createAttributeBinding; exports.bindAttribute = bindAttribute; exports.setAttr = setAttr; exports.bindProperty = bindProperty; exports.setProp = setProp; exports.createStyleBinding = createStyleBinding; exports.bindStyle = bindStyle; exports.setStyle = setStyle; exports.createClassBinding = createClassBinding; exports.bindClass = bindClass; exports.setClass = setClass; 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;
|
|
2587
|
-
//# sourceMappingURL=chunk-
|
|
2631
|
+
//# sourceMappingURL=chunk-I4GKKAAY.cjs.map
|