@solidjs/signals 0.10.8 → 0.11.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/dev.js +92 -26
- package/dist/node.cjs +224 -161
- package/dist/prod.js +100 -37
- package/dist/types/core/core.d.ts +2 -2
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/store/index.d.ts +2 -0
- package/dist/types/store/storePath.d.ts +30 -0
- package/package.json +1 -1
package/dist/node.cjs
CHANGED
|
@@ -42,8 +42,8 @@ const y = 3;
|
|
|
42
42
|
const g = {};
|
|
43
43
|
const S = {};
|
|
44
44
|
const w = "sp";
|
|
45
|
-
const
|
|
46
|
-
const
|
|
45
|
+
const b = typeof Proxy === "function";
|
|
46
|
+
const m = {};
|
|
47
47
|
const _ = Symbol("refresh");
|
|
48
48
|
function actualInsertIntoHeap(e, t) {
|
|
49
49
|
const n = (e.i?.t ? e.i.u?.o : e.i?.o) ?? -1;
|
|
@@ -106,8 +106,8 @@ function markNode(e, r = n) {
|
|
|
106
106
|
for (let n = e.O; n !== null; n = n.P) {
|
|
107
107
|
markNode(n.k, t);
|
|
108
108
|
}
|
|
109
|
-
if (e.
|
|
110
|
-
for (let n = e.
|
|
109
|
+
if (e.A !== null) {
|
|
110
|
+
for (let n = e.A; n !== null; n = n.C) {
|
|
111
111
|
for (let e = n.O; e !== null; e = e.P) {
|
|
112
112
|
markNode(e.k, t);
|
|
113
113
|
}
|
|
@@ -116,12 +116,12 @@ function markNode(e, r = n) {
|
|
|
116
116
|
}
|
|
117
117
|
function runHeap(e, t) {
|
|
118
118
|
e._ = false;
|
|
119
|
-
for (e.
|
|
120
|
-
let n = e.l[e.
|
|
119
|
+
for (e.j = 0; e.j <= e.S; e.j++) {
|
|
120
|
+
let n = e.l[e.j];
|
|
121
121
|
while (n !== undefined) {
|
|
122
122
|
if (n.m & i) t(n);
|
|
123
123
|
else adjustHeight(n, e);
|
|
124
|
-
n = e.l[e.
|
|
124
|
+
n = e.l[e.j];
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
e.S = 0;
|
|
@@ -129,7 +129,7 @@ function runHeap(e, t) {
|
|
|
129
129
|
function adjustHeight(e, t) {
|
|
130
130
|
deleteFromHeap(e, t);
|
|
131
131
|
let n = e.o;
|
|
132
|
-
for (let t = e.
|
|
132
|
+
for (let t = e.W; t; t = t.N) {
|
|
133
133
|
const e = t.L;
|
|
134
134
|
const r = e.I || e;
|
|
135
135
|
if (r.R && r.o >= n) n = r.o + 1;
|
|
@@ -142,14 +142,14 @@ function adjustHeight(e, t) {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
const O = new Set();
|
|
145
|
-
const x = { l: new Array(2e3).fill(undefined), _: false,
|
|
146
|
-
const v = { l: new Array(2e3).fill(undefined), _: false,
|
|
145
|
+
const x = { l: new Array(2e3).fill(undefined), _: false, j: 0, S: 0 };
|
|
146
|
+
const v = { l: new Array(2e3).fill(undefined), _: false, j: 0, S: 0 };
|
|
147
147
|
let P = 0;
|
|
148
148
|
let k = null;
|
|
149
|
-
let C = false;
|
|
150
149
|
let A = false;
|
|
150
|
+
let C = false;
|
|
151
151
|
function runLaneEffects(e) {
|
|
152
|
-
for (const t of
|
|
152
|
+
for (const t of W) {
|
|
153
153
|
if (t.H || t.T.size > 0) continue;
|
|
154
154
|
const n = t.M[e - 1];
|
|
155
155
|
if (n.length) {
|
|
@@ -159,12 +159,12 @@ function runLaneEffects(e) {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
function setProjectionWriteActive(e) {
|
|
162
|
-
|
|
162
|
+
C = e;
|
|
163
163
|
}
|
|
164
164
|
function schedule() {
|
|
165
|
-
if (
|
|
166
|
-
|
|
167
|
-
if (!
|
|
165
|
+
if (A) return;
|
|
166
|
+
A = true;
|
|
167
|
+
if (!E.q) queueMicrotask(flush);
|
|
168
168
|
}
|
|
169
169
|
class Queue {
|
|
170
170
|
i = null;
|
|
@@ -254,7 +254,7 @@ class GlobalQueue extends Queue {
|
|
|
254
254
|
runLaneEffects(h);
|
|
255
255
|
this.stashQueues(k.X);
|
|
256
256
|
P++;
|
|
257
|
-
|
|
257
|
+
A = x.S >= x.j;
|
|
258
258
|
reassignPendingTransition(k.D);
|
|
259
259
|
k = null;
|
|
260
260
|
finalizePureQueue(null, true);
|
|
@@ -272,7 +272,7 @@ class GlobalQueue extends Queue {
|
|
|
272
272
|
finalizePureQueue();
|
|
273
273
|
}
|
|
274
274
|
P++;
|
|
275
|
-
|
|
275
|
+
A = x.S >= x.j;
|
|
276
276
|
runLaneEffects(p);
|
|
277
277
|
this.run(p);
|
|
278
278
|
runLaneEffects(h);
|
|
@@ -313,7 +313,7 @@ class GlobalQueue extends Queue {
|
|
|
313
313
|
const t = k;
|
|
314
314
|
t.te = e;
|
|
315
315
|
e.ee.push(...t.ee);
|
|
316
|
-
for (const n of
|
|
316
|
+
for (const n of W) {
|
|
317
317
|
if (n.ne === t) n.ne = e;
|
|
318
318
|
}
|
|
319
319
|
e.B.push(...t.B);
|
|
@@ -337,7 +337,7 @@ class GlobalQueue extends Queue {
|
|
|
337
337
|
k.B.push(t);
|
|
338
338
|
}
|
|
339
339
|
this.B = k.B;
|
|
340
|
-
for (const e of
|
|
340
|
+
for (const e of W) {
|
|
341
341
|
if (!e.ne) e.ne = k;
|
|
342
342
|
}
|
|
343
343
|
for (const e of this.G) k.G.add(e);
|
|
@@ -368,16 +368,16 @@ function insertSubs(e, t = false) {
|
|
|
368
368
|
continue;
|
|
369
369
|
}
|
|
370
370
|
const s = i.k.m & o ? v : x;
|
|
371
|
-
if (s.
|
|
371
|
+
if (s.j > i.k.o) s.j = i.k.o;
|
|
372
372
|
insertIntoHeap(i.k, s);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
function finalizePureQueue(e = null, t = false) {
|
|
376
376
|
let n = !t;
|
|
377
|
-
if (!t) checkBoundaryChildren(
|
|
378
|
-
if (x.S >= x.
|
|
377
|
+
if (!t) checkBoundaryChildren(E);
|
|
378
|
+
if (x.S >= x.j) runHeap(x, GlobalQueue.K);
|
|
379
379
|
if (n) {
|
|
380
|
-
const t =
|
|
380
|
+
const t = E.D;
|
|
381
381
|
for (let e = 0; e < t.length; e++) {
|
|
382
382
|
const n = t[e];
|
|
383
383
|
if (n.ce !== g) {
|
|
@@ -389,7 +389,7 @@ function finalizePureQueue(e = null, t = false) {
|
|
|
389
389
|
if (n.R) GlobalQueue.U(n, false, true);
|
|
390
390
|
}
|
|
391
391
|
t.length = 0;
|
|
392
|
-
const n = e ? e.B :
|
|
392
|
+
const n = e ? e.B : E.B;
|
|
393
393
|
for (let e = 0; e < n.length; e++) {
|
|
394
394
|
const t = n[e];
|
|
395
395
|
const r = t.ce;
|
|
@@ -402,7 +402,7 @@ function finalizePureQueue(e = null, t = false) {
|
|
|
402
402
|
t.ne = null;
|
|
403
403
|
}
|
|
404
404
|
n.length = 0;
|
|
405
|
-
const r = e ? e.G :
|
|
405
|
+
const r = e ? e.G : E.G;
|
|
406
406
|
if (GlobalQueue.J && r.size) {
|
|
407
407
|
for (const e of r) {
|
|
408
408
|
GlobalQueue.J(e);
|
|
@@ -410,7 +410,7 @@ function finalizePureQueue(e = null, t = false) {
|
|
|
410
410
|
r.clear();
|
|
411
411
|
schedule();
|
|
412
412
|
}
|
|
413
|
-
for (const t of
|
|
413
|
+
for (const t of W) {
|
|
414
414
|
const n = e ? t.ne === e : !t.ne;
|
|
415
415
|
if (!n) continue;
|
|
416
416
|
if (!t.H) {
|
|
@@ -421,8 +421,8 @@ function finalizePureQueue(e = null, t = false) {
|
|
|
421
421
|
t.T.clear();
|
|
422
422
|
t.M[0].length = 0;
|
|
423
423
|
t.M[1].length = 0;
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
W.delete(t);
|
|
425
|
+
j.delete(t.pe);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
}
|
|
@@ -433,7 +433,7 @@ function checkBoundaryChildren(e) {
|
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
function trackOptimisticStore(e) {
|
|
436
|
-
|
|
436
|
+
E.G.add(e);
|
|
437
437
|
schedule();
|
|
438
438
|
}
|
|
439
439
|
function reassignPendingTransition(e) {
|
|
@@ -441,10 +441,10 @@ function reassignPendingTransition(e) {
|
|
|
441
441
|
e[t].ne = k;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
const
|
|
444
|
+
const E = new GlobalQueue();
|
|
445
445
|
function flush() {
|
|
446
|
-
while (
|
|
447
|
-
|
|
446
|
+
while (A) {
|
|
447
|
+
E.flush();
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function runQueue(e, t) {
|
|
@@ -480,18 +480,18 @@ function runInTransition(e, t) {
|
|
|
480
480
|
k = n;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
const
|
|
484
|
-
const
|
|
483
|
+
const j = new WeakMap();
|
|
484
|
+
const W = new Set();
|
|
485
485
|
function getOrCreateLane(e) {
|
|
486
|
-
let t =
|
|
486
|
+
let t = j.get(e);
|
|
487
487
|
if (t) {
|
|
488
488
|
return findLane(t);
|
|
489
489
|
}
|
|
490
490
|
const n = e.he;
|
|
491
491
|
const r = n?.re ? findLane(n.re) : null;
|
|
492
492
|
t = { pe: e, T: new Set(), M: [[], []], H: null, ne: k, ye: r };
|
|
493
|
-
|
|
494
|
-
|
|
493
|
+
j.set(e, t);
|
|
494
|
+
W.add(t);
|
|
495
495
|
e.ge = e.Se || 0;
|
|
496
496
|
return t;
|
|
497
497
|
}
|
|
@@ -513,7 +513,7 @@ function resolveLane(e) {
|
|
|
513
513
|
const t = e.re;
|
|
514
514
|
if (!t) return undefined;
|
|
515
515
|
const n = findLane(t);
|
|
516
|
-
if (
|
|
516
|
+
if (W.has(n)) return n;
|
|
517
517
|
e.re = undefined;
|
|
518
518
|
return undefined;
|
|
519
519
|
}
|
|
@@ -529,7 +529,7 @@ function assignOrMergeLane(e, t) {
|
|
|
529
529
|
return;
|
|
530
530
|
}
|
|
531
531
|
const i = findLane(r);
|
|
532
|
-
if (
|
|
532
|
+
if (W.has(i)) {
|
|
533
533
|
if (i !== n && !hasActiveOverride(e)) {
|
|
534
534
|
if (n.ye && findLane(n.ye) === i) {
|
|
535
535
|
e.re = t;
|
|
@@ -546,21 +546,21 @@ function handleAsync(e, t, r) {
|
|
|
546
546
|
const s = i && untrack(() => t[Symbol.asyncIterator]);
|
|
547
547
|
const o = !s && i && untrack(() => typeof t.then === "function");
|
|
548
548
|
if (!o && !s) {
|
|
549
|
-
e.
|
|
549
|
+
e.be = null;
|
|
550
550
|
return t;
|
|
551
551
|
}
|
|
552
|
-
e.
|
|
552
|
+
e.be = t;
|
|
553
553
|
let u;
|
|
554
554
|
const handleError = n => {
|
|
555
|
-
if (e.
|
|
556
|
-
|
|
555
|
+
if (e.be !== t) return;
|
|
556
|
+
E.initTransition(e.ne);
|
|
557
557
|
notifyStatus(e, n instanceof NotReadyError ? c : a, n);
|
|
558
558
|
e.$ = P;
|
|
559
559
|
};
|
|
560
560
|
const asyncWrite = (i, s) => {
|
|
561
|
-
if (e.
|
|
561
|
+
if (e.be !== t) return;
|
|
562
562
|
if (e.m & (n | f)) return;
|
|
563
|
-
|
|
563
|
+
E.initTransition(e.ne);
|
|
564
564
|
clearStatus(e);
|
|
565
565
|
const o = resolveLane(e);
|
|
566
566
|
if (o) o.T.delete(e);
|
|
@@ -575,7 +575,7 @@ function handleAsync(e, t, r) {
|
|
|
575
575
|
e.$ = P;
|
|
576
576
|
} else if (o) {
|
|
577
577
|
const t = e.ae;
|
|
578
|
-
const n = e.
|
|
578
|
+
const n = e.me;
|
|
579
579
|
if (!n || !n(i, t)) {
|
|
580
580
|
e.ae = i;
|
|
581
581
|
e.$ = P;
|
|
@@ -607,7 +607,7 @@ function handleAsync(e, t, r) {
|
|
|
607
607
|
);
|
|
608
608
|
r = false;
|
|
609
609
|
if (!n) {
|
|
610
|
-
|
|
610
|
+
E.initTransition(e.ne);
|
|
611
611
|
throw new NotReadyError(M);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
@@ -639,7 +639,7 @@ function handleAsync(e, t, r) {
|
|
|
639
639
|
};
|
|
640
640
|
const i = iterate();
|
|
641
641
|
if (!r && !i) {
|
|
642
|
-
|
|
642
|
+
E.initTransition(e.ne);
|
|
643
643
|
throw new NotReadyError(M);
|
|
644
644
|
}
|
|
645
645
|
}
|
|
@@ -684,15 +684,15 @@ function notifyStatus(e, t, n, r, i) {
|
|
|
684
684
|
for (let r = e.O; r !== null; r = r.P) {
|
|
685
685
|
r.k.$ = P;
|
|
686
686
|
if (r.k.Y !== n) {
|
|
687
|
-
!r.k.ne &&
|
|
687
|
+
!r.k.ne && E.D.push(r.k);
|
|
688
688
|
notifyStatus(r.k, t, n, f, l);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
for (let r = e.
|
|
691
|
+
for (let r = e.A; r !== null; r = r.C) {
|
|
692
692
|
for (let e = r.O; e !== null; e = e.P) {
|
|
693
693
|
e.k.$ = P;
|
|
694
694
|
if (e.k.Y !== n) {
|
|
695
|
-
!e.k.ne &&
|
|
695
|
+
!e.k.ne && E.D.push(e.k);
|
|
696
696
|
notifyStatus(e.k, t, n, f, l);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
@@ -717,37 +717,37 @@ function unlinkSubs(e) {
|
|
|
717
717
|
}
|
|
718
718
|
function unobserved(e) {
|
|
719
719
|
deleteFromHeap(e, e.m & o ? v : x);
|
|
720
|
-
let t = e.
|
|
720
|
+
let t = e.W;
|
|
721
721
|
while (t !== null) {
|
|
722
722
|
t = unlinkSubs(t);
|
|
723
723
|
}
|
|
724
|
-
e.
|
|
724
|
+
e.W = null;
|
|
725
725
|
disposeChildren(e, true);
|
|
726
726
|
}
|
|
727
727
|
function link(e, t) {
|
|
728
|
-
const n = t.
|
|
728
|
+
const n = t.Ae;
|
|
729
729
|
if (n !== null && n.L === e) return;
|
|
730
730
|
let i = null;
|
|
731
731
|
const s = t.m & r;
|
|
732
732
|
if (s) {
|
|
733
|
-
i = n !== null ? n.N : t.
|
|
733
|
+
i = n !== null ? n.N : t.W;
|
|
734
734
|
if (i !== null && i.L === e) {
|
|
735
|
-
t.
|
|
735
|
+
t.Ae = i;
|
|
736
736
|
return;
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
739
|
const o = e.ve;
|
|
740
740
|
if (o !== null && o.k === t && (!s || isValidLink(o, t))) return;
|
|
741
|
-
const u = (t.
|
|
741
|
+
const u = (t.Ae = e.ve = { L: e, k: t, N: i, xe: o, P: null });
|
|
742
742
|
if (n !== null) n.N = u;
|
|
743
|
-
else t.
|
|
743
|
+
else t.W = u;
|
|
744
744
|
if (o !== null) o.P = u;
|
|
745
745
|
else e.O = u;
|
|
746
746
|
}
|
|
747
747
|
function isValidLink(e, t) {
|
|
748
|
-
const n = t.
|
|
748
|
+
const n = t.Ae;
|
|
749
749
|
if (n !== null) {
|
|
750
|
-
let r = t.
|
|
750
|
+
let r = t.W;
|
|
751
751
|
do {
|
|
752
752
|
if (r === e) return true;
|
|
753
753
|
if (r === n) break;
|
|
@@ -758,7 +758,7 @@ function isValidLink(e, t) {
|
|
|
758
758
|
}
|
|
759
759
|
const N = {};
|
|
760
760
|
function markDisposal(e) {
|
|
761
|
-
let t = e.
|
|
761
|
+
let t = e.Ce;
|
|
762
762
|
while (t) {
|
|
763
763
|
t.m |= o;
|
|
764
764
|
if (t.m & i) {
|
|
@@ -766,43 +766,43 @@ function markDisposal(e) {
|
|
|
766
766
|
insertIntoHeap(t, v);
|
|
767
767
|
}
|
|
768
768
|
markDisposal(t);
|
|
769
|
-
t = t.
|
|
769
|
+
t = t.Ee;
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
function dispose(e) {
|
|
773
|
-
let t = e.
|
|
773
|
+
let t = e.W || null;
|
|
774
774
|
do {
|
|
775
775
|
t = unlinkSubs(t);
|
|
776
776
|
} while (t !== null);
|
|
777
|
-
e.
|
|
778
|
-
e.
|
|
777
|
+
e.W = null;
|
|
778
|
+
e.Ae = null;
|
|
779
779
|
disposeChildren(e, true);
|
|
780
780
|
}
|
|
781
781
|
function disposeChildren(e, t = false, n) {
|
|
782
782
|
if (e.m & u) return;
|
|
783
783
|
if (t) e.m = u;
|
|
784
|
-
let r = n ? e.
|
|
784
|
+
let r = n ? e.je : e.Ce;
|
|
785
785
|
while (r) {
|
|
786
|
-
const e = r.
|
|
787
|
-
if (r.
|
|
786
|
+
const e = r.Ee;
|
|
787
|
+
if (r.W) {
|
|
788
788
|
const e = r;
|
|
789
789
|
deleteFromHeap(e, e.m & o ? v : x);
|
|
790
|
-
let t = e.
|
|
790
|
+
let t = e.W;
|
|
791
791
|
do {
|
|
792
792
|
t = unlinkSubs(t);
|
|
793
793
|
} while (t !== null);
|
|
794
|
-
e.
|
|
795
|
-
e.
|
|
794
|
+
e.W = null;
|
|
795
|
+
e.Ae = null;
|
|
796
796
|
}
|
|
797
797
|
disposeChildren(r, true);
|
|
798
798
|
r = e;
|
|
799
799
|
}
|
|
800
800
|
if (n) {
|
|
801
|
-
e.
|
|
801
|
+
e.je = null;
|
|
802
802
|
} else {
|
|
803
|
-
e.
|
|
804
|
-
e.
|
|
805
|
-
e.
|
|
803
|
+
e.Ce = null;
|
|
804
|
+
e.Ee = null;
|
|
805
|
+
e.We = 0;
|
|
806
806
|
}
|
|
807
807
|
runDisposal(e, n);
|
|
808
808
|
}
|
|
@@ -822,7 +822,7 @@ function runDisposal(e, t) {
|
|
|
822
822
|
function childId(e, t) {
|
|
823
823
|
let n = e;
|
|
824
824
|
while (n.Ie && n.i) n = n.i;
|
|
825
|
-
if (n.id != null) return formatId(n.id, t ? n.
|
|
825
|
+
if (n.id != null) return formatId(n.id, t ? n.We++ : n.We);
|
|
826
826
|
throw new Error("Cannot get child id from owner without an id");
|
|
827
827
|
}
|
|
828
828
|
function getNextChildId(e) {
|
|
@@ -861,26 +861,26 @@ function createOwner(e) {
|
|
|
861
861
|
Ie: n || undefined,
|
|
862
862
|
t: true,
|
|
863
863
|
u: t?.t ? t.u : t,
|
|
864
|
-
|
|
865
|
-
|
|
864
|
+
Ce: null,
|
|
865
|
+
Ee: null,
|
|
866
866
|
Le: null,
|
|
867
|
-
fe: t?.fe ??
|
|
868
|
-
Re: t?.Re ||
|
|
869
|
-
|
|
867
|
+
fe: t?.fe ?? E,
|
|
868
|
+
Re: t?.Re || m,
|
|
869
|
+
We: 0,
|
|
870
870
|
Ne: null,
|
|
871
|
-
|
|
871
|
+
je: null,
|
|
872
872
|
i: t,
|
|
873
873
|
dispose(e = true) {
|
|
874
874
|
disposeChildren(r, e);
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
if (t) {
|
|
878
|
-
const e = t.
|
|
878
|
+
const e = t.Ce;
|
|
879
879
|
if (e === null) {
|
|
880
|
-
t.
|
|
880
|
+
t.Ce = r;
|
|
881
881
|
} else {
|
|
882
|
-
r.
|
|
883
|
-
t.
|
|
882
|
+
r.Ee = e;
|
|
883
|
+
t.Ce = r;
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
return r;
|
|
@@ -960,7 +960,7 @@ function trackedEffect(e, t) {
|
|
|
960
960
|
}
|
|
961
961
|
},
|
|
962
962
|
undefined,
|
|
963
|
-
{ ...t, lazy: true
|
|
963
|
+
{ ...t, lazy: true }
|
|
964
964
|
);
|
|
965
965
|
n.Me = undefined;
|
|
966
966
|
n.ue = true;
|
|
@@ -1001,10 +1001,10 @@ function releaseSnapshotScope(e) {
|
|
|
1001
1001
|
schedule();
|
|
1002
1002
|
}
|
|
1003
1003
|
function releaseSubtree(e) {
|
|
1004
|
-
let t = e.
|
|
1004
|
+
let t = e.Ce;
|
|
1005
1005
|
while (t) {
|
|
1006
1006
|
if (t.qe) {
|
|
1007
|
-
t = t.
|
|
1007
|
+
t = t.Ee;
|
|
1008
1008
|
continue;
|
|
1009
1009
|
}
|
|
1010
1010
|
if (t.R) {
|
|
@@ -1013,12 +1013,12 @@ function releaseSubtree(e) {
|
|
|
1013
1013
|
if (e.m & l) {
|
|
1014
1014
|
e.m &= ~l;
|
|
1015
1015
|
e.m |= n;
|
|
1016
|
-
if (x.
|
|
1016
|
+
if (x.j > e.o) x.j = e.o;
|
|
1017
1017
|
insertIntoHeap(e, x);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
1020
|
releaseSubtree(t);
|
|
1021
|
-
t = t.
|
|
1021
|
+
t = t.Ee;
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
function clearSnapshots() {
|
|
@@ -1034,16 +1034,16 @@ function clearSnapshots() {
|
|
|
1034
1034
|
function recompute(t, n = false) {
|
|
1035
1035
|
const i = t.oe;
|
|
1036
1036
|
if (!n) {
|
|
1037
|
-
if (t.ne && (!i || k) && k !== t.ne)
|
|
1037
|
+
if (t.ne && (!i || k) && k !== t.ne) E.initTransition(t.ne);
|
|
1038
1038
|
deleteFromHeap(t, t.m & o ? v : x);
|
|
1039
1039
|
if (t.ne || i === y) disposeChildren(t);
|
|
1040
1040
|
else {
|
|
1041
1041
|
markDisposal(t);
|
|
1042
1042
|
t.Ne = t.Le;
|
|
1043
|
-
t.
|
|
1043
|
+
t.je = t.Ce;
|
|
1044
1044
|
t.Le = null;
|
|
1045
|
-
t.
|
|
1046
|
-
t.
|
|
1045
|
+
t.Ce = null;
|
|
1046
|
+
t.We = 0;
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
const s = !!(t.m & f);
|
|
@@ -1051,13 +1051,13 @@ function recompute(t, n = false) {
|
|
|
1051
1051
|
const d = !!(t.de & c);
|
|
1052
1052
|
const p = M;
|
|
1053
1053
|
M = t;
|
|
1054
|
-
t.
|
|
1054
|
+
t.Ae = null;
|
|
1055
1055
|
t.m = r;
|
|
1056
1056
|
t.$ = P;
|
|
1057
1057
|
let h = t.ce === g ? t.ae : t.ce;
|
|
1058
1058
|
let S = t.o;
|
|
1059
1059
|
let w = L;
|
|
1060
|
-
let
|
|
1060
|
+
let b = q;
|
|
1061
1061
|
L = true;
|
|
1062
1062
|
if (s) {
|
|
1063
1063
|
const e = resolveLane(t);
|
|
@@ -1093,17 +1093,17 @@ function recompute(t, n = false) {
|
|
|
1093
1093
|
M = p;
|
|
1094
1094
|
}
|
|
1095
1095
|
if (!t.Y) {
|
|
1096
|
-
const e = t.
|
|
1097
|
-
let r = e !== null ? e.N : t.
|
|
1096
|
+
const e = t.Ae;
|
|
1097
|
+
let r = e !== null ? e.N : t.W;
|
|
1098
1098
|
if (r !== null) {
|
|
1099
1099
|
do {
|
|
1100
1100
|
r = unlinkSubs(r);
|
|
1101
1101
|
} while (r !== null);
|
|
1102
1102
|
if (e !== null) e.N = null;
|
|
1103
|
-
else t.
|
|
1103
|
+
else t.W = null;
|
|
1104
1104
|
}
|
|
1105
1105
|
const f = u ? t.ae : t.ce === g ? t.ae : t.ce;
|
|
1106
|
-
const l = !t.
|
|
1106
|
+
const l = !t.me || !t.me(f, h);
|
|
1107
1107
|
if (l) {
|
|
1108
1108
|
const e = u ? t.ae : undefined;
|
|
1109
1109
|
if (n || (i && k !== t.ne) || s) t.ae = h;
|
|
@@ -1124,13 +1124,13 @@ function recompute(t, n = false) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
q =
|
|
1128
|
-
(!n || t.de & c) && !t.ne && !(k && t.we) &&
|
|
1127
|
+
q = b;
|
|
1128
|
+
(!n || t.de & c) && !t.ne && !(k && t.we) && E.D.push(t);
|
|
1129
1129
|
t.ne && i && k !== t.ne && runInTransition(t.ne, () => recompute(t));
|
|
1130
1130
|
}
|
|
1131
1131
|
function updateIfNecessary(r) {
|
|
1132
1132
|
if (r.m & t) {
|
|
1133
|
-
for (let e = r.
|
|
1133
|
+
for (let e = r.W; e; e = e.N) {
|
|
1134
1134
|
const t = e.L;
|
|
1135
1135
|
const i = t.I || t;
|
|
1136
1136
|
if (i.R) {
|
|
@@ -1151,44 +1151,44 @@ function computed(t, n, r) {
|
|
|
1151
1151
|
const s = {
|
|
1152
1152
|
id: r?.id ?? (i ? M?.id : M?.id != null ? getNextChildId(M) : undefined),
|
|
1153
1153
|
Ie: i || undefined,
|
|
1154
|
-
|
|
1154
|
+
me: r?.equals != null ? r.equals : isEqual,
|
|
1155
1155
|
Fe: !!r?.pureWrite,
|
|
1156
1156
|
Pe: r?.unobserved,
|
|
1157
1157
|
Le: null,
|
|
1158
|
-
fe: M?.fe ??
|
|
1159
|
-
Re: M?.Re ??
|
|
1160
|
-
|
|
1158
|
+
fe: M?.fe ?? E,
|
|
1159
|
+
Re: M?.Re ?? m,
|
|
1160
|
+
We: 0,
|
|
1161
1161
|
R: t,
|
|
1162
1162
|
ae: n,
|
|
1163
1163
|
o: 0,
|
|
1164
|
-
|
|
1164
|
+
A: null,
|
|
1165
1165
|
h: undefined,
|
|
1166
1166
|
p: null,
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
W: null,
|
|
1168
|
+
Ae: null,
|
|
1169
1169
|
O: null,
|
|
1170
1170
|
ve: null,
|
|
1171
1171
|
i: M,
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
Ee: null,
|
|
1173
|
+
Ce: null,
|
|
1174
1174
|
m: e,
|
|
1175
1175
|
de: d,
|
|
1176
1176
|
$: P,
|
|
1177
1177
|
ce: g,
|
|
1178
1178
|
Ne: null,
|
|
1179
|
-
|
|
1180
|
-
|
|
1179
|
+
je: null,
|
|
1180
|
+
be: null,
|
|
1181
1181
|
ne: null
|
|
1182
1182
|
};
|
|
1183
1183
|
s.p = s;
|
|
1184
1184
|
const o = M?.t ? M.u : M;
|
|
1185
1185
|
if (M) {
|
|
1186
|
-
const e = M.
|
|
1186
|
+
const e = M.Ce;
|
|
1187
1187
|
if (e === null) {
|
|
1188
|
-
M.
|
|
1188
|
+
M.Ce = s;
|
|
1189
1189
|
} else {
|
|
1190
|
-
s.
|
|
1191
|
-
M.
|
|
1190
|
+
s.Ee = e;
|
|
1191
|
+
M.Ce = s;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
if (o) s.o = o.o + 1;
|
|
@@ -1204,7 +1204,7 @@ function computed(t, n, r) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
function signal(e, t, n = null) {
|
|
1206
1206
|
const r = {
|
|
1207
|
-
|
|
1207
|
+
me: t?.equals != null ? t.equals : isEqual,
|
|
1208
1208
|
Fe: !!t?.pureWrite,
|
|
1209
1209
|
Pe: t?.unobserved,
|
|
1210
1210
|
ae: e,
|
|
@@ -1212,10 +1212,10 @@ function signal(e, t, n = null) {
|
|
|
1212
1212
|
ve: null,
|
|
1213
1213
|
$: P,
|
|
1214
1214
|
I: n,
|
|
1215
|
-
|
|
1215
|
+
C: n?.A || null,
|
|
1216
1216
|
ce: g
|
|
1217
1217
|
};
|
|
1218
|
-
n && (n.
|
|
1218
|
+
n && (n.A = r);
|
|
1219
1219
|
if (F && !r.Fe) {
|
|
1220
1220
|
r.ie = e === undefined ? S : e;
|
|
1221
1221
|
V.add(r);
|
|
@@ -1252,7 +1252,7 @@ function untrack(e) {
|
|
|
1252
1252
|
}
|
|
1253
1253
|
function read(e) {
|
|
1254
1254
|
if (T) {
|
|
1255
|
-
const t =
|
|
1255
|
+
const t = getLatestValueComputed(e);
|
|
1256
1256
|
const n = T;
|
|
1257
1257
|
T = false;
|
|
1258
1258
|
let r;
|
|
@@ -1294,7 +1294,7 @@ function read(e) {
|
|
|
1294
1294
|
const n = e.I || e;
|
|
1295
1295
|
if (n.R) {
|
|
1296
1296
|
const r = e.m & o;
|
|
1297
|
-
if (n.o >= (r ? v.
|
|
1297
|
+
if (n.o >= (r ? v.j : x.j)) {
|
|
1298
1298
|
markNode(t);
|
|
1299
1299
|
markHeap(r ? v : x);
|
|
1300
1300
|
updateIfNecessary(n);
|
|
@@ -1341,11 +1341,11 @@ function read(e) {
|
|
|
1341
1341
|
return !t || q !== null || e.ce === g || (I && e.ne && k !== e.ne) ? e.ae : e.ce;
|
|
1342
1342
|
}
|
|
1343
1343
|
function setSignal(e, t) {
|
|
1344
|
-
if (e.ne && k !== e.ne)
|
|
1345
|
-
const n = e.we && !
|
|
1344
|
+
if (e.ne && k !== e.ne) E.initTransition(e.ne);
|
|
1345
|
+
const n = e.we && !C;
|
|
1346
1346
|
const r = n ? e.ae : e.ce === g ? e.ae : e.ce;
|
|
1347
1347
|
if (typeof t === "function") t = t(r);
|
|
1348
|
-
const i = !e.
|
|
1348
|
+
const i = !e.me || !e.me(r, t);
|
|
1349
1349
|
if (!i) {
|
|
1350
1350
|
if (n && e.ce !== g && e.R) {
|
|
1351
1351
|
insertSubs(e, true);
|
|
@@ -1354,22 +1354,22 @@ function setSignal(e, t) {
|
|
|
1354
1354
|
return t;
|
|
1355
1355
|
}
|
|
1356
1356
|
if (n) {
|
|
1357
|
-
const n =
|
|
1357
|
+
const n = E.B.includes(e);
|
|
1358
1358
|
if (e.ne && n) {
|
|
1359
|
-
|
|
1359
|
+
E.initTransition(e.ne);
|
|
1360
1360
|
}
|
|
1361
1361
|
if (e.ce === g) {
|
|
1362
1362
|
e.ce = e.ae;
|
|
1363
1363
|
}
|
|
1364
1364
|
if (!n) {
|
|
1365
|
-
|
|
1365
|
+
E.B.push(e);
|
|
1366
1366
|
}
|
|
1367
1367
|
e.Se = (e.Se || 0) + 1;
|
|
1368
1368
|
const r = getOrCreateLane(e);
|
|
1369
1369
|
e.re = r;
|
|
1370
1370
|
e.ae = t;
|
|
1371
1371
|
} else {
|
|
1372
|
-
if (e.ce === g)
|
|
1372
|
+
if (e.ce === g) E.D.push(e);
|
|
1373
1373
|
e.ce = t;
|
|
1374
1374
|
}
|
|
1375
1375
|
updatePendingSignal(e);
|
|
@@ -1429,12 +1429,12 @@ function updatePendingSignal(e) {
|
|
|
1429
1429
|
mergeLanes(t, e);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
j.delete(n);
|
|
1433
1433
|
n.re = undefined;
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function getLatestValueComputed(e) {
|
|
1438
1438
|
if (!e._e) {
|
|
1439
1439
|
const t = T;
|
|
1440
1440
|
T = false;
|
|
@@ -1459,7 +1459,7 @@ function staleValues(e, t = true) {
|
|
|
1459
1459
|
I = n;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
function
|
|
1462
|
+
function latest(e) {
|
|
1463
1463
|
const t = T;
|
|
1464
1464
|
T = true;
|
|
1465
1465
|
try {
|
|
@@ -1528,7 +1528,7 @@ function isUndefined(e) {
|
|
|
1528
1528
|
return typeof e === "undefined";
|
|
1529
1529
|
}
|
|
1530
1530
|
function restoreTransition(e, t) {
|
|
1531
|
-
|
|
1531
|
+
E.initTransition(e);
|
|
1532
1532
|
const n = t();
|
|
1533
1533
|
flush();
|
|
1534
1534
|
return n;
|
|
@@ -1537,7 +1537,7 @@ function action(e) {
|
|
|
1537
1537
|
return (...t) =>
|
|
1538
1538
|
new Promise((n, r) => {
|
|
1539
1539
|
const i = e(...t);
|
|
1540
|
-
|
|
1540
|
+
E.initTransition();
|
|
1541
1541
|
let s = k;
|
|
1542
1542
|
s.ee.push(i);
|
|
1543
1543
|
const done = (e, t) => {
|
|
@@ -1634,7 +1634,7 @@ function createOptimistic(e, t, n) {
|
|
|
1634
1634
|
function onSettled(e) {
|
|
1635
1635
|
getOwner()
|
|
1636
1636
|
? createTrackedEffect(() => untrack(e))
|
|
1637
|
-
:
|
|
1637
|
+
: E.enqueue(h, () => {
|
|
1638
1638
|
const t = e();
|
|
1639
1639
|
t?.();
|
|
1640
1640
|
});
|
|
@@ -1676,7 +1676,7 @@ function applyState(e, t, n, r) {
|
|
|
1676
1676
|
applyState(e[d], wrap(y, i), n, r);
|
|
1677
1677
|
}
|
|
1678
1678
|
const w = new Array(e.length),
|
|
1679
|
-
|
|
1679
|
+
b = new Map();
|
|
1680
1680
|
for (
|
|
1681
1681
|
p = l - 1, h = e.length - 1;
|
|
1682
1682
|
p >= d &&
|
|
@@ -1705,18 +1705,18 @@ function applyState(e, t, n, r) {
|
|
|
1705
1705
|
for (a = h; a >= d; a--) {
|
|
1706
1706
|
y = e[a];
|
|
1707
1707
|
S = y ? n(y) : y;
|
|
1708
|
-
c =
|
|
1708
|
+
c = b.get(S);
|
|
1709
1709
|
g[a] = c === undefined ? -1 : c;
|
|
1710
|
-
|
|
1710
|
+
b.set(S, a);
|
|
1711
1711
|
}
|
|
1712
1712
|
for (c = d; c <= p; c++) {
|
|
1713
1713
|
y = getOverrideValue(s, o, f, c, u);
|
|
1714
1714
|
S = y ? n(y) : y;
|
|
1715
|
-
a =
|
|
1715
|
+
a = b.get(S);
|
|
1716
1716
|
if (a !== undefined && a !== -1) {
|
|
1717
1717
|
w[a] = y;
|
|
1718
1718
|
a = g[a];
|
|
1719
|
-
|
|
1719
|
+
b.set(S, a);
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
for (a = d; a < e.length; a++) {
|
|
@@ -1988,7 +1988,7 @@ const le = {
|
|
|
1988
1988
|
if (e[se]) {
|
|
1989
1989
|
const t = e[ie];
|
|
1990
1990
|
if (t?.ne) {
|
|
1991
|
-
|
|
1991
|
+
E.initTransition(t.ne);
|
|
1992
1992
|
}
|
|
1993
1993
|
}
|
|
1994
1994
|
untrack(() => {
|
|
@@ -2003,7 +2003,7 @@ const le = {
|
|
|
2003
2003
|
e[w][t] = s;
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
const o = e[se] && !
|
|
2006
|
+
const o = e[se] && !C;
|
|
2007
2007
|
const u = o ? $ : Z;
|
|
2008
2008
|
if (o) trackOptimisticStore(r);
|
|
2009
2009
|
const f = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : s;
|
|
@@ -2039,7 +2039,7 @@ const le = {
|
|
|
2039
2039
|
const r = e[Z]?.[t] === J;
|
|
2040
2040
|
if (writeOnly(e[U]) && !n && !r) {
|
|
2041
2041
|
untrack(() => {
|
|
2042
|
-
const n = e[se] && !
|
|
2042
|
+
const n = e[se] && !C;
|
|
2043
2043
|
const r = n ? $ : Z;
|
|
2044
2044
|
if (n) trackOptimisticStore(e[U]);
|
|
2045
2045
|
const i = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : e[Y][t];
|
|
@@ -2250,6 +2250,68 @@ function createOptimisticProjectionInternal(e, t = {}, n) {
|
|
|
2250
2250
|
}
|
|
2251
2251
|
return { store: s, node: r };
|
|
2252
2252
|
}
|
|
2253
|
+
const ce = Symbol(0);
|
|
2254
|
+
function updatePath(e, t, n = 0) {
|
|
2255
|
+
let r,
|
|
2256
|
+
i = e;
|
|
2257
|
+
if (n < t.length - 1) {
|
|
2258
|
+
r = t[n];
|
|
2259
|
+
const s = typeof r;
|
|
2260
|
+
const o = Array.isArray(e);
|
|
2261
|
+
if (Array.isArray(r)) {
|
|
2262
|
+
for (let i = 0; i < r.length; i++) {
|
|
2263
|
+
t[n] = r[i];
|
|
2264
|
+
updatePath(e, t, n);
|
|
2265
|
+
}
|
|
2266
|
+
t[n] = r;
|
|
2267
|
+
return;
|
|
2268
|
+
} else if (o && s === "function") {
|
|
2269
|
+
for (let i = 0; i < e.length; i++) {
|
|
2270
|
+
if (r(e[i], i)) {
|
|
2271
|
+
t[n] = i;
|
|
2272
|
+
updatePath(e, t, n);
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
t[n] = r;
|
|
2276
|
+
return;
|
|
2277
|
+
} else if (o && s === "object") {
|
|
2278
|
+
const { from: i = 0, to: s = e.length - 1, by: o = 1 } = r;
|
|
2279
|
+
for (let r = i; r <= s; r += o) {
|
|
2280
|
+
t[n] = r;
|
|
2281
|
+
updatePath(e, t, n);
|
|
2282
|
+
}
|
|
2283
|
+
t[n] = r;
|
|
2284
|
+
return;
|
|
2285
|
+
} else if (n < t.length - 2) {
|
|
2286
|
+
updatePath(e[r], t, n + 1);
|
|
2287
|
+
return;
|
|
2288
|
+
}
|
|
2289
|
+
i = e[r];
|
|
2290
|
+
}
|
|
2291
|
+
let s = t[t.length - 1];
|
|
2292
|
+
if (typeof s === "function") {
|
|
2293
|
+
s = s(i);
|
|
2294
|
+
if (s === i) return;
|
|
2295
|
+
}
|
|
2296
|
+
if (r === undefined && s == undefined) return;
|
|
2297
|
+
if (s === ce) {
|
|
2298
|
+
delete e[r];
|
|
2299
|
+
} else if (r === undefined || (isWrappable(i) && isWrappable(s) && !Array.isArray(s))) {
|
|
2300
|
+
const t = r !== undefined ? e[r] : e;
|
|
2301
|
+
const n = Object.keys(s);
|
|
2302
|
+
for (let e = 0; e < n.length; e++) t[n[e]] = s[n[e]];
|
|
2303
|
+
} else {
|
|
2304
|
+
e[r] = s;
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
const ae = Object.assign(
|
|
2308
|
+
function storePath(...e) {
|
|
2309
|
+
return t => {
|
|
2310
|
+
updatePath(t, e);
|
|
2311
|
+
};
|
|
2312
|
+
},
|
|
2313
|
+
{ DELETE: ce }
|
|
2314
|
+
);
|
|
2253
2315
|
function snapshot(e, t, n) {
|
|
2254
2316
|
let r, i, s, o, u, f;
|
|
2255
2317
|
if (!isWrappable(e)) return e;
|
|
@@ -2296,7 +2358,7 @@ function snapshot(e, t, n) {
|
|
|
2296
2358
|
function trueFn() {
|
|
2297
2359
|
return true;
|
|
2298
2360
|
}
|
|
2299
|
-
const
|
|
2361
|
+
const de = {
|
|
2300
2362
|
get(e, t, n) {
|
|
2301
2363
|
if (t === U) return n;
|
|
2302
2364
|
return e.get(t);
|
|
@@ -2325,7 +2387,7 @@ const ce = {
|
|
|
2325
2387
|
function resolveSource(e) {
|
|
2326
2388
|
return !(e = typeof e === "function" ? e() : e) ? {} : e;
|
|
2327
2389
|
}
|
|
2328
|
-
const
|
|
2390
|
+
const pe = Symbol(0);
|
|
2329
2391
|
function merge(...e) {
|
|
2330
2392
|
if (e.length === 1 && typeof e[0] !== "function") return e[0];
|
|
2331
2393
|
let t = false;
|
|
@@ -2333,15 +2395,15 @@ function merge(...e) {
|
|
|
2333
2395
|
for (let r = 0; r < e.length; r++) {
|
|
2334
2396
|
const i = e[r];
|
|
2335
2397
|
t = t || (!!i && U in i);
|
|
2336
|
-
const s = !!i && i[
|
|
2398
|
+
const s = !!i && i[pe];
|
|
2337
2399
|
if (s) n.push(...s);
|
|
2338
2400
|
else n.push(typeof i === "function" ? ((t = true), createMemo(i)) : i);
|
|
2339
2401
|
}
|
|
2340
|
-
if (
|
|
2402
|
+
if (b && t) {
|
|
2341
2403
|
return new Proxy(
|
|
2342
2404
|
{
|
|
2343
2405
|
get(e) {
|
|
2344
|
-
if (e ===
|
|
2406
|
+
if (e === pe) return n;
|
|
2345
2407
|
for (let t = n.length - 1; t >= 0; t--) {
|
|
2346
2408
|
const r = resolveSource(n[t]);
|
|
2347
2409
|
if (e in r) return r[e];
|
|
@@ -2359,7 +2421,7 @@ function merge(...e) {
|
|
|
2359
2421
|
return [...new Set(e)];
|
|
2360
2422
|
}
|
|
2361
2423
|
},
|
|
2362
|
-
|
|
2424
|
+
de
|
|
2363
2425
|
);
|
|
2364
2426
|
}
|
|
2365
2427
|
const r = Object.create(null);
|
|
@@ -2391,12 +2453,12 @@ function merge(...e) {
|
|
|
2391
2453
|
if (n.get) Object.defineProperty(o, t, n);
|
|
2392
2454
|
else o[t] = n.value;
|
|
2393
2455
|
}
|
|
2394
|
-
o[
|
|
2456
|
+
o[pe] = n;
|
|
2395
2457
|
return o;
|
|
2396
2458
|
}
|
|
2397
2459
|
function omit(e, ...t) {
|
|
2398
2460
|
const n = new Set(t);
|
|
2399
|
-
if (
|
|
2461
|
+
if (b && U in e) {
|
|
2400
2462
|
return new Proxy(
|
|
2401
2463
|
{
|
|
2402
2464
|
get(t) {
|
|
@@ -2409,7 +2471,7 @@ function omit(e, ...t) {
|
|
|
2409
2471
|
return Object.keys(e).filter(e => !n.has(e));
|
|
2410
2472
|
}
|
|
2411
2473
|
},
|
|
2412
|
-
|
|
2474
|
+
de
|
|
2413
2475
|
);
|
|
2414
2476
|
}
|
|
2415
2477
|
const r = {};
|
|
@@ -2443,7 +2505,7 @@ function mapArray(e, t, n) {
|
|
|
2443
2505
|
})
|
|
2444
2506
|
);
|
|
2445
2507
|
}
|
|
2446
|
-
const
|
|
2508
|
+
const he = { pureWrite: true };
|
|
2447
2509
|
function updateKeyedMap() {
|
|
2448
2510
|
const e = this.Ge() || [],
|
|
2449
2511
|
t = e.length;
|
|
@@ -2453,8 +2515,8 @@ function updateKeyedMap() {
|
|
|
2453
2515
|
r,
|
|
2454
2516
|
i = this.Ye
|
|
2455
2517
|
? () => {
|
|
2456
|
-
this.Ye[r] = signal(e[r],
|
|
2457
|
-
this.Ze && (this.Ze[r] = signal(r,
|
|
2518
|
+
this.Ye[r] = signal(e[r], he);
|
|
2519
|
+
this.Ze && (this.Ze[r] = signal(r, he));
|
|
2458
2520
|
return this.ze(
|
|
2459
2521
|
read.bind(null, this.Ye[r]),
|
|
2460
2522
|
this.Ze ? read.bind(null, this.Ze[r]) : undefined
|
|
@@ -2463,7 +2525,7 @@ function updateKeyedMap() {
|
|
|
2463
2525
|
: this.Ze
|
|
2464
2526
|
? () => {
|
|
2465
2527
|
const t = e[r];
|
|
2466
|
-
this.Ze[r] = signal(r,
|
|
2528
|
+
this.Ze[r] = signal(r, he);
|
|
2467
2529
|
return this.ze(() => t, read.bind(null, this.Ze[r]));
|
|
2468
2530
|
}
|
|
2469
2531
|
: () => {
|
|
@@ -2769,7 +2831,7 @@ exports.$TRACK = G;
|
|
|
2769
2831
|
exports.ContextNotFoundError = ContextNotFoundError;
|
|
2770
2832
|
exports.NoOwnerError = NoOwnerError;
|
|
2771
2833
|
exports.NotReadyError = NotReadyError;
|
|
2772
|
-
exports.SUPPORTS_PROXY =
|
|
2834
|
+
exports.SUPPORTS_PROXY = b;
|
|
2773
2835
|
exports.action = action;
|
|
2774
2836
|
exports.clearSnapshots = clearSnapshots;
|
|
2775
2837
|
exports.createContext = createContext;
|
|
@@ -2799,6 +2861,7 @@ exports.isEqual = isEqual;
|
|
|
2799
2861
|
exports.isPending = isPending;
|
|
2800
2862
|
exports.isRefreshing = isRefreshing;
|
|
2801
2863
|
exports.isWrappable = isWrappable;
|
|
2864
|
+
exports.latest = latest;
|
|
2802
2865
|
exports.mapArray = mapArray;
|
|
2803
2866
|
exports.markSnapshotScope = markSnapshotScope;
|
|
2804
2867
|
exports.merge = merge;
|
|
@@ -2806,7 +2869,6 @@ exports.omit = omit;
|
|
|
2806
2869
|
exports.onCleanup = onCleanup;
|
|
2807
2870
|
exports.onSettled = onSettled;
|
|
2808
2871
|
exports.peekNextChildId = peekNextChildId;
|
|
2809
|
-
exports.pending = pending;
|
|
2810
2872
|
exports.reconcile = reconcile;
|
|
2811
2873
|
exports.refresh = refresh;
|
|
2812
2874
|
exports.releaseSnapshotScope = releaseSnapshotScope;
|
|
@@ -2817,4 +2879,5 @@ exports.setContext = setContext;
|
|
|
2817
2879
|
exports.setSnapshotCapture = setSnapshotCapture;
|
|
2818
2880
|
exports.setStrictRead = setStrictRead;
|
|
2819
2881
|
exports.snapshot = snapshot;
|
|
2882
|
+
exports.storePath = ae;
|
|
2820
2883
|
exports.untrack = untrack;
|