@solidjs/signals 0.10.7 → 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 +142 -30
- package/dist/node.cjs +438 -365
- package/dist/prod.js +313 -240
- package/dist/types/core/core.d.ts +4 -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/map.d.ts +2 -0
- 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,10 +129,10 @@ 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
|
-
if (r.
|
|
135
|
+
if (r.R && r.o >= n) n = r.o + 1;
|
|
136
136
|
}
|
|
137
137
|
if (e.o !== n) {
|
|
138
138
|
e.o = n;
|
|
@@ -142,15 +142,15 @@ 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
|
|
153
|
-
if (t.
|
|
152
|
+
for (const t of W) {
|
|
153
|
+
if (t.H || t.T.size > 0) continue;
|
|
154
154
|
const n = t.M[e - 1];
|
|
155
155
|
if (n.length) {
|
|
156
156
|
t.M[e - 1] = [];
|
|
@@ -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) {
|
|
@@ -386,10 +386,10 @@ function finalizePureQueue(e = null, t = false) {
|
|
|
386
386
|
if (n.oe && n.oe !== y) n.ue = true;
|
|
387
387
|
}
|
|
388
388
|
n.de &= ~d;
|
|
389
|
-
if (n.
|
|
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,10 +410,10 @@ 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
|
-
if (!t.
|
|
416
|
+
if (!t.H) {
|
|
417
417
|
if (t.M[0].length) runQueue(t.M[0], p);
|
|
418
418
|
if (t.M[1].length) runQueue(t.M[1], h);
|
|
419
419
|
}
|
|
@@ -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,30 +480,30 @@ 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
|
-
t = { pe: e, T: new Set(), M: [[], []],
|
|
493
|
-
|
|
494
|
-
|
|
492
|
+
t = { pe: e, T: new Set(), M: [[], []], H: null, ne: k, ye: r };
|
|
493
|
+
j.set(e, t);
|
|
494
|
+
W.add(t);
|
|
495
495
|
e.ge = e.Se || 0;
|
|
496
496
|
return t;
|
|
497
497
|
}
|
|
498
498
|
function findLane(e) {
|
|
499
|
-
while (e.
|
|
499
|
+
while (e.H) e = e.H;
|
|
500
500
|
return e;
|
|
501
501
|
}
|
|
502
502
|
function mergeLanes(e, t) {
|
|
503
503
|
e = findLane(e);
|
|
504
504
|
t = findLane(t);
|
|
505
505
|
if (e === t) return e;
|
|
506
|
-
t.
|
|
506
|
+
t.H = e;
|
|
507
507
|
for (const n of t.T) e.T.add(n);
|
|
508
508
|
e.M[0].push(...t.M[0]);
|
|
509
509
|
e.M[1].push(...t.M[1]);
|
|
@@ -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
|
}
|
|
@@ -524,12 +524,12 @@ function assignOrMergeLane(e, t) {
|
|
|
524
524
|
const n = findLane(t);
|
|
525
525
|
const r = e.re;
|
|
526
526
|
if (r) {
|
|
527
|
-
if (r.
|
|
527
|
+
if (r.H) {
|
|
528
528
|
e.re = 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,28 +546,28 @@ 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);
|
|
567
567
|
if (r) r(i);
|
|
568
568
|
else if (e.we) {
|
|
569
569
|
const t = e.ce !== g;
|
|
570
|
-
if (e.
|
|
570
|
+
if (e.R) e.ce = i;
|
|
571
571
|
if (!t) {
|
|
572
572
|
e.ae = i;
|
|
573
573
|
insertSubs(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
|
}
|
|
@@ -710,44 +710,44 @@ function unlinkSubs(e) {
|
|
|
710
710
|
t.O = r;
|
|
711
711
|
if (r === null) {
|
|
712
712
|
t.Pe?.();
|
|
713
|
-
t.
|
|
713
|
+
t.R && !t.ke && !(t.m & o) && unobserved(t);
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
716
|
return n;
|
|
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) {
|
|
@@ -837,7 +837,7 @@ function formatId(e, t) {
|
|
|
837
837
|
return e + (r ? String.fromCharCode(64 + r) : "") + n;
|
|
838
838
|
}
|
|
839
839
|
function getObserver() {
|
|
840
|
-
if (
|
|
840
|
+
if (H || T) return N;
|
|
841
841
|
return L ? M : null;
|
|
842
842
|
}
|
|
843
843
|
function getOwner() {
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -900,7 +900,7 @@ function effect(e, t, n, r, i) {
|
|
|
900
900
|
},
|
|
901
901
|
lazy: true
|
|
902
902
|
});
|
|
903
|
-
o.
|
|
903
|
+
o.He = r;
|
|
904
904
|
o.Qe = t;
|
|
905
905
|
o.Te = n;
|
|
906
906
|
o.Me = undefined;
|
|
@@ -936,11 +936,11 @@ function runEffect() {
|
|
|
936
936
|
this.Me?.();
|
|
937
937
|
this.Me = undefined;
|
|
938
938
|
try {
|
|
939
|
-
this.Me = this.Qe(this.ae, this.
|
|
939
|
+
this.Me = this.Qe(this.ae, this.He);
|
|
940
940
|
} catch (e) {
|
|
941
941
|
if (!this.fe.notify(this, a, a)) throw e;
|
|
942
942
|
} finally {
|
|
943
|
-
this.
|
|
943
|
+
this.He = this.ae;
|
|
944
944
|
this.ue = false;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
@@ -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;
|
|
@@ -973,8 +973,8 @@ GlobalQueue.K = recompute;
|
|
|
973
973
|
GlobalQueue.U = disposeChildren;
|
|
974
974
|
let L = false;
|
|
975
975
|
let I = false;
|
|
976
|
-
let H = false;
|
|
977
976
|
let R = false;
|
|
977
|
+
let H = false;
|
|
978
978
|
let Q = false;
|
|
979
979
|
let T = false;
|
|
980
980
|
let M = null;
|
|
@@ -1001,24 +1001,24 @@ 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
|
-
if (t.
|
|
1010
|
+
if (t.R) {
|
|
1011
1011
|
const e = t;
|
|
1012
1012
|
e.se = false;
|
|
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,20 +1051,20 @@ 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);
|
|
1064
1064
|
if (e) q = e;
|
|
1065
1065
|
}
|
|
1066
1066
|
try {
|
|
1067
|
-
h = handleAsync(t, t.
|
|
1067
|
+
h = handleAsync(t, t.R(h));
|
|
1068
1068
|
clearStatus(t);
|
|
1069
1069
|
const e = resolveLane(t);
|
|
1070
1070
|
if (e) {
|
|
@@ -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,16 +1124,16 @@ 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
|
-
if (i.
|
|
1136
|
+
if (i.R) {
|
|
1137
1137
|
updateIfNecessary(i);
|
|
1138
1138
|
}
|
|
1139
1139
|
if (r.m & n) {
|
|
@@ -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
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1158
|
+
fe: M?.fe ?? E,
|
|
1159
|
+
Re: M?.Re ?? m,
|
|
1160
|
+
We: 0,
|
|
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);
|
|
@@ -1235,8 +1235,14 @@ function optimisticComputed(e, t, n) {
|
|
|
1235
1235
|
function isEqual(e, t) {
|
|
1236
1236
|
return e === t;
|
|
1237
1237
|
}
|
|
1238
|
+
let D = false;
|
|
1239
|
+
function setStrictRead(e) {
|
|
1240
|
+
const t = D;
|
|
1241
|
+
D = e;
|
|
1242
|
+
return t;
|
|
1243
|
+
}
|
|
1238
1244
|
function untrack(e) {
|
|
1239
|
-
if (!L) return e();
|
|
1245
|
+
if (!L && true) return e();
|
|
1240
1246
|
L = false;
|
|
1241
1247
|
try {
|
|
1242
1248
|
return e();
|
|
@@ -1246,7 +1252,7 @@ function untrack(e) {
|
|
|
1246
1252
|
}
|
|
1247
1253
|
function read(e) {
|
|
1248
1254
|
if (T) {
|
|
1249
|
-
const t =
|
|
1255
|
+
const t = getLatestValueComputed(e);
|
|
1250
1256
|
const n = T;
|
|
1251
1257
|
T = false;
|
|
1252
1258
|
let r;
|
|
@@ -1268,27 +1274,27 @@ function read(e) {
|
|
|
1268
1274
|
}
|
|
1269
1275
|
return r;
|
|
1270
1276
|
}
|
|
1271
|
-
if (
|
|
1277
|
+
if (H) {
|
|
1272
1278
|
const t = e.I || e;
|
|
1273
1279
|
const n = getPendingSignal(t);
|
|
1274
|
-
const r =
|
|
1275
|
-
|
|
1280
|
+
const r = H;
|
|
1281
|
+
H = false;
|
|
1276
1282
|
if (read(n)) {
|
|
1277
1283
|
Q = true;
|
|
1278
1284
|
}
|
|
1279
|
-
|
|
1285
|
+
H = r;
|
|
1280
1286
|
return e.ae;
|
|
1281
1287
|
}
|
|
1282
1288
|
let t = M;
|
|
1283
1289
|
if (t?.t) t = t.u;
|
|
1284
|
-
if (
|
|
1290
|
+
if (R && e.R) recompute(e);
|
|
1285
1291
|
if (t && L) {
|
|
1286
|
-
if (e.
|
|
1292
|
+
if (e.R && e.m & u) recompute(e);
|
|
1287
1293
|
link(e, t);
|
|
1288
1294
|
const n = e.I || e;
|
|
1289
|
-
if (n.
|
|
1295
|
+
if (n.R) {
|
|
1290
1296
|
const r = e.m & o;
|
|
1291
|
-
if (n.o >= (r ? v.
|
|
1297
|
+
if (n.o >= (r ? v.j : x.j)) {
|
|
1292
1298
|
markNode(t);
|
|
1293
1299
|
markHeap(r ? v : x);
|
|
1294
1300
|
updateIfNecessary(n);
|
|
@@ -1317,7 +1323,7 @@ function read(e) {
|
|
|
1317
1323
|
throw n.Y;
|
|
1318
1324
|
}
|
|
1319
1325
|
}
|
|
1320
|
-
if (e.
|
|
1326
|
+
if (e.R && e.de & a) {
|
|
1321
1327
|
if (e.$ < P) {
|
|
1322
1328
|
recompute(e, true);
|
|
1323
1329
|
return read(e);
|
|
@@ -1335,35 +1341,35 @@ function read(e) {
|
|
|
1335
1341
|
return !t || q !== null || e.ce === g || (I && e.ne && k !== e.ne) ? e.ae : e.ce;
|
|
1336
1342
|
}
|
|
1337
1343
|
function setSignal(e, t) {
|
|
1338
|
-
if (e.ne && k !== e.ne)
|
|
1339
|
-
const n = e.we && !
|
|
1344
|
+
if (e.ne && k !== e.ne) E.initTransition(e.ne);
|
|
1345
|
+
const n = e.we && !C;
|
|
1340
1346
|
const r = n ? e.ae : e.ce === g ? e.ae : e.ce;
|
|
1341
1347
|
if (typeof t === "function") t = t(r);
|
|
1342
|
-
const i = !e.
|
|
1348
|
+
const i = !e.me || !e.me(r, t);
|
|
1343
1349
|
if (!i) {
|
|
1344
|
-
if (n && e.ce !== g && e.
|
|
1350
|
+
if (n && e.ce !== g && e.R) {
|
|
1345
1351
|
insertSubs(e, true);
|
|
1346
1352
|
schedule();
|
|
1347
1353
|
}
|
|
1348
1354
|
return t;
|
|
1349
1355
|
}
|
|
1350
1356
|
if (n) {
|
|
1351
|
-
const n =
|
|
1357
|
+
const n = E.B.includes(e);
|
|
1352
1358
|
if (e.ne && n) {
|
|
1353
|
-
|
|
1359
|
+
E.initTransition(e.ne);
|
|
1354
1360
|
}
|
|
1355
1361
|
if (e.ce === g) {
|
|
1356
1362
|
e.ce = e.ae;
|
|
1357
1363
|
}
|
|
1358
1364
|
if (!n) {
|
|
1359
|
-
|
|
1365
|
+
E.B.push(e);
|
|
1360
1366
|
}
|
|
1361
1367
|
e.Se = (e.Se || 0) + 1;
|
|
1362
1368
|
const r = getOrCreateLane(e);
|
|
1363
1369
|
e.re = r;
|
|
1364
1370
|
e.ae = t;
|
|
1365
1371
|
} else {
|
|
1366
|
-
if (e.ce === g)
|
|
1372
|
+
if (e.ce === g) E.D.push(e);
|
|
1367
1373
|
e.ce = t;
|
|
1368
1374
|
}
|
|
1369
1375
|
updatePendingSignal(e);
|
|
@@ -1423,23 +1429,23 @@ function updatePendingSignal(e) {
|
|
|
1423
1429
|
mergeLanes(t, e);
|
|
1424
1430
|
}
|
|
1425
1431
|
}
|
|
1426
|
-
|
|
1432
|
+
j.delete(n);
|
|
1427
1433
|
n.re = undefined;
|
|
1428
1434
|
}
|
|
1429
1435
|
}
|
|
1430
1436
|
}
|
|
1431
|
-
function
|
|
1437
|
+
function getLatestValueComputed(e) {
|
|
1432
1438
|
if (!e._e) {
|
|
1433
1439
|
const t = T;
|
|
1434
1440
|
T = false;
|
|
1435
|
-
const n =
|
|
1436
|
-
|
|
1441
|
+
const n = H;
|
|
1442
|
+
H = false;
|
|
1437
1443
|
const r = M;
|
|
1438
1444
|
M = null;
|
|
1439
1445
|
e._e = optimisticComputed(() => read(e));
|
|
1440
1446
|
e._e.he = e;
|
|
1441
1447
|
M = r;
|
|
1442
|
-
|
|
1448
|
+
H = n;
|
|
1443
1449
|
T = t;
|
|
1444
1450
|
}
|
|
1445
1451
|
return e._e;
|
|
@@ -1453,7 +1459,7 @@ function staleValues(e, t = true) {
|
|
|
1453
1459
|
I = n;
|
|
1454
1460
|
}
|
|
1455
1461
|
}
|
|
1456
|
-
function
|
|
1462
|
+
function latest(e) {
|
|
1457
1463
|
const t = T;
|
|
1458
1464
|
T = true;
|
|
1459
1465
|
try {
|
|
@@ -1463,9 +1469,9 @@ function pending(e) {
|
|
|
1463
1469
|
}
|
|
1464
1470
|
}
|
|
1465
1471
|
function isPending(e) {
|
|
1466
|
-
const t =
|
|
1472
|
+
const t = H;
|
|
1467
1473
|
const n = Q;
|
|
1468
|
-
|
|
1474
|
+
H = true;
|
|
1469
1475
|
Q = false;
|
|
1470
1476
|
try {
|
|
1471
1477
|
e();
|
|
@@ -1473,13 +1479,13 @@ function isPending(e) {
|
|
|
1473
1479
|
} catch {
|
|
1474
1480
|
return Q;
|
|
1475
1481
|
} finally {
|
|
1476
|
-
|
|
1482
|
+
H = t;
|
|
1477
1483
|
Q = n;
|
|
1478
1484
|
}
|
|
1479
1485
|
}
|
|
1480
1486
|
function refresh(e) {
|
|
1481
|
-
let t =
|
|
1482
|
-
|
|
1487
|
+
let t = R;
|
|
1488
|
+
R = true;
|
|
1483
1489
|
try {
|
|
1484
1490
|
if (typeof e !== "function") {
|
|
1485
1491
|
recompute(e[_]);
|
|
@@ -1487,14 +1493,14 @@ function refresh(e) {
|
|
|
1487
1493
|
}
|
|
1488
1494
|
return untrack(e);
|
|
1489
1495
|
} finally {
|
|
1490
|
-
|
|
1496
|
+
R = t;
|
|
1491
1497
|
if (!t) {
|
|
1492
1498
|
schedule();
|
|
1493
1499
|
}
|
|
1494
1500
|
}
|
|
1495
1501
|
}
|
|
1496
1502
|
function isRefreshing() {
|
|
1497
|
-
return
|
|
1503
|
+
return R;
|
|
1498
1504
|
}
|
|
1499
1505
|
function createContext(e, t) {
|
|
1500
1506
|
return { id: Symbol(t), defaultValue: e };
|
|
@@ -1503,7 +1509,7 @@ function getContext(e, t = getOwner()) {
|
|
|
1503
1509
|
if (!t) {
|
|
1504
1510
|
throw new NoOwnerError();
|
|
1505
1511
|
}
|
|
1506
|
-
const n = hasContext(e, t) ? t.
|
|
1512
|
+
const n = hasContext(e, t) ? t.Re[e.id] : e.defaultValue;
|
|
1507
1513
|
if (isUndefined(n)) {
|
|
1508
1514
|
throw new ContextNotFoundError();
|
|
1509
1515
|
}
|
|
@@ -1513,16 +1519,16 @@ function setContext(e, t, n = getOwner()) {
|
|
|
1513
1519
|
if (!n) {
|
|
1514
1520
|
throw new NoOwnerError();
|
|
1515
1521
|
}
|
|
1516
|
-
n.
|
|
1522
|
+
n.Re = { ...n.Re, [e.id]: isUndefined(t) ? e.defaultValue : t };
|
|
1517
1523
|
}
|
|
1518
1524
|
function hasContext(e, t) {
|
|
1519
|
-
return !isUndefined(t?.
|
|
1525
|
+
return !isUndefined(t?.Re[e.id]);
|
|
1520
1526
|
}
|
|
1521
1527
|
function isUndefined(e) {
|
|
1522
1528
|
return typeof e === "undefined";
|
|
1523
1529
|
}
|
|
1524
1530
|
function restoreTransition(e, t) {
|
|
1525
|
-
|
|
1531
|
+
E.initTransition(e);
|
|
1526
1532
|
const n = t();
|
|
1527
1533
|
flush();
|
|
1528
1534
|
return n;
|
|
@@ -1531,7 +1537,7 @@ function action(e) {
|
|
|
1531
1537
|
return (...t) =>
|
|
1532
1538
|
new Promise((n, r) => {
|
|
1533
1539
|
const i = e(...t);
|
|
1534
|
-
|
|
1540
|
+
E.initTransition();
|
|
1535
1541
|
let s = k;
|
|
1536
1542
|
s.ee.push(i);
|
|
1537
1543
|
const done = (e, t) => {
|
|
@@ -1628,13 +1634,13 @@ function createOptimistic(e, t, n) {
|
|
|
1628
1634
|
function onSettled(e) {
|
|
1629
1635
|
getOwner()
|
|
1630
1636
|
? createTrackedEffect(() => untrack(e))
|
|
1631
|
-
:
|
|
1637
|
+
: E.enqueue(h, () => {
|
|
1632
1638
|
const t = e();
|
|
1633
1639
|
t?.();
|
|
1634
1640
|
});
|
|
1635
1641
|
}
|
|
1636
1642
|
function unwrap(e) {
|
|
1637
|
-
return e?.[
|
|
1643
|
+
return e?.[z]?.[ee] ?? e;
|
|
1638
1644
|
}
|
|
1639
1645
|
function getOverrideValue(e, t, n, r, i) {
|
|
1640
1646
|
if (i && r in i) return i[r];
|
|
@@ -1646,16 +1652,16 @@ function getAllKeys(e, t, n) {
|
|
|
1646
1652
|
return Array.from(new Set([...r, ...i]));
|
|
1647
1653
|
}
|
|
1648
1654
|
function applyState(e, t, n, r) {
|
|
1649
|
-
const i = t?.[
|
|
1655
|
+
const i = t?.[z];
|
|
1650
1656
|
if (!i) return;
|
|
1651
|
-
const s = i[
|
|
1652
|
-
const o = i[
|
|
1653
|
-
const u = i[
|
|
1654
|
-
let f = i[
|
|
1657
|
+
const s = i[Y];
|
|
1658
|
+
const o = i[Z];
|
|
1659
|
+
const u = i[$];
|
|
1660
|
+
let f = i[ee];
|
|
1655
1661
|
if (e === s && !o && !u) return;
|
|
1656
|
-
(i[
|
|
1657
|
-
i[
|
|
1658
|
-
i[
|
|
1662
|
+
(i[re] || oe).set(e, i[U]);
|
|
1663
|
+
i[Y] = e;
|
|
1664
|
+
i[Z] = undefined;
|
|
1659
1665
|
if (Array.isArray(s)) {
|
|
1660
1666
|
let t = false;
|
|
1661
1667
|
const l = getOverrideValue(s, o, f, "length", u);
|
|
@@ -1670,7 +1676,7 @@ function applyState(e, t, n, r) {
|
|
|
1670
1676
|
applyState(e[d], wrap(y, i), n, r);
|
|
1671
1677
|
}
|
|
1672
1678
|
const w = new Array(e.length),
|
|
1673
|
-
|
|
1679
|
+
b = new Map();
|
|
1674
1680
|
for (
|
|
1675
1681
|
p = l - 1, h = e.length - 1;
|
|
1676
1682
|
p >= d &&
|
|
@@ -1683,59 +1689,59 @@ function applyState(e, t, n, r) {
|
|
|
1683
1689
|
if (d > h || d > p) {
|
|
1684
1690
|
for (a = d; a <= h; a++) {
|
|
1685
1691
|
t = true;
|
|
1686
|
-
i[
|
|
1692
|
+
i[ee][a] && setSignal(i[ee][a], wrap(e[a], i));
|
|
1687
1693
|
}
|
|
1688
1694
|
for (; a < e.length; a++) {
|
|
1689
1695
|
t = true;
|
|
1690
1696
|
const s = wrap(w[a], i);
|
|
1691
|
-
i[
|
|
1697
|
+
i[ee][a] && setSignal(i[ee][a], s);
|
|
1692
1698
|
applyState(e[a], s, n, r);
|
|
1693
1699
|
}
|
|
1694
|
-
t && i[
|
|
1695
|
-
l !== e.length && i[
|
|
1700
|
+
t && i[ee][G] && setSignal(i[ee][G], void 0);
|
|
1701
|
+
l !== e.length && i[ee].length && setSignal(i[ee].length, e.length);
|
|
1696
1702
|
return;
|
|
1697
1703
|
}
|
|
1698
1704
|
g = new Array(h + 1);
|
|
1699
1705
|
for (a = h; a >= d; a--) {
|
|
1700
1706
|
y = e[a];
|
|
1701
1707
|
S = y ? n(y) : y;
|
|
1702
|
-
c =
|
|
1708
|
+
c = b.get(S);
|
|
1703
1709
|
g[a] = c === undefined ? -1 : c;
|
|
1704
|
-
|
|
1710
|
+
b.set(S, a);
|
|
1705
1711
|
}
|
|
1706
1712
|
for (c = d; c <= p; c++) {
|
|
1707
1713
|
y = getOverrideValue(s, o, f, c, u);
|
|
1708
1714
|
S = y ? n(y) : y;
|
|
1709
|
-
a =
|
|
1715
|
+
a = b.get(S);
|
|
1710
1716
|
if (a !== undefined && a !== -1) {
|
|
1711
1717
|
w[a] = y;
|
|
1712
1718
|
a = g[a];
|
|
1713
|
-
|
|
1719
|
+
b.set(S, a);
|
|
1714
1720
|
}
|
|
1715
1721
|
}
|
|
1716
1722
|
for (a = d; a < e.length; a++) {
|
|
1717
1723
|
if (a in w) {
|
|
1718
1724
|
const t = wrap(w[a], i);
|
|
1719
|
-
i[
|
|
1725
|
+
i[ee][a] && setSignal(i[ee][a], t);
|
|
1720
1726
|
applyState(e[a], t, n, r);
|
|
1721
|
-
} else i[
|
|
1727
|
+
} else i[ee][a] && setSignal(i[ee][a], wrap(e[a], i));
|
|
1722
1728
|
}
|
|
1723
1729
|
if (d < e.length) t = true;
|
|
1724
1730
|
} else if (e.length) {
|
|
1725
1731
|
for (let t = 0, l = e.length; t < l; t++) {
|
|
1726
1732
|
const l = getOverrideValue(s, o, f, t, u);
|
|
1727
|
-
isWrappable(l) ? applyState(e[t], wrap(l, i), n, r) : i[
|
|
1733
|
+
isWrappable(l) ? applyState(e[t], wrap(l, i), n, r) : i[ee][t] && setSignal(i[ee][t], e[t]);
|
|
1728
1734
|
}
|
|
1729
1735
|
}
|
|
1730
1736
|
if (l !== e.length) {
|
|
1731
1737
|
t = true;
|
|
1732
|
-
i[
|
|
1738
|
+
i[ee].length && setSignal(i[ee].length, e.length);
|
|
1733
1739
|
}
|
|
1734
|
-
t && i[
|
|
1740
|
+
t && i[ee][G] && setSignal(i[ee][G], void 0);
|
|
1735
1741
|
return;
|
|
1736
1742
|
}
|
|
1737
1743
|
if (f) {
|
|
1738
|
-
const t = f[
|
|
1744
|
+
const t = f[G];
|
|
1739
1745
|
const l = t || r ? getAllKeys(s, o, e) : Object.keys(f);
|
|
1740
1746
|
for (let c = 0, a = l.length; c < a; c++) {
|
|
1741
1747
|
const a = l[c];
|
|
@@ -1749,7 +1755,7 @@ function applyState(e, t, n, r) {
|
|
|
1749
1755
|
} else applyState(h, wrap(p, i), n, r);
|
|
1750
1756
|
}
|
|
1751
1757
|
}
|
|
1752
|
-
if ((f = i[
|
|
1758
|
+
if ((f = i[te])) {
|
|
1753
1759
|
const t = Object.keys(f);
|
|
1754
1760
|
for (let n = 0, r = t.length; n < r; n++) {
|
|
1755
1761
|
const r = t[n];
|
|
@@ -1771,9 +1777,9 @@ function createProjectionInternal(e, t = {}, n) {
|
|
|
1771
1777
|
let r;
|
|
1772
1778
|
const i = new WeakMap();
|
|
1773
1779
|
const wrapper = e => {
|
|
1774
|
-
e[
|
|
1775
|
-
e[
|
|
1776
|
-
Object.defineProperty(e,
|
|
1780
|
+
e[ne] = wrapProjection;
|
|
1781
|
+
e[re] = i;
|
|
1782
|
+
Object.defineProperty(e, ie, {
|
|
1777
1783
|
get() {
|
|
1778
1784
|
return r;
|
|
1779
1785
|
},
|
|
@@ -1782,15 +1788,15 @@ function createProjectionInternal(e, t = {}, n) {
|
|
|
1782
1788
|
};
|
|
1783
1789
|
const wrapProjection = e => {
|
|
1784
1790
|
if (i.has(e)) return i.get(e);
|
|
1785
|
-
if (e[
|
|
1786
|
-
const t = createStoreProxy(e,
|
|
1791
|
+
if (e[z]?.[ne] === wrapProjection) return e;
|
|
1792
|
+
const t = createStoreProxy(e, le, wrapper);
|
|
1787
1793
|
i.set(e, t);
|
|
1788
1794
|
return t;
|
|
1789
1795
|
};
|
|
1790
1796
|
const s = wrapProjection(t);
|
|
1791
1797
|
r = computed(() => {
|
|
1792
1798
|
const t = getOwner();
|
|
1793
|
-
storeSetter(new Proxy(s,
|
|
1799
|
+
storeSetter(new Proxy(s, B), r => {
|
|
1794
1800
|
const i = handleAsync(t, e(r), e => {
|
|
1795
1801
|
e !== r && e !== undefined && storeSetter(s, reconcile(e, n?.key || "id", n?.all));
|
|
1796
1802
|
setSignal(t, undefined);
|
|
@@ -1804,7 +1810,7 @@ function createProjectionInternal(e, t = {}, n) {
|
|
|
1804
1810
|
function createProjection(e, t = {}, n) {
|
|
1805
1811
|
return createProjectionInternal(e, t, n).store;
|
|
1806
1812
|
}
|
|
1807
|
-
const
|
|
1813
|
+
const B = {
|
|
1808
1814
|
get(e, t) {
|
|
1809
1815
|
let n;
|
|
1810
1816
|
setWriteOverride(true);
|
|
@@ -1815,7 +1821,7 @@ const D = {
|
|
|
1815
1821
|
setWriteOverride(false);
|
|
1816
1822
|
setProjectionWriteActive(false);
|
|
1817
1823
|
}
|
|
1818
|
-
return typeof n === "object" && n !== null ? new Proxy(n,
|
|
1824
|
+
return typeof n === "object" && n !== null ? new Proxy(n, B) : n;
|
|
1819
1825
|
},
|
|
1820
1826
|
set(e, t, n) {
|
|
1821
1827
|
setWriteOverride(true);
|
|
@@ -1840,46 +1846,46 @@ const D = {
|
|
|
1840
1846
|
return true;
|
|
1841
1847
|
}
|
|
1842
1848
|
};
|
|
1843
|
-
const
|
|
1844
|
-
G = Symbol(0),
|
|
1849
|
+
const G = Symbol(0),
|
|
1845
1850
|
K = Symbol(0),
|
|
1846
1851
|
z = Symbol(0),
|
|
1847
|
-
U = Symbol(0)
|
|
1848
|
-
|
|
1849
|
-
const X =
|
|
1850
|
-
|
|
1851
|
-
Z = "
|
|
1852
|
-
$ = "
|
|
1853
|
-
ee = "
|
|
1854
|
-
te = "
|
|
1855
|
-
ne = "
|
|
1856
|
-
re = "
|
|
1857
|
-
ie = "
|
|
1858
|
-
|
|
1852
|
+
U = Symbol(0),
|
|
1853
|
+
J = Symbol(0);
|
|
1854
|
+
const X = new WeakMap();
|
|
1855
|
+
const Y = "v",
|
|
1856
|
+
Z = "o",
|
|
1857
|
+
$ = "x",
|
|
1858
|
+
ee = "n",
|
|
1859
|
+
te = "h",
|
|
1860
|
+
ne = "w",
|
|
1861
|
+
re = "l",
|
|
1862
|
+
ie = "f",
|
|
1863
|
+
se = "p";
|
|
1864
|
+
function createStoreProxy(e, t = le, n) {
|
|
1859
1865
|
let r;
|
|
1860
1866
|
if (Array.isArray(e)) {
|
|
1861
1867
|
r = [];
|
|
1862
1868
|
r.v = e;
|
|
1863
1869
|
} else r = { v: e };
|
|
1864
1870
|
n && n(r);
|
|
1865
|
-
return (r[
|
|
1871
|
+
return (r[U] = new Proxy(r, t));
|
|
1866
1872
|
}
|
|
1867
|
-
const
|
|
1873
|
+
const oe = new WeakMap();
|
|
1868
1874
|
function wrap(e, t) {
|
|
1869
|
-
if (t?.[
|
|
1870
|
-
let n = e[
|
|
1871
|
-
if (!n)
|
|
1875
|
+
if (t?.[ne]) return t[ne](e, t);
|
|
1876
|
+
let n = e[U] || oe.get(e);
|
|
1877
|
+
if (!n) oe.set(e, (n = createStoreProxy(e)));
|
|
1872
1878
|
return n;
|
|
1873
1879
|
}
|
|
1874
1880
|
function isWrappable(e) {
|
|
1875
1881
|
return e != null && typeof e === "object" && !Object.isFrozen(e);
|
|
1876
1882
|
}
|
|
1877
|
-
let
|
|
1883
|
+
let ue = false;
|
|
1878
1884
|
function setWriteOverride(e) {
|
|
1879
|
-
|
|
1885
|
+
ue = e;
|
|
1880
1886
|
}
|
|
1881
1887
|
function writeOnly(e) {
|
|
1882
|
-
return
|
|
1888
|
+
return ue || !!fe?.has(e);
|
|
1883
1889
|
}
|
|
1884
1890
|
function getNodes(e, t) {
|
|
1885
1891
|
let n = e[t];
|
|
@@ -1906,8 +1912,8 @@ function getNode(e, t, n, r, i = isEqual, s, o) {
|
|
|
1906
1912
|
}
|
|
1907
1913
|
return (e[t] = u);
|
|
1908
1914
|
}
|
|
1909
|
-
function trackSelf(e, t =
|
|
1910
|
-
getObserver() && read(getNode(getNodes(e,
|
|
1915
|
+
function trackSelf(e, t = G) {
|
|
1916
|
+
getObserver() && read(getNode(getNodes(e, ee), t, undefined, e[ie], false, e[se]));
|
|
1911
1917
|
}
|
|
1912
1918
|
function getKeys(e, t, n = true) {
|
|
1913
1919
|
const r = untrack(() => (n ? Object.keys(e) : Reflect.ownKeys(e)));
|
|
@@ -1915,7 +1921,7 @@ function getKeys(e, t, n = true) {
|
|
|
1915
1921
|
const i = new Set(r);
|
|
1916
1922
|
const s = Reflect.ownKeys(t);
|
|
1917
1923
|
for (const e of s) {
|
|
1918
|
-
if (t[e] !==
|
|
1924
|
+
if (t[e] !== J) i.add(e);
|
|
1919
1925
|
else i.delete(e);
|
|
1920
1926
|
}
|
|
1921
1927
|
return Array.from(i);
|
|
@@ -1923,70 +1929,70 @@ function getKeys(e, t, n = true) {
|
|
|
1923
1929
|
function getPropertyDescriptor(e, t, n) {
|
|
1924
1930
|
let r = e;
|
|
1925
1931
|
if (t && n in t) {
|
|
1926
|
-
if (r[n] ===
|
|
1932
|
+
if (r[n] === J) return void 0;
|
|
1927
1933
|
if (!(n in r)) r = t;
|
|
1928
1934
|
}
|
|
1929
1935
|
return Reflect.getOwnPropertyDescriptor(r, n);
|
|
1930
1936
|
}
|
|
1931
|
-
let
|
|
1932
|
-
const
|
|
1937
|
+
let fe = null;
|
|
1938
|
+
const le = {
|
|
1933
1939
|
get(e, t, n) {
|
|
1934
|
-
if (t ===
|
|
1935
|
-
if (t ===
|
|
1936
|
-
if (t === _) return e[
|
|
1937
|
-
if (t ===
|
|
1940
|
+
if (t === z) return e;
|
|
1941
|
+
if (t === U) return n;
|
|
1942
|
+
if (t === _) return e[ie];
|
|
1943
|
+
if (t === G || t === K) {
|
|
1938
1944
|
trackSelf(e, t);
|
|
1939
1945
|
return n;
|
|
1940
1946
|
}
|
|
1941
|
-
const r = getNodes(e,
|
|
1947
|
+
const r = getNodes(e, ee);
|
|
1942
1948
|
const i = r[t];
|
|
1943
|
-
const s = e[
|
|
1944
|
-
const o = s || (e[
|
|
1945
|
-
const u = !!e[
|
|
1946
|
-
const f = s ? e[
|
|
1949
|
+
const s = e[$] && t in e[$];
|
|
1950
|
+
const o = s || (e[Z] && t in e[Z]);
|
|
1951
|
+
const u = !!e[Y][z];
|
|
1952
|
+
const f = s ? e[$] : e[Z] && t in e[Z] ? e[Z] : e[Y];
|
|
1947
1953
|
if (!i) {
|
|
1948
1954
|
const e = Object.getOwnPropertyDescriptor(f, t);
|
|
1949
1955
|
if (e && e.get) return e.get.call(n);
|
|
1950
1956
|
}
|
|
1951
1957
|
if (writeOnly(n)) {
|
|
1952
1958
|
let n = i && (o || !u) ? (i.ce !== g ? (i.we ? i.ae : i.ce) : i.ae) : f[t];
|
|
1953
|
-
n ===
|
|
1959
|
+
n === J && (n = undefined);
|
|
1954
1960
|
if (!isWrappable(n)) return n;
|
|
1955
1961
|
const r = wrap(n, e);
|
|
1956
|
-
|
|
1962
|
+
fe?.add(r);
|
|
1957
1963
|
return r;
|
|
1958
1964
|
}
|
|
1959
1965
|
let l = i ? (o || !u ? read(r[t]) : (read(r[t]), f[t])) : f[t];
|
|
1960
|
-
l ===
|
|
1966
|
+
l === J && (l = undefined);
|
|
1961
1967
|
if (!i) {
|
|
1962
1968
|
if (!o && typeof l === "function" && !f.hasOwnProperty(t)) {
|
|
1963
1969
|
let t;
|
|
1964
|
-
return !Array.isArray(e[
|
|
1970
|
+
return !Array.isArray(e[Y]) && (t = Object.getPrototypeOf(e[Y])) && t !== Object.prototype
|
|
1965
1971
|
? l.bind(f)
|
|
1966
1972
|
: l;
|
|
1967
1973
|
} else if (getObserver()) {
|
|
1968
|
-
return read(getNode(r, t, isWrappable(l) ? wrap(l, e) : l, e[
|
|
1974
|
+
return read(getNode(r, t, isWrappable(l) ? wrap(l, e) : l, e[ie], isEqual, e[se], e[w]));
|
|
1969
1975
|
}
|
|
1970
1976
|
}
|
|
1971
1977
|
return isWrappable(l) ? wrap(l, e) : l;
|
|
1972
1978
|
},
|
|
1973
1979
|
has(e, t) {
|
|
1974
|
-
if (t ===
|
|
1975
|
-
const n = e[
|
|
1976
|
-
getObserver() && read(getNode(getNodes(e,
|
|
1980
|
+
if (t === U || t === G || t === "__proto__") return true;
|
|
1981
|
+
const n = e[$] && t in e[$] ? e[$][t] !== J : e[Z] && t in e[Z] ? e[Z][t] !== J : t in e[Y];
|
|
1982
|
+
getObserver() && read(getNode(getNodes(e, te), t, n, e[ie], isEqual, e[se]));
|
|
1977
1983
|
return n;
|
|
1978
1984
|
},
|
|
1979
1985
|
set(e, t, n) {
|
|
1980
|
-
const r = e[
|
|
1986
|
+
const r = e[U];
|
|
1981
1987
|
if (writeOnly(r)) {
|
|
1982
|
-
if (e[
|
|
1983
|
-
const t = e[
|
|
1988
|
+
if (e[se]) {
|
|
1989
|
+
const t = e[ie];
|
|
1984
1990
|
if (t?.ne) {
|
|
1985
|
-
|
|
1991
|
+
E.initTransition(t.ne);
|
|
1986
1992
|
}
|
|
1987
1993
|
}
|
|
1988
1994
|
untrack(() => {
|
|
1989
|
-
const i = e[
|
|
1995
|
+
const i = e[Y];
|
|
1990
1996
|
const s = i[t];
|
|
1991
1997
|
if (F && typeof t !== "symbol") {
|
|
1992
1998
|
if (!e[w]) {
|
|
@@ -1997,23 +2003,23 @@ const fe = {
|
|
|
1997
2003
|
e[w][t] = s;
|
|
1998
2004
|
}
|
|
1999
2005
|
}
|
|
2000
|
-
const o = e[
|
|
2001
|
-
const u = o ?
|
|
2006
|
+
const o = e[se] && !C;
|
|
2007
|
+
const u = o ? $ : Z;
|
|
2002
2008
|
if (o) trackOptimisticStore(r);
|
|
2003
|
-
const f = e[
|
|
2004
|
-
const l = n?.[
|
|
2009
|
+
const f = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : s;
|
|
2010
|
+
const l = n?.[z]?.[Y] ?? n;
|
|
2005
2011
|
if (f === l) return true;
|
|
2006
|
-
const c = e[
|
|
2012
|
+
const c = e[$]?.length || e[Z]?.length || i.length;
|
|
2007
2013
|
if (l !== undefined && l === s) delete e[u][t];
|
|
2008
2014
|
else (e[u] || (e[u] = Object.create(null)))[t] = l;
|
|
2009
2015
|
const a = isWrappable(l);
|
|
2010
2016
|
if (isWrappable(f)) {
|
|
2011
|
-
const e =
|
|
2012
|
-
e && (e instanceof Set ? e.delete(r) :
|
|
2017
|
+
const e = X.get(f);
|
|
2018
|
+
e && (e instanceof Set ? e.delete(r) : X.delete(f));
|
|
2013
2019
|
}
|
|
2014
|
-
if (recursivelyNotify(r,
|
|
2015
|
-
e[
|
|
2016
|
-
const d = getNodes(e,
|
|
2020
|
+
if (recursivelyNotify(r, oe) && a) recursivelyAddParent(l, r);
|
|
2021
|
+
e[te]?.[t] && setSignal(e[te][t], true);
|
|
2022
|
+
const d = getNodes(e, ee);
|
|
2017
2023
|
d[t] && setSignal(d[t], () => (a ? wrap(l, e) : l));
|
|
2018
2024
|
if (Array.isArray(i)) {
|
|
2019
2025
|
if (t === "length") {
|
|
@@ -2023,44 +2029,44 @@ const fe = {
|
|
|
2023
2029
|
if (e > c) d.length && setSignal(d.length, e);
|
|
2024
2030
|
}
|
|
2025
2031
|
}
|
|
2026
|
-
d[
|
|
2032
|
+
d[G] && setSignal(d[G], undefined);
|
|
2027
2033
|
});
|
|
2028
2034
|
}
|
|
2029
2035
|
return true;
|
|
2030
2036
|
},
|
|
2031
2037
|
deleteProperty(e, t) {
|
|
2032
|
-
const n = e[
|
|
2033
|
-
const r = e[
|
|
2034
|
-
if (writeOnly(e[
|
|
2038
|
+
const n = e[$]?.[t] === J;
|
|
2039
|
+
const r = e[Z]?.[t] === J;
|
|
2040
|
+
if (writeOnly(e[U]) && !n && !r) {
|
|
2035
2041
|
untrack(() => {
|
|
2036
|
-
const n = e[
|
|
2037
|
-
const r = n ?
|
|
2038
|
-
if (n) trackOptimisticStore(e[
|
|
2039
|
-
const i = e[
|
|
2040
|
-
if (t in e[
|
|
2041
|
-
(e[r] || (e[r] = Object.create(null)))[t] =
|
|
2042
|
+
const n = e[se] && !C;
|
|
2043
|
+
const r = n ? $ : Z;
|
|
2044
|
+
if (n) trackOptimisticStore(e[U]);
|
|
2045
|
+
const i = e[$] && t in e[$] ? e[$][t] : e[Z] && t in e[Z] ? e[Z][t] : e[Y][t];
|
|
2046
|
+
if (t in e[Y] || (e[Z] && t in e[Z])) {
|
|
2047
|
+
(e[r] || (e[r] = Object.create(null)))[t] = J;
|
|
2042
2048
|
} else if (e[r] && t in e[r]) {
|
|
2043
2049
|
delete e[r][t];
|
|
2044
2050
|
} else return true;
|
|
2045
2051
|
if (isWrappable(i)) {
|
|
2046
|
-
const t =
|
|
2047
|
-
t && (t instanceof Set ? t.delete(e) :
|
|
2052
|
+
const t = X.get(i);
|
|
2053
|
+
t && (t instanceof Set ? t.delete(e) : X.delete(i));
|
|
2048
2054
|
}
|
|
2049
|
-
if (e[
|
|
2050
|
-
const s = getNodes(e,
|
|
2055
|
+
if (e[te]?.[t]) setSignal(e[te][t], false);
|
|
2056
|
+
const s = getNodes(e, ee);
|
|
2051
2057
|
s[t] && setSignal(s[t], undefined);
|
|
2052
|
-
s[
|
|
2058
|
+
s[G] && setSignal(s[G], undefined);
|
|
2053
2059
|
});
|
|
2054
2060
|
}
|
|
2055
2061
|
return true;
|
|
2056
2062
|
},
|
|
2057
2063
|
ownKeys(e) {
|
|
2058
2064
|
trackSelf(e);
|
|
2059
|
-
let t = getKeys(e[
|
|
2060
|
-
if (e[
|
|
2065
|
+
let t = getKeys(e[Y], e[Z], false);
|
|
2066
|
+
if (e[$]) {
|
|
2061
2067
|
const n = new Set(t);
|
|
2062
|
-
for (const t of Reflect.ownKeys(e[
|
|
2063
|
-
if (e[
|
|
2068
|
+
for (const t of Reflect.ownKeys(e[$])) {
|
|
2069
|
+
if (e[$][t] !== J) n.add(t);
|
|
2064
2070
|
else n.delete(t);
|
|
2065
2071
|
}
|
|
2066
2072
|
t = Array.from(n);
|
|
@@ -2068,25 +2074,25 @@ const fe = {
|
|
|
2068
2074
|
return t;
|
|
2069
2075
|
},
|
|
2070
2076
|
getOwnPropertyDescriptor(e, t) {
|
|
2071
|
-
if (t ===
|
|
2072
|
-
if (e[
|
|
2073
|
-
if (e[
|
|
2074
|
-
const n = getPropertyDescriptor(e[
|
|
2077
|
+
if (t === U) return { value: e[U], writable: true, configurable: true };
|
|
2078
|
+
if (e[$] && t in e[$]) {
|
|
2079
|
+
if (e[$][t] === J) return undefined;
|
|
2080
|
+
const n = getPropertyDescriptor(e[Y], e[Z], t);
|
|
2075
2081
|
if (n) {
|
|
2076
|
-
return { ...n, value: e[
|
|
2082
|
+
return { ...n, value: e[$][t] };
|
|
2077
2083
|
}
|
|
2078
|
-
return { value: e[
|
|
2084
|
+
return { value: e[$][t], writable: true, enumerable: true, configurable: true };
|
|
2079
2085
|
}
|
|
2080
|
-
return getPropertyDescriptor(e[
|
|
2086
|
+
return getPropertyDescriptor(e[Y], e[Z], t);
|
|
2081
2087
|
},
|
|
2082
2088
|
getPrototypeOf(e) {
|
|
2083
|
-
return Object.getPrototypeOf(e[
|
|
2089
|
+
return Object.getPrototypeOf(e[Y]);
|
|
2084
2090
|
}
|
|
2085
2091
|
};
|
|
2086
2092
|
function storeSetter(e, t) {
|
|
2087
|
-
const n =
|
|
2088
|
-
|
|
2089
|
-
|
|
2093
|
+
const n = fe;
|
|
2094
|
+
fe = new Set();
|
|
2095
|
+
fe.add(e);
|
|
2090
2096
|
try {
|
|
2091
2097
|
const n = t(e);
|
|
2092
2098
|
if (n !== e && n !== undefined) {
|
|
@@ -2102,8 +2108,8 @@ function storeSetter(e, t) {
|
|
|
2102
2108
|
}
|
|
2103
2109
|
}
|
|
2104
2110
|
} finally {
|
|
2105
|
-
|
|
2106
|
-
|
|
2111
|
+
fe.clear();
|
|
2112
|
+
fe = n;
|
|
2107
2113
|
}
|
|
2108
2114
|
}
|
|
2109
2115
|
function createStore(e, t, n) {
|
|
@@ -2112,17 +2118,17 @@ function createStore(e, t, n) {
|
|
|
2112
2118
|
return [i, e => storeSetter(i, e)];
|
|
2113
2119
|
}
|
|
2114
2120
|
function recursivelyNotify(e, t) {
|
|
2115
|
-
let n = e[
|
|
2121
|
+
let n = e[z] || t?.get(e)?.[z];
|
|
2116
2122
|
let r = false;
|
|
2117
2123
|
if (n) {
|
|
2118
|
-
const e = getNodes(n,
|
|
2124
|
+
const e = getNodes(n, ee)[K];
|
|
2119
2125
|
if (e) {
|
|
2120
2126
|
setSignal(e, undefined);
|
|
2121
2127
|
r = true;
|
|
2122
2128
|
}
|
|
2123
|
-
t = n[
|
|
2129
|
+
t = n[re] || t;
|
|
2124
2130
|
}
|
|
2125
|
-
const i =
|
|
2131
|
+
const i = X.get(n?.[Y] || e);
|
|
2126
2132
|
if (!i) return r;
|
|
2127
2133
|
if (i instanceof Set) {
|
|
2128
2134
|
for (let e of i) r = recursivelyNotify(e, t) || r;
|
|
@@ -2131,16 +2137,16 @@ function recursivelyNotify(e, t) {
|
|
|
2131
2137
|
}
|
|
2132
2138
|
function recursivelyAddParent(e, t) {
|
|
2133
2139
|
let n;
|
|
2134
|
-
const r = e[
|
|
2140
|
+
const r = e[z];
|
|
2135
2141
|
if (r) {
|
|
2136
|
-
n = r[
|
|
2137
|
-
e = r[
|
|
2142
|
+
n = r[Z];
|
|
2143
|
+
e = r[Y];
|
|
2138
2144
|
}
|
|
2139
2145
|
if (t) {
|
|
2140
|
-
let n =
|
|
2141
|
-
if (!n)
|
|
2146
|
+
let n = X.get(e);
|
|
2147
|
+
if (!n) X.set(e, t);
|
|
2142
2148
|
else if (n !== t) {
|
|
2143
|
-
if (!(n instanceof Set))
|
|
2149
|
+
if (!(n instanceof Set)) X.set(e, (n = new Set([n])));
|
|
2144
2150
|
else if (n.has(t)) return;
|
|
2145
2151
|
n.add(t);
|
|
2146
2152
|
} else return;
|
|
@@ -2162,7 +2168,7 @@ function recursivelyAddParent(e, t) {
|
|
|
2162
2168
|
}
|
|
2163
2169
|
function deep(e) {
|
|
2164
2170
|
recursivelyAddParent(e);
|
|
2165
|
-
return e[
|
|
2171
|
+
return e[K];
|
|
2166
2172
|
}
|
|
2167
2173
|
function createOptimisticStore(e, t, n) {
|
|
2168
2174
|
GlobalQueue.J ||= clearOptimisticStore;
|
|
@@ -2173,39 +2179,39 @@ function createOptimisticStore(e, t, n) {
|
|
|
2173
2179
|
return [o, e => storeSetter(o, e)];
|
|
2174
2180
|
}
|
|
2175
2181
|
function clearOptimisticStore(e) {
|
|
2176
|
-
const t = e[
|
|
2177
|
-
if (!t || !t[
|
|
2178
|
-
const n = t[
|
|
2179
|
-
const r = t[
|
|
2182
|
+
const t = e[z];
|
|
2183
|
+
if (!t || !t[$]) return;
|
|
2184
|
+
const n = t[$];
|
|
2185
|
+
const r = t[ee];
|
|
2180
2186
|
setProjectionWriteActive(true);
|
|
2181
2187
|
try {
|
|
2182
2188
|
if (r) {
|
|
2183
2189
|
for (const e of Reflect.ownKeys(n)) {
|
|
2184
2190
|
if (r[e]) {
|
|
2185
2191
|
r[e].re = undefined;
|
|
2186
|
-
const n = t[
|
|
2187
|
-
const i = n ===
|
|
2192
|
+
const n = t[Z] && e in t[Z] ? t[Z][e] : t[Y][e];
|
|
2193
|
+
const i = n === J ? undefined : n;
|
|
2188
2194
|
setSignal(r[e], isWrappable(i) ? wrap(i, t) : i);
|
|
2189
2195
|
}
|
|
2190
2196
|
}
|
|
2191
|
-
if (r[
|
|
2192
|
-
r[
|
|
2193
|
-
setSignal(r[
|
|
2197
|
+
if (r[G]) {
|
|
2198
|
+
r[G].re = undefined;
|
|
2199
|
+
setSignal(r[G], undefined);
|
|
2194
2200
|
}
|
|
2195
2201
|
}
|
|
2196
2202
|
} finally {
|
|
2197
2203
|
setProjectionWriteActive(false);
|
|
2198
2204
|
}
|
|
2199
|
-
delete t[
|
|
2205
|
+
delete t[$];
|
|
2200
2206
|
}
|
|
2201
2207
|
function createOptimisticProjectionInternal(e, t = {}, n) {
|
|
2202
2208
|
let r;
|
|
2203
2209
|
const i = new WeakMap();
|
|
2204
2210
|
const wrapper = e => {
|
|
2205
|
-
e[
|
|
2206
|
-
e[
|
|
2207
|
-
e[
|
|
2208
|
-
Object.defineProperty(e,
|
|
2211
|
+
e[ne] = wrapProjection;
|
|
2212
|
+
e[re] = i;
|
|
2213
|
+
e[se] = true;
|
|
2214
|
+
Object.defineProperty(e, ie, {
|
|
2209
2215
|
get() {
|
|
2210
2216
|
return r;
|
|
2211
2217
|
},
|
|
@@ -2214,8 +2220,8 @@ function createOptimisticProjectionInternal(e, t = {}, n) {
|
|
|
2214
2220
|
};
|
|
2215
2221
|
const wrapProjection = e => {
|
|
2216
2222
|
if (i.has(e)) return i.get(e);
|
|
2217
|
-
if (e[
|
|
2218
|
-
const t = createStoreProxy(e,
|
|
2223
|
+
if (e[z]?.[ne] === wrapProjection) return e;
|
|
2224
|
+
const t = createStoreProxy(e, le, wrapper);
|
|
2219
2225
|
i.set(e, t);
|
|
2220
2226
|
return t;
|
|
2221
2227
|
};
|
|
@@ -2225,7 +2231,7 @@ function createOptimisticProjectionInternal(e, t = {}, n) {
|
|
|
2225
2231
|
const t = getOwner();
|
|
2226
2232
|
setProjectionWriteActive(true);
|
|
2227
2233
|
try {
|
|
2228
|
-
storeSetter(new Proxy(s,
|
|
2234
|
+
storeSetter(new Proxy(s, B), r => {
|
|
2229
2235
|
const i = handleAsync(t, e(r), e => {
|
|
2230
2236
|
setProjectionWriteActive(true);
|
|
2231
2237
|
try {
|
|
@@ -2244,17 +2250,79 @@ function createOptimisticProjectionInternal(e, t = {}, n) {
|
|
|
2244
2250
|
}
|
|
2245
2251
|
return { store: s, node: r };
|
|
2246
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
|
+
);
|
|
2247
2315
|
function snapshot(e, t, n) {
|
|
2248
2316
|
let r, i, s, o, u, f;
|
|
2249
2317
|
if (!isWrappable(e)) return e;
|
|
2250
2318
|
if (t && t.has(e)) return t.get(e);
|
|
2251
2319
|
if (!t) t = new Map();
|
|
2252
|
-
if ((r = e[
|
|
2253
|
-
s = r[
|
|
2254
|
-
i = Array.isArray(r[
|
|
2255
|
-
t.set(e, s ? (o = i ? [] : Object.create(Object.getPrototypeOf(r[
|
|
2256
|
-
e = r[
|
|
2257
|
-
n =
|
|
2320
|
+
if ((r = e[z] || n?.get(e)?.[z])) {
|
|
2321
|
+
s = r[Z];
|
|
2322
|
+
i = Array.isArray(r[Y]);
|
|
2323
|
+
t.set(e, s ? (o = i ? [] : Object.create(Object.getPrototypeOf(r[Y]))) : r[Y]);
|
|
2324
|
+
e = r[Y];
|
|
2325
|
+
n = oe;
|
|
2258
2326
|
} else {
|
|
2259
2327
|
i = Array.isArray(e);
|
|
2260
2328
|
t.set(e, e);
|
|
@@ -2263,7 +2331,7 @@ function snapshot(e, t, n) {
|
|
|
2263
2331
|
const r = s?.length || e.length;
|
|
2264
2332
|
for (let i = 0; i < r; i++) {
|
|
2265
2333
|
f = s && i in s ? s[i] : e[i];
|
|
2266
|
-
if (f ===
|
|
2334
|
+
if (f === J) continue;
|
|
2267
2335
|
if ((u = snapshot(f, t, n)) !== f || o) {
|
|
2268
2336
|
if (!o) t.set(e, (o = [...e]));
|
|
2269
2337
|
o[i] = u;
|
|
@@ -2290,13 +2358,13 @@ function snapshot(e, t, n) {
|
|
|
2290
2358
|
function trueFn() {
|
|
2291
2359
|
return true;
|
|
2292
2360
|
}
|
|
2293
|
-
const
|
|
2361
|
+
const de = {
|
|
2294
2362
|
get(e, t, n) {
|
|
2295
|
-
if (t ===
|
|
2363
|
+
if (t === U) return n;
|
|
2296
2364
|
return e.get(t);
|
|
2297
2365
|
},
|
|
2298
2366
|
has(e, t) {
|
|
2299
|
-
if (t ===
|
|
2367
|
+
if (t === U) return true;
|
|
2300
2368
|
return e.has(t);
|
|
2301
2369
|
},
|
|
2302
2370
|
set: trueFn,
|
|
@@ -2319,23 +2387,23 @@ const le = {
|
|
|
2319
2387
|
function resolveSource(e) {
|
|
2320
2388
|
return !(e = typeof e === "function" ? e() : e) ? {} : e;
|
|
2321
2389
|
}
|
|
2322
|
-
const
|
|
2390
|
+
const pe = Symbol(0);
|
|
2323
2391
|
function merge(...e) {
|
|
2324
2392
|
if (e.length === 1 && typeof e[0] !== "function") return e[0];
|
|
2325
2393
|
let t = false;
|
|
2326
2394
|
const n = [];
|
|
2327
2395
|
for (let r = 0; r < e.length; r++) {
|
|
2328
2396
|
const i = e[r];
|
|
2329
|
-
t = t || (!!i &&
|
|
2330
|
-
const s = !!i && i[
|
|
2397
|
+
t = t || (!!i && U in i);
|
|
2398
|
+
const s = !!i && i[pe];
|
|
2331
2399
|
if (s) n.push(...s);
|
|
2332
2400
|
else n.push(typeof i === "function" ? ((t = true), createMemo(i)) : i);
|
|
2333
2401
|
}
|
|
2334
|
-
if (
|
|
2402
|
+
if (b && t) {
|
|
2335
2403
|
return new Proxy(
|
|
2336
2404
|
{
|
|
2337
2405
|
get(e) {
|
|
2338
|
-
if (e ===
|
|
2406
|
+
if (e === pe) return n;
|
|
2339
2407
|
for (let t = n.length - 1; t >= 0; t--) {
|
|
2340
2408
|
const r = resolveSource(n[t]);
|
|
2341
2409
|
if (e in r) return r[e];
|
|
@@ -2353,7 +2421,7 @@ function merge(...e) {
|
|
|
2353
2421
|
return [...new Set(e)];
|
|
2354
2422
|
}
|
|
2355
2423
|
},
|
|
2356
|
-
|
|
2424
|
+
de
|
|
2357
2425
|
);
|
|
2358
2426
|
}
|
|
2359
2427
|
const r = Object.create(null);
|
|
@@ -2385,12 +2453,12 @@ function merge(...e) {
|
|
|
2385
2453
|
if (n.get) Object.defineProperty(o, t, n);
|
|
2386
2454
|
else o[t] = n.value;
|
|
2387
2455
|
}
|
|
2388
|
-
o[
|
|
2456
|
+
o[pe] = n;
|
|
2389
2457
|
return o;
|
|
2390
2458
|
}
|
|
2391
2459
|
function omit(e, ...t) {
|
|
2392
2460
|
const n = new Set(t);
|
|
2393
|
-
if (
|
|
2461
|
+
if (b && U in e) {
|
|
2394
2462
|
return new Proxy(
|
|
2395
2463
|
{
|
|
2396
2464
|
get(t) {
|
|
@@ -2403,7 +2471,7 @@ function omit(e, ...t) {
|
|
|
2403
2471
|
return Object.keys(e).filter(e => !n.has(e));
|
|
2404
2472
|
}
|
|
2405
2473
|
},
|
|
2406
|
-
|
|
2474
|
+
de
|
|
2407
2475
|
);
|
|
2408
2476
|
}
|
|
2409
2477
|
const r = {};
|
|
@@ -2419,34 +2487,36 @@ function omit(e, ...t) {
|
|
|
2419
2487
|
}
|
|
2420
2488
|
function mapArray(e, t, n) {
|
|
2421
2489
|
const r = typeof n?.keyed === "function" ? n.keyed : undefined;
|
|
2490
|
+
const i = t.length > 1;
|
|
2491
|
+
const s = t;
|
|
2422
2492
|
return createMemo(
|
|
2423
2493
|
updateKeyedMap.bind({
|
|
2424
2494
|
De: createOwner(),
|
|
2425
2495
|
Be: 0,
|
|
2426
2496
|
Ge: e,
|
|
2427
2497
|
Ke: [],
|
|
2428
|
-
ze:
|
|
2498
|
+
ze: s,
|
|
2429
2499
|
Ue: [],
|
|
2430
2500
|
Je: [],
|
|
2431
2501
|
Xe: r,
|
|
2432
2502
|
Ye: r || n?.keyed === false ? [] : undefined,
|
|
2433
|
-
Ze:
|
|
2503
|
+
Ze: i ? [] : undefined,
|
|
2434
2504
|
$e: n?.fallback
|
|
2435
2505
|
})
|
|
2436
2506
|
);
|
|
2437
2507
|
}
|
|
2438
|
-
const
|
|
2508
|
+
const he = { pureWrite: true };
|
|
2439
2509
|
function updateKeyedMap() {
|
|
2440
2510
|
const e = this.Ge() || [],
|
|
2441
2511
|
t = e.length;
|
|
2442
|
-
e[
|
|
2512
|
+
e[G];
|
|
2443
2513
|
runWithOwner(this.De, () => {
|
|
2444
2514
|
let n,
|
|
2445
2515
|
r,
|
|
2446
2516
|
i = this.Ye
|
|
2447
2517
|
? () => {
|
|
2448
|
-
this.Ye[r] = signal(e[r],
|
|
2449
|
-
this.Ze && (this.Ze[r] = signal(r,
|
|
2518
|
+
this.Ye[r] = signal(e[r], he);
|
|
2519
|
+
this.Ze && (this.Ze[r] = signal(r, he));
|
|
2450
2520
|
return this.ze(
|
|
2451
2521
|
read.bind(null, this.Ye[r]),
|
|
2452
2522
|
this.Ze ? read.bind(null, this.Ze[r]) : undefined
|
|
@@ -2455,7 +2525,7 @@ function updateKeyedMap() {
|
|
|
2455
2525
|
: this.Ze
|
|
2456
2526
|
? () => {
|
|
2457
2527
|
const t = e[r];
|
|
2458
|
-
this.Ze[r] = signal(r,
|
|
2528
|
+
this.Ze[r] = signal(r, he);
|
|
2459
2529
|
return this.ze(() => t, read.bind(null, this.Ze[r]));
|
|
2460
2530
|
}
|
|
2461
2531
|
: () => {
|
|
@@ -2559,12 +2629,13 @@ function updateKeyedMap() {
|
|
|
2559
2629
|
return this.Ue;
|
|
2560
2630
|
}
|
|
2561
2631
|
function repeat(e, t, n) {
|
|
2632
|
+
const r = t;
|
|
2562
2633
|
return updateRepeat.bind({
|
|
2563
2634
|
De: createOwner(),
|
|
2564
2635
|
Be: 0,
|
|
2565
2636
|
et: 0,
|
|
2566
2637
|
tt: e,
|
|
2567
|
-
ze:
|
|
2638
|
+
ze: r,
|
|
2568
2639
|
Je: [],
|
|
2569
2640
|
Ue: [],
|
|
2570
2641
|
nt: n?.from,
|
|
@@ -2754,13 +2825,13 @@ function flattenArray(e, t = [], n) {
|
|
|
2754
2825
|
if (r) throw r;
|
|
2755
2826
|
return i;
|
|
2756
2827
|
}
|
|
2757
|
-
exports.$PROXY =
|
|
2758
|
-
exports.$TARGET =
|
|
2759
|
-
exports.$TRACK =
|
|
2828
|
+
exports.$PROXY = U;
|
|
2829
|
+
exports.$TARGET = z;
|
|
2830
|
+
exports.$TRACK = G;
|
|
2760
2831
|
exports.ContextNotFoundError = ContextNotFoundError;
|
|
2761
2832
|
exports.NoOwnerError = NoOwnerError;
|
|
2762
2833
|
exports.NotReadyError = NotReadyError;
|
|
2763
|
-
exports.SUPPORTS_PROXY =
|
|
2834
|
+
exports.SUPPORTS_PROXY = b;
|
|
2764
2835
|
exports.action = action;
|
|
2765
2836
|
exports.clearSnapshots = clearSnapshots;
|
|
2766
2837
|
exports.createContext = createContext;
|
|
@@ -2790,6 +2861,7 @@ exports.isEqual = isEqual;
|
|
|
2790
2861
|
exports.isPending = isPending;
|
|
2791
2862
|
exports.isRefreshing = isRefreshing;
|
|
2792
2863
|
exports.isWrappable = isWrappable;
|
|
2864
|
+
exports.latest = latest;
|
|
2793
2865
|
exports.mapArray = mapArray;
|
|
2794
2866
|
exports.markSnapshotScope = markSnapshotScope;
|
|
2795
2867
|
exports.merge = merge;
|
|
@@ -2797,7 +2869,6 @@ exports.omit = omit;
|
|
|
2797
2869
|
exports.onCleanup = onCleanup;
|
|
2798
2870
|
exports.onSettled = onSettled;
|
|
2799
2871
|
exports.peekNextChildId = peekNextChildId;
|
|
2800
|
-
exports.pending = pending;
|
|
2801
2872
|
exports.reconcile = reconcile;
|
|
2802
2873
|
exports.refresh = refresh;
|
|
2803
2874
|
exports.releaseSnapshotScope = releaseSnapshotScope;
|
|
@@ -2806,5 +2877,7 @@ exports.resolve = resolve;
|
|
|
2806
2877
|
exports.runWithOwner = runWithOwner;
|
|
2807
2878
|
exports.setContext = setContext;
|
|
2808
2879
|
exports.setSnapshotCapture = setSnapshotCapture;
|
|
2880
|
+
exports.setStrictRead = setStrictRead;
|
|
2809
2881
|
exports.snapshot = snapshot;
|
|
2882
|
+
exports.storePath = ae;
|
|
2810
2883
|
exports.untrack = untrack;
|