@solidrt/cli 0.0.54 → 0.0.55

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.
@@ -1,4 +1,4 @@
1
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/error.js
1
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/error.js
2
2
  class NotReadyError extends Error {
3
3
  source;
4
4
  constructor(r) {
@@ -37,7 +37,7 @@ class ContextNotFoundError extends Error {
37
37
  super("");
38
38
  }
39
39
  }
40
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/constants.js
40
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/constants.js
41
41
  var REACTIVE_NONE = 0;
42
42
  var REACTIVE_CHECK = 1 << 0;
43
43
  var REACTIVE_DIRTY = 1 << 1;
@@ -81,12 +81,12 @@ var SUPPORTS_PROXY = typeof Proxy === "function";
81
81
  var defaultContext = {};
82
82
  var $REFRESH = Symbol("refresh");
83
83
 
84
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/lanes.js
84
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/lanes.js
85
85
  var signalLanes = new WeakMap;
86
86
  var activeLanes = new Set;
87
87
  function findLane(n) {
88
- while (n.tn)
89
- n = n.tn;
88
+ while (n.an)
89
+ n = n.an;
90
90
  return n;
91
91
  }
92
92
  function mergeLanes(n, e) {
@@ -94,14 +94,14 @@ function mergeLanes(n, e) {
94
94
  e = findLane(e);
95
95
  if (n === e)
96
96
  return n;
97
- e.tn = n;
97
+ e.an = n;
98
98
  for (const i of e.Ae)
99
99
  n.Ae.add(i);
100
100
  e.Ae.clear();
101
- n.en[0].push(...e.en[0]);
102
- n.en[1].push(...e.en[1]);
103
- e.en[0].length = 0;
104
- e.en[1].length = 0;
101
+ n.rn[0].push(...e.rn[0]);
102
+ n.rn[1].push(...e.rn[1]);
103
+ e.rn[0].length = 0;
104
+ e.rn[1].length = 0;
105
105
  return n;
106
106
  }
107
107
  function resolveLane(n) {
@@ -116,12 +116,12 @@ function resolveLane(n) {
116
116
  return;
117
117
  }
118
118
  function resolveTransition(n) {
119
- if (hasActiveOverride(n) && n.o?.Et) {
120
- const e = ext(n).Et = currentTransition(n.o?.Et);
121
- if (e.an !== true)
119
+ if (hasActiveOverride(n) && n.o?.Nt) {
120
+ const e = ext(n).Nt = currentTransition(n.o?.Nt);
121
+ if (e.fn !== true)
122
122
  return e;
123
123
  if (n.o !== null)
124
- n.o.Et = null;
124
+ n.o.Nt = null;
125
125
  }
126
126
  return resolveLane(n)?._e ?? n._e;
127
127
  }
@@ -133,7 +133,7 @@ function assignOrMergeLane(n, e) {
133
133
  const i = findLane(e);
134
134
  const t = n.o?.Be;
135
135
  if (t) {
136
- if (t.tn) {
136
+ if (t.an) {
137
137
  ext(n).Be = e;
138
138
  n.T |= CONFIG_HAS_LANE;
139
139
  return;
@@ -141,10 +141,10 @@ function assignOrMergeLane(n, e) {
141
141
  const r = findLane(t);
142
142
  if (activeLanes.has(r)) {
143
143
  if (r !== i && !hasActiveOverride(n)) {
144
- if (i.rn && findLane(i.rn) === r) {
144
+ if (i.sn && findLane(i.sn) === r) {
145
145
  ext(n).Be = e;
146
146
  n.T |= CONFIG_HAS_LANE;
147
- } else if (r.rn && findLane(r.rn) === i)
147
+ } else if (r.sn && findLane(r.sn) === i)
148
148
  ;
149
149
  else
150
150
  mergeLanes(i, r);
@@ -156,7 +156,7 @@ function assignOrMergeLane(n, e) {
156
156
  n.T |= CONFIG_HAS_LANE;
157
157
  }
158
158
 
159
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/scheduler.js
159
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/scheduler.js
160
160
  var transitions = new Set;
161
161
  var dirtyQueue = {
162
162
  eE: new Array(2000).fill(undefined),
@@ -187,8 +187,8 @@ var syncDepth = 0;
187
187
  var projectionWriteActive = false;
188
188
  var transientStoreNodes = new Set;
189
189
  function canUseSimpleSyncFlush(e) {
190
- const t = e.k;
191
- return transitions.size === 0 && activeLanes.size === 0 && e.Qt.length === 0 && t.Ke.length === 0 && t.m.length === 0 && t.cn.size === 0 && transientStoreNodes.size === 0;
190
+ const t = e.m;
191
+ return transitions.size === 0 && activeLanes.size === 0 && e.Qt.length === 0 && t.Ke.length === 0 && t.A.length === 0 && t.Tn.size === 0 && transientStoreNodes.size === 0;
192
192
  }
193
193
  function sweepTransientStoreNodes() {
194
194
  if (transientStoreNodes.size === 0)
@@ -214,42 +214,56 @@ function createBatch() {
214
214
  yt: [],
215
215
  Ne: new Map,
216
216
  Ke: [],
217
- m: [],
218
- cn: new Set,
219
- oe: [],
217
+ A: [],
218
+ Tn: new Set,
219
+ ue: [],
220
220
  bt: {
221
221
  Lt: [[], []],
222
222
  Qt: []
223
223
  },
224
- an: false,
225
- ln: new Set
224
+ fn: false,
225
+ cn: new Set
226
226
  };
227
227
  }
228
228
  function mergeTransitionState(e, t) {
229
- t.an = e;
230
- e.oe.push(...t.oe);
231
- for (const i of activeLanes)
232
- if (i._e === t)
233
- i._e = e;
229
+ t.fn = e;
230
+ e.ue.push(...t.ue);
231
+ for (const i2 of activeLanes)
232
+ if (i2._e === t)
233
+ i2._e = e;
234
234
  if (t.Ke.length) {
235
235
  e.Ke.push(...t.Ke);
236
236
  t.Ke.length = 0;
237
237
  }
238
- if (t.m.length) {
239
- e.m.push(...t.m);
240
- t.m.length = 0;
238
+ if (t.A.length) {
239
+ e.A.push(...t.A);
240
+ t.A.length = 0;
241
+ }
242
+ for (const i2 of t.Tn)
243
+ e.Tn.add(i2);
244
+ const i = t.Mt;
245
+ if (i !== undefined) {
246
+ t.Mt = undefined;
247
+ let n = e.Mt;
248
+ if (n !== undefined)
249
+ n.push(...i);
250
+ else
251
+ n = e.Mt = i;
252
+ for (let e2 = 0;e2 < i.length; e2++) {
253
+ const t2 = i[e2].pc;
254
+ if (t2 !== undefined && t2.qe === i[e2])
255
+ t2.qa = n;
256
+ }
241
257
  }
242
- for (const i of t.cn)
243
- e.cn.add(i);
244
- for (const [i, n] of t.Ne) {
245
- let t2 = e.Ne.get(i);
258
+ for (const [i2, n] of t.Ne) {
259
+ let t2 = e.Ne.get(i2);
246
260
  if (!t2)
247
- e.Ne.set(i, t2 = new Set);
261
+ e.Ne.set(i2, t2 = new Set);
248
262
  for (const e2 of n)
249
263
  t2.add(e2);
250
264
  }
251
- for (const i of t.ln)
252
- e.ln.add(i);
265
+ for (const i2 of t.cn)
266
+ e.cn.add(i2);
253
267
  }
254
268
  function schedule() {
255
269
  if (halted) {
@@ -259,7 +273,7 @@ function schedule() {
259
273
  if (scheduled)
260
274
  return;
261
275
  scheduled = true;
262
- if (!syncDepth && !globalQueue.sn && !projectionWriteActive)
276
+ if (!syncDepth && !globalQueue.En && !projectionWriteActive)
263
277
  queueMicrotask(flush);
264
278
  }
265
279
  function haltReactivity(e) {
@@ -278,25 +292,25 @@ function notifyHalted() {
278
292
  var queueRunToken = 0;
279
293
 
280
294
  class Queue {
281
- ve = null;
295
+ ke = null;
282
296
  Lt = [[], []];
283
297
  Qt = [];
284
- Mt = 0;
298
+ Vt = 0;
285
299
  created = clock;
286
300
  addChild(e) {
287
301
  this.Qt.push(e);
288
- e.ve = this;
302
+ e.ke = this;
289
303
  }
290
304
  removeChild(e) {
291
305
  const t = this.Qt.indexOf(e);
292
306
  if (t >= 0) {
293
307
  this.Qt.splice(t, 1);
294
- e.ve = null;
308
+ e.ke = null;
295
309
  }
296
310
  }
297
311
  notify(e, t, i, n) {
298
- if (this.ve)
299
- return this.ve.notify(e, t, i, n);
312
+ if (this.ke)
313
+ return this.ke.notify(e, t, i, n);
300
314
  return false;
301
315
  }
302
316
  run(e) {
@@ -309,8 +323,8 @@ class Queue {
309
323
  const i = ++queueRunToken;
310
324
  for (let n = 0;n < t.length; ) {
311
325
  const s = t[n];
312
- if (s.Mt !== i) {
313
- s.Mt = i;
326
+ if (s.Vt !== i) {
327
+ s.Vt = i;
314
328
  s.run?.(e);
315
329
  if (t[n] !== s) {
316
330
  n = 0;
@@ -324,7 +338,7 @@ class Queue {
324
338
  if (e) {
325
339
  if (currentOptimisticLane) {
326
340
  const i = findLane(currentOptimisticLane);
327
- i.en[e - 1].push(t);
341
+ i.rn[e - 1].push(t);
328
342
  } else {
329
343
  this.Lt[e - 1].push(t);
330
344
  }
@@ -361,16 +375,16 @@ class Queue {
361
375
  }
362
376
 
363
377
  class GlobalQueue extends Queue {
364
- sn = false;
365
- k = createBatch();
378
+ En = false;
379
+ m = createBatch();
366
380
  static Ce;
367
381
  static Fe;
368
382
  static tt;
369
- static Vt = null;
383
+ static Bt = null;
384
+ static p = null;
370
385
  static G = null;
371
386
  static M = null;
372
- static h = null;
373
- static j = null;
387
+ static N = null;
374
388
  static Rt = null;
375
389
  static Gt = null;
376
390
  static Oe = null;
@@ -381,61 +395,64 @@ class GlobalQueue extends Queue {
381
395
  static Dt = null;
382
396
  static Ht = null;
383
397
  static Je = null;
384
- static p = null;
385
- static Bt = null;
398
+ static k = null;
386
399
  static wt = null;
387
- static vt = null;
388
- static fn = null;
389
- static En = null;
390
- static Tn = null;
400
+ static jt = null;
401
+ static kt = null;
391
402
  static dn = null;
403
+ static In = null;
404
+ static Nn = null;
405
+ static _n = null;
406
+ static ln = null;
392
407
  static Ft = null;
393
408
  static ht = null;
394
409
  static gt = null;
395
410
  static je = null;
396
411
  static $e = null;
397
412
  static ze = null;
398
- static In = null;
413
+ static An = null;
399
414
  flush() {
400
- if (this.sn)
415
+ if (this.En)
401
416
  return;
402
417
  if (activeTransition === null && dirtyQueue.EE < dirtyQueue.xe && this.Lt[0].length === 0 && this.Lt[1].length === 0 && this.Qt.length === 0 && canUseSimpleSyncFlush(this)) {
403
- this.sn = true;
418
+ this.En = true;
404
419
  try {
420
+ sweepDormant();
405
421
  commitPendingNodes();
406
422
  } finally {
407
- this.sn = false;
423
+ this.En = false;
408
424
  }
409
425
  clock++;
410
- scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.Lt[0].length !== 0 || this.Lt[1].length !== 0 || this.k.yt.length !== 0;
426
+ scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.Lt[0].length !== 0 || this.Lt[1].length !== 0 || this.m.yt.length !== 0;
411
427
  return;
412
428
  }
413
- this.sn = true;
429
+ this.En = true;
414
430
  try {
415
431
  if (false)
416
432
  ;
433
+ sweepDormant();
417
434
  runHeap(dirtyQueue, GlobalQueue.Ce);
418
435
  if (activeTransition) {
419
436
  const e = transitionComplete(activeTransition);
420
437
  if (!e) {
421
438
  const e2 = activeTransition;
422
- runHeap(zombieQueue, this.k === e2 ? cancelZombieRecompute : GlobalQueue.Ce);
423
- if (this.k === e2)
424
- currentBatch = this.k = createBatch();
439
+ runHeap(zombieQueue, this.m === e2 ? cancelZombieRecompute : GlobalQueue.Ce);
440
+ if (this.m === e2)
441
+ currentBatch = this.m = createBatch();
425
442
  if (activeLanes.size) {
426
- GlobalQueue.dn(EFFECT_RENDER);
427
- GlobalQueue.dn(EFFECT_USER);
443
+ GlobalQueue._n(EFFECT_RENDER);
444
+ GlobalQueue._n(EFFECT_USER);
428
445
  }
429
446
  this.stashQueues(e2.bt);
430
447
  clock++;
431
- scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.k.yt.length > 0;
448
+ scheduled = dirtyQueue.EE >= dirtyQueue.xe || this.m.yt.length > 0;
432
449
  reassignPendingTransition(e2.yt);
433
450
  activeTransition = null;
434
451
  finalizePureQueue(null, true);
435
452
  return;
436
453
  }
437
454
  const t = activeTransition;
438
- const i = this.k;
455
+ const i = this.m;
439
456
  i !== t && i.yt.push(...t.yt);
440
457
  this.restoreQueues(t.bt);
441
458
  transitions.delete(t);
@@ -446,9 +463,9 @@ class GlobalQueue extends Queue {
446
463
  const e2 = createBatch();
447
464
  e2.yt = i.yt;
448
465
  e2.Ke = i.Ke;
449
- e2.m = i.m;
450
- e2.cn = i.cn;
451
- currentBatch = this.k = e2;
466
+ e2.A = i.A;
467
+ e2.Tn = i.Tn;
468
+ currentBatch = this.m = e2;
452
469
  }
453
470
  } else {
454
471
  if (canUseSimpleSyncFlush(this)) {
@@ -465,9 +482,9 @@ class GlobalQueue extends Queue {
465
482
  }
466
483
  clock++;
467
484
  scheduled = dirtyQueue.EE >= dirtyQueue.xe;
468
- activeLanes.size && GlobalQueue.dn(EFFECT_RENDER);
485
+ activeLanes.size && GlobalQueue._n(EFFECT_RENDER);
469
486
  this.run(EFFECT_RENDER);
470
- activeLanes.size && GlobalQueue.dn(EFFECT_USER);
487
+ activeLanes.size && GlobalQueue._n(EFFECT_USER);
471
488
  this.run(EFFECT_USER);
472
489
  if (false)
473
490
  ;
@@ -476,14 +493,14 @@ class GlobalQueue extends Queue {
476
493
  if (false)
477
494
  ;
478
495
  } finally {
479
- this.sn = false;
496
+ this.En = false;
480
497
  }
481
498
  }
482
499
  notify(e, t, i, n) {
483
500
  if (t & STATUS_PENDING) {
484
501
  if (i & STATUS_PENDING) {
485
502
  const t2 = n !== undefined ? n : e.o?._;
486
- if (t2?.i)
503
+ if (t2?.l)
487
504
  return true;
488
505
  if (activeTransition && t2) {
489
506
  const i2 = t2.source;
@@ -494,7 +511,7 @@ class GlobalQueue extends Queue {
494
511
  n2.add(e);
495
512
  if (n2.size !== s) {
496
513
  schedule();
497
- GlobalQueue.wt?.(activeTransition);
514
+ GlobalQueue.jt?.(activeTransition);
498
515
  }
499
516
  }
500
517
  }
@@ -519,7 +536,7 @@ class GlobalQueue extends Queue {
519
536
  }
520
537
  transitions.add(activeTransition);
521
538
  activeTransition.Te = clock;
522
- const t = this.k;
539
+ const t = this.m;
523
540
  if (t !== activeTransition) {
524
541
  for (let e2 = 0;e2 < t.yt.length; e2++) {
525
542
  const i = t.yt[e2];
@@ -531,16 +548,16 @@ class GlobalQueue extends Queue {
531
548
  i._e = activeTransition;
532
549
  activeTransition.Ke.push(i);
533
550
  }
534
- if (t.m.length)
535
- activeTransition.m.push(...t.m);
536
- for (const e2 of t.cn)
537
- activeTransition.cn.add(e2);
538
- if (t.ln.size) {
539
- for (const e2 of t.ln)
540
- activeTransition.ln.add(e2);
541
- t.ln.clear();
551
+ if (t.A.length)
552
+ activeTransition.A.push(...t.A);
553
+ for (const e2 of t.Tn)
554
+ activeTransition.Tn.add(e2);
555
+ if (t.cn.size) {
556
+ for (const e2 of t.cn)
557
+ activeTransition.cn.add(e2);
558
+ t.cn.clear();
542
559
  }
543
- currentBatch = this.k = activeTransition;
560
+ currentBatch = this.m = activeTransition;
544
561
  }
545
562
  for (const e2 of activeLanes) {
546
563
  if (!e2._e)
@@ -562,11 +579,11 @@ function insertSubs(e, t = false) {
562
579
  const n = (i & CONFIG_HAS_LANE ? e.o?.Be : undefined) || currentOptimisticLane;
563
580
  const s = (i & CONFIG_HAS_SNAPSHOT) !== 0 && e.o?.Qe !== undefined;
564
581
  const o = reaskArmed;
565
- for (let i2 = e.u;i2 !== null; i2 = i2.fe) {
566
- const e2 = i2.ae;
582
+ for (let i2 = e.u;i2 !== null; i2 = i2.ae) {
583
+ const e2 = i2.ce;
567
584
  if (o)
568
585
  e2.ie &= ~REACTIVE_REASK;
569
- if (e2.ie & REACTIVE_RECOMPUTING_DEPS && i2.ll === e2.Ze && i2 !== e2.Ye)
586
+ if (e2.ie & REACTIVE_RECOMPUTING_DEPS && i2.nn === e2.Ze && i2 !== e2.Ye)
570
587
  e2.ie |= REACTIVE_MISSED_WAKE;
571
588
  if (s && e2.T & CONFIG_IN_SNAPSHOT_SCOPE) {
572
589
  e2.ie |= REACTIVE_SNAPSHOT_STALE;
@@ -585,7 +602,7 @@ function insertSubs(e, t = false) {
585
602
  }
586
603
  function commitPendingNode(e) {
587
604
  const t = e;
588
- if (!t.Se) {
605
+ if (!t.oe) {
589
606
  if (e.Pe !== NOT_PENDING) {
590
607
  e.be = e.Pe;
591
608
  e.Pe = NOT_PENDING;
@@ -610,6 +627,7 @@ function commitPendingNode(e) {
610
627
  GlobalQueue.un(e);
611
628
  }
612
629
  var storeCommitHook = null;
630
+ var patchCommitHook = null;
613
631
  function commitPendingNodes() {
614
632
  const e = currentBatch.yt;
615
633
  for (let t = 0;t < e.length; t++) {
@@ -617,6 +635,7 @@ function commitPendingNodes() {
617
635
  }
618
636
  e.length = 0;
619
637
  storeCommitHook?.();
638
+ patchCommitHook?.(currentBatch);
620
639
  }
621
640
  function finalizePureQueue(e = null, t = false) {
622
641
  const i = !t;
@@ -630,28 +649,28 @@ function finalizePureQueue(e = null, t = false) {
630
649
  if (i) {
631
650
  if (n)
632
651
  commitPendingNodes();
633
- const t2 = e ?? globalQueue.k;
652
+ const t2 = e ?? globalQueue.m;
634
653
  if (t2.Ke.length)
635
- GlobalQueue.fn(t2.Ke);
636
- if (t2.ln.size) {
637
- for (const e2 of t2.ln) {
654
+ GlobalQueue.dn(t2.Ke);
655
+ if (t2.cn.size) {
656
+ for (const e2 of t2.cn) {
638
657
  if (e2.ie & REACTIVE_DISPOSED)
639
658
  continue;
640
659
  enqueueSub(e2);
641
660
  }
642
- t2.ln.clear();
661
+ t2.cn.clear();
643
662
  schedule();
644
663
  }
645
- if (t2.m.length) {
646
- GlobalQueue.M(t2.m);
664
+ if (t2.A.length) {
665
+ GlobalQueue.G(t2.A);
647
666
  if (globalQueue.Qt.length)
648
667
  checkBoundaryChildren(globalQueue);
649
668
  }
650
- if (t2.cn.size)
651
- GlobalQueue.Vt(t2.cn, e);
669
+ if (t2.Tn.size)
670
+ GlobalQueue.Bt(t2.Tn, e);
652
671
  sweepTransientStoreNodes();
653
672
  if (activeLanes.size)
654
- GlobalQueue.Tn(e);
673
+ GlobalQueue.Nn(e);
655
674
  }
656
675
  }
657
676
  function checkBoundaryChildren(e) {
@@ -666,7 +685,7 @@ function reassignPendingTransition(e) {
666
685
  }
667
686
  }
668
687
  var globalQueue = new GlobalQueue;
669
- var currentBatch = globalQueue.k;
688
+ var currentBatch = globalQueue.m;
670
689
  function flush(e) {
671
690
  if (e) {
672
691
  syncDepth++;
@@ -680,7 +699,7 @@ function flush(e) {
680
699
  }
681
700
  }
682
701
  }
683
- if (globalQueue.sn) {
702
+ if (globalQueue.En) {
684
703
  return;
685
704
  }
686
705
  if (halted)
@@ -703,15 +722,15 @@ function reporterBlocksSource(e, t) {
703
722
  while (e2) {
704
723
  if (e2 === t || e2.lt === t)
705
724
  return true;
706
- e2 = e2.o?.It;
725
+ e2 = e2.o?.Et;
707
726
  }
708
727
  }
709
728
  return !!(e.S & STATUS_PENDING && e.o?._ instanceof NotReadyError && e.o?._.source === t);
710
729
  }
711
730
  function transitionComplete(e) {
712
- if (e.an)
731
+ if (e.fn)
713
732
  return true;
714
- if (e.oe.length)
733
+ if (e.ue.length)
715
734
  return false;
716
735
  let t = true;
717
736
  for (const [i, n] of e.Ne) {
@@ -730,14 +749,14 @@ function transitionComplete(e) {
730
749
  break;
731
750
  }
732
751
  }
733
- if (t && GlobalQueue.En?.(e))
752
+ if (t && GlobalQueue.In?.(e))
734
753
  t = false;
735
- t && (e.an = true);
754
+ t && (e.fn = true);
736
755
  return t;
737
756
  }
738
757
  function currentTransition(e) {
739
- while (e.an && typeof e.an === "object")
740
- e = e.an;
758
+ while (e.fn && typeof e.fn === "object")
759
+ e = e.fn;
741
760
  return e;
742
761
  }
743
762
  function runInTransition(e, t) {
@@ -750,7 +769,7 @@ function runInTransition(e, t) {
750
769
  }
751
770
  }
752
771
 
753
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/heap.js
772
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/heap.js
754
773
  function queueFor(e) {
755
774
  return e.ie & REACTIVE_ZOMBIE ? zombieQueue : dirtyQueue;
756
775
  }
@@ -769,7 +788,7 @@ function enqueueSub(e) {
769
788
  insertIntoHeap(e, E);
770
789
  }
771
790
  function actualInsertIntoHeap(e, E) {
772
- const t = (e.ve?.Ct ? e.ve.Ot?.Le : e.ve?.Le) ?? -1;
791
+ const t = (e.ke?.Ct ? e.ke.Ot?.Le : e.ke?.Le) ?? -1;
773
792
  if (t >= e.Le)
774
793
  e.Le = t + 1;
775
794
  const n = e.Le;
@@ -843,13 +862,13 @@ function markNode(e, E = REACTIVE_DIRTY) {
843
862
  if ((t & (REACTIVE_CHECK | REACTIVE_DIRTY)) >= E)
844
863
  return;
845
864
  e.ie = t & -4 | E;
846
- for (let E2 = e.u;E2 !== null; E2 = E2.fe) {
847
- markNode(E2.ae, REACTIVE_CHECK);
865
+ for (let E2 = e.u;E2 !== null; E2 = E2.ae) {
866
+ markNode(E2.ce, REACTIVE_CHECK);
848
867
  }
849
868
  if (e.T & CONFIG_FW_CHILDREN) {
850
- for (let E2 = e.o.l;E2 !== null; E2 = E2.ce) {
851
- for (let e2 = E2.u;e2 !== null; e2 = e2.fe) {
852
- markNode(e2.ae, REACTIVE_CHECK);
869
+ for (let E2 = e.o.i;E2 !== null; E2 = E2.Se) {
870
+ for (let e2 = E2.u;e2 !== null; e2 = e2.ae) {
871
+ markNode(e2.ce, REACTIVE_CHECK);
853
872
  }
854
873
  }
855
874
  }
@@ -874,20 +893,20 @@ function adjustHeight(e, E) {
874
893
  for (let E2 = e.nt;E2; E2 = E2.it) {
875
894
  const e2 = E2.ut;
876
895
  const n = e2.lt || e2;
877
- if (n.Se && n.Le >= t)
896
+ if (n.oe && n.Le >= t)
878
897
  t = n.Le + 1;
879
898
  }
880
899
  if (e.Le !== t) {
881
900
  e.Le = t;
882
- for (let E2 = e.u;E2 !== null; E2 = E2.fe) {
883
- insertIntoHeapHeight(E2.ae, queueFor(E2.ae));
901
+ for (let E2 = e.u;E2 !== null; E2 = E2.ae) {
902
+ insertIntoHeapHeight(E2.ce, queueFor(E2.ce));
884
903
  }
885
904
  }
886
905
  }
887
906
 
888
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/owner.js
907
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/owner.js
889
908
  function markDisposal(e) {
890
- let t = e.ke;
909
+ let t = e.ve;
891
910
  while (t) {
892
911
  const e2 = t.ie;
893
912
  t.ie = e2 | REACTIVE_ZOMBIE;
@@ -912,9 +931,9 @@ function disposeChildren(e, t = false, n) {
912
931
  if (t2.o?.Ge || t2.o?.ge)
913
932
  GlobalQueue.un(t2);
914
933
  }
915
- if (t && e.Se && e.o !== null)
934
+ if (t && e.oe && e.o !== null)
916
935
  e.o.Ee = null;
917
- let o = n ? e.o?.qe ?? null : e.ke;
936
+ let o = n ? e.o?.qe ?? null : e.ve;
918
937
  while (o) {
919
938
  const e2 = o.Ve;
920
939
  const t2 = o;
@@ -928,16 +947,16 @@ function disposeChildren(e, t = false, n) {
928
947
  if (e.o !== null)
929
948
  e.o.qe = null;
930
949
  } else {
931
- e.ke = null;
950
+ e.ve = null;
932
951
  e.Me = 0;
933
952
  }
934
- if (t && !n && !(i & REACTIVE_ZOMBIE) && e.ve !== null && !(e.ve.ie & REACTIVE_DISPOSED)) {
953
+ if (t && !n && !(i & REACTIVE_ZOMBIE) && e.ke !== null && !(e.ke.ie & REACTIVE_DISPOSED)) {
935
954
  const t2 = e.ct;
936
955
  const n2 = e.Ve;
937
956
  if (t2 !== null)
938
957
  t2.Ve = n2;
939
958
  else
940
- e.ve.ke = n2;
959
+ e.ke.ve = n2;
941
960
  if (n2 !== null)
942
961
  n2.ct = t2;
943
962
  e.ct = null;
@@ -969,8 +988,8 @@ function runDisposal(e, t) {
969
988
  }
970
989
  function childId(e, t) {
971
990
  let n = e;
972
- while (n.T & CONFIG_TRANSPARENT && n.ve)
973
- n = n.ve;
991
+ while (n.T & CONFIG_TRANSPARENT && n.ke)
992
+ n = n.ke;
974
993
  if (n.id != null)
975
994
  return formatId(n.id, t ? n.Me++ : n.Me);
976
995
  throw new Error("");
@@ -1010,7 +1029,7 @@ function createOwner(e) {
1010
1029
  T: n ? CONFIG_TRANSPARENT : 0,
1011
1030
  Ct: true,
1012
1031
  Ot: t?.Ct ? t.Ot : t,
1013
- ke: null,
1032
+ ve: null,
1014
1033
  Ve: null,
1015
1034
  ct: null,
1016
1035
  he: null,
@@ -1018,17 +1037,17 @@ function createOwner(e) {
1018
1037
  we: t?.we || defaultContext,
1019
1038
  Me: 0,
1020
1039
  o: null,
1021
- ve: t,
1040
+ ke: t,
1022
1041
  dispose: disposeRootSelf
1023
1042
  };
1024
1043
  if (t) {
1025
- const e2 = t.ke;
1044
+ const e2 = t.ve;
1026
1045
  if (e2 === null) {
1027
- t.ke = i;
1046
+ t.ve = i;
1028
1047
  } else {
1029
1048
  i.Ve = e2;
1030
1049
  e2.ct = i;
1031
- t.ke = i;
1050
+ t.ve = i;
1032
1051
  }
1033
1052
  }
1034
1053
  return i;
@@ -1038,48 +1057,48 @@ function createRoot(e, t) {
1038
1057
  return runWithOwner(n, () => e(() => n.dispose()));
1039
1058
  }
1040
1059
 
1041
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/graph.js
1060
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/graph.js
1042
1061
  function unlinkSubs(e) {
1043
- const l = e.ut;
1044
- const n = e.it;
1045
- const u = e.fe;
1046
- const s = e.el;
1047
- if (u !== null)
1048
- u.el = s;
1062
+ const n = e.ut;
1063
+ const l = e.it;
1064
+ const o = e.ae;
1065
+ const u = e.en;
1066
+ if (o !== null)
1067
+ o.en = u;
1049
1068
  else
1050
- l.rt = s;
1051
- if (s !== null)
1052
- s.fe = u;
1069
+ n.rt = u;
1070
+ if (u !== null)
1071
+ u.ae = o;
1053
1072
  else {
1054
- l.u = u;
1055
- if (u === null) {
1056
- l.o?.ft?.();
1057
- const e2 = l;
1058
- e2.Se && e2.T & CONFIG_AUTO_DISPOSE && !(e2.ie & REACTIVE_ZOMBIE) && !(e2.S & STATUS_PENDING) && unobserved(e2);
1073
+ n.u = o;
1074
+ if (o === null) {
1075
+ n.o?.ft?.();
1076
+ const e2 = n;
1077
+ e2.oe && e2.T & CONFIG_AUTO_DISPOSE && !(e2.ie & REACTIVE_ZOMBIE) && !(e2.S & STATUS_PENDING) && unobserved(e2);
1059
1078
  }
1060
1079
  }
1061
- return n;
1080
+ return l;
1062
1081
  }
1063
1082
  function trimStaleDeps(e) {
1064
- const l = e.Ye;
1065
- let n = l !== null ? l.it : e.nt;
1066
- if (n !== null) {
1083
+ const n = e.Ye;
1084
+ let l = n !== null ? n.it : e.nt;
1085
+ if (l !== null) {
1067
1086
  do {
1068
- n = unlinkSubs(n);
1069
- } while (n !== null);
1070
- if (l !== null)
1071
- l.it = null;
1087
+ l = unlinkSubs(l);
1088
+ } while (l !== null);
1089
+ if (n !== null)
1090
+ n.it = null;
1072
1091
  else
1073
1092
  e.nt = null;
1074
1093
  }
1075
1094
  }
1076
1095
  function clearDeps(e) {
1077
- let l = e.nt;
1078
- if (!l)
1096
+ let n = e.nt;
1097
+ if (!n)
1079
1098
  return;
1080
1099
  do {
1081
- l = unlinkSubs(l);
1082
- } while (l !== null);
1100
+ n = unlinkSubs(n);
1101
+ } while (n !== null);
1083
1102
  e.nt = null;
1084
1103
  e.Ye = null;
1085
1104
  }
@@ -1088,52 +1107,63 @@ function unobserved(e) {
1088
1107
  clearDeps(e);
1089
1108
  disposeChildren(e, true);
1090
1109
  }
1091
- function link(e, l, n = false) {
1092
- const u = l.Ye;
1093
- if (u !== null && u.ut === e) {
1094
- u.me &&= n;
1110
+ var dormantNodes = new Set;
1111
+ function sweepDormant() {
1112
+ if (dormantNodes.size === 0)
1113
+ return;
1114
+ for (const e of dormantNodes) {
1115
+ if (!e.u && e.T & CONFIG_AUTO_DISPOSE && !(e.S & STATUS_PENDING) && !(e.ie & (REACTIVE_DISPOSED | REACTIVE_ZOMBIE))) {
1116
+ unobserved(e);
1117
+ }
1118
+ }
1119
+ dormantNodes.clear();
1120
+ }
1121
+ function link(e, n, l = false) {
1122
+ const o = n.Ye;
1123
+ if (o !== null && o.ut === e) {
1124
+ o.me &&= l;
1095
1125
  return;
1096
1126
  }
1097
- let s = null;
1098
- const o = l.ie & REACTIVE_RECOMPUTING_DEPS;
1099
- if (o) {
1100
- s = u !== null ? u.it : l.nt;
1101
- if (s !== null && s.ut === e) {
1102
- s.ll = l.Ze;
1103
- l.Ye = s;
1104
- s.me = n;
1127
+ let u = null;
1128
+ const t = n.ie & REACTIVE_RECOMPUTING_DEPS;
1129
+ if (t) {
1130
+ u = o !== null ? o.it : n.nt;
1131
+ if (u !== null && u.ut === e) {
1132
+ u.nn = n.Ze;
1133
+ n.Ye = u;
1134
+ u.me = l;
1105
1135
  return;
1106
1136
  }
1107
1137
  }
1108
- const t = e.rt;
1109
- if (t !== null && t.ae === l && (!o || t.ll === l.Ze)) {
1110
- if (o)
1111
- t.me &&= n;
1138
+ const s = e.rt;
1139
+ if (s !== null && s.ce === n && (!t || s.nn === n.Ze)) {
1140
+ if (t)
1141
+ s.me &&= l;
1112
1142
  else
1113
- t.me = n;
1143
+ s.me = l;
1114
1144
  return;
1115
1145
  }
1116
- const i = l.Ye = e.rt = {
1146
+ const r = n.Ye = e.rt = {
1117
1147
  ut: e,
1118
- ae: l,
1119
- it: s,
1120
- el: t,
1121
- fe: null,
1122
- ll: l.Ze,
1123
- me: n
1148
+ ce: n,
1149
+ it: u,
1150
+ en: s,
1151
+ ae: null,
1152
+ nn: n.Ze,
1153
+ me: l
1124
1154
  };
1125
- if (u !== null)
1126
- u.it = i;
1155
+ if (o !== null)
1156
+ o.it = r;
1127
1157
  else
1128
- l.nt = i;
1129
- if (t !== null)
1130
- t.fe = i;
1158
+ n.nt = r;
1159
+ if (s !== null)
1160
+ s.ae = r;
1131
1161
  else
1132
- e.u = i;
1162
+ e.u = r;
1133
1163
  bumpNotifyEpoch();
1134
1164
  }
1135
1165
 
1136
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/async.js
1166
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/async.js
1137
1167
  function addPendingSource(e, n) {
1138
1168
  if (e.o?.le?.has(n))
1139
1169
  return false;
@@ -1155,7 +1185,7 @@ function clearPendingSources(e) {
1155
1185
  e.o.le = undefined;
1156
1186
  }
1157
1187
  function parkLoadingWindow(e, n) {
1158
- ext(e).ue = true;
1188
+ ext(e).fe = true;
1159
1189
  if (n.source)
1160
1190
  addPendingSource(e, n.source);
1161
1191
  if (!(e.S & STATUS_ERROR))
@@ -1177,15 +1207,15 @@ function setPendingError(e, n, t) {
1177
1207
  }
1178
1208
  }
1179
1209
  function forEachDependent(e, n) {
1180
- for (let t = e.u;t !== null; t = t.fe)
1181
- n(t.ae, t);
1182
- for (let t = e.o?.l ?? null;t !== null; t = t.ce) {
1183
- for (let e2 = t.u;e2 !== null; e2 = e2.fe)
1184
- n(e2.ae, e2);
1210
+ for (let t = e.u;t !== null; t = t.ae)
1211
+ n(t.ce, t);
1212
+ for (let t = e.o?.i ?? null;t !== null; t = t.Se) {
1213
+ for (let e2 = t.u;e2 !== null; e2 = e2.ae)
1214
+ n(e2.ce, e2);
1185
1215
  }
1186
1216
  }
1187
1217
  function releaseIfSettledUnobserved(e) {
1188
- e.Se && e.T & CONFIG_AUTO_DISPOSE && !e.u && !(e.ie & REACTIVE_ZOMBIE) && !(e.S & STATUS_PENDING) && unobserved(e);
1218
+ e.oe && e.T & CONFIG_AUTO_DISPOSE && !e.u && !(e.ie & REACTIVE_ZOMBIE) && !(e.S & STATUS_PENDING) && unobserved(e);
1189
1219
  }
1190
1220
  function releaseSettledDependents(e) {
1191
1221
  let n;
@@ -1230,23 +1260,23 @@ function settlePendingSource(e) {
1230
1260
  return;
1231
1261
  r.add(l);
1232
1262
  l.Te = clock;
1233
- const u = l.o?.le?.values().next().value;
1234
- const i = l.S & STATUS_ERROR;
1235
- if (u) {
1236
- if (!i)
1237
- setPendingError(l, u);
1263
+ const i = l.o?.le?.values().next().value;
1264
+ const u = l.S & STATUS_ERROR;
1265
+ if (i) {
1266
+ if (!u)
1267
+ setPendingError(l, i);
1238
1268
  o !== null && o(l);
1239
1269
  } else {
1240
1270
  l.S &= ~STATUS_PENDING;
1241
- if (!i)
1271
+ if (!u)
1242
1272
  setPendingError(l);
1243
1273
  o !== null && o(l);
1244
- if (l.o?.ue) {
1274
+ if (l.o?.fe) {
1245
1275
  enqueueSub(l);
1246
1276
  n = true;
1247
1277
  }
1248
1278
  if (l.o !== null)
1249
- l.o.ue = false;
1279
+ l.o.fe = false;
1250
1280
  if (!l.u && l.T & CONFIG_AUTO_DISPOSE)
1251
1281
  (t ??= []).push(l);
1252
1282
  }
@@ -1313,9 +1343,9 @@ function handleAsync(e, n, t) {
1313
1343
  const l2 = !!(e.S & STATUS_UNINITIALIZED);
1314
1344
  trimStaleDeps(e);
1315
1345
  clearStatus(e);
1316
- const u2 = resolveLane(e);
1317
- if (u2)
1318
- u2.Ae.delete(e);
1346
+ const i2 = resolveLane(e);
1347
+ if (i2)
1348
+ i2.Ae.delete(e);
1319
1349
  if (t) {
1320
1350
  t(r2);
1321
1351
  if (l2)
@@ -1329,7 +1359,7 @@ function handleAsync(e, n, t) {
1329
1359
  insertSubs(e);
1330
1360
  }
1331
1361
  e.Te = clock;
1332
- } else if (u2) {
1362
+ } else if (i2) {
1333
1363
  const n2 = e.Re;
1334
1364
  const t2 = e.be;
1335
1365
  const o3 = e.Ue;
@@ -1366,13 +1396,13 @@ function handleAsync(e, n, t) {
1366
1396
  };
1367
1397
  const consumeIterator = (t2, r2) => {
1368
1398
  const o2 = t2[Symbol.asyncIterator]();
1369
- let u2 = false;
1370
- let i = false;
1399
+ let i2 = false;
1400
+ let u = false;
1371
1401
  let s = !r2;
1372
1402
  const close = () => {
1373
- if (i)
1403
+ if (u)
1374
1404
  return;
1375
- i = true;
1405
+ u = true;
1376
1406
  try {
1377
1407
  const e2 = o2.return?.();
1378
1408
  if (isThenable(e2))
@@ -1395,15 +1425,15 @@ function handleAsync(e, n, t) {
1395
1425
  t3 = r4;
1396
1426
  f2 = true;
1397
1427
  if (r4.done)
1398
- i = true;
1428
+ u = true;
1399
1429
  } else if (e.o?.Ee !== n) {
1400
1430
  return;
1401
1431
  } else if (!r4.done) {
1402
- u2 = true;
1432
+ i2 = true;
1403
1433
  asyncWrite(r4.value, iterateOrRelease);
1404
1434
  } else {
1405
- i = true;
1406
- if (u2) {
1435
+ u = true;
1436
+ if (i2) {
1407
1437
  schedule();
1408
1438
  flush();
1409
1439
  } else {
@@ -1416,14 +1446,14 @@ function handleAsync(e, n, t) {
1416
1446
  r3 = t4;
1417
1447
  a = true;
1418
1448
  } else if (e.o?.Ee === n) {
1419
- i = true;
1449
+ u = true;
1420
1450
  handleError(t4);
1421
1451
  settleAutodispose();
1422
1452
  }
1423
1453
  });
1424
1454
  c = false;
1425
1455
  if (a) {
1426
- i = true;
1456
+ u = true;
1427
1457
  handleError(r3);
1428
1458
  if (s)
1429
1459
  throw r3;
@@ -1431,16 +1461,16 @@ function handleAsync(e, n, t) {
1431
1461
  }
1432
1462
  if (f2 && !t3.done) {
1433
1463
  l = t3.value;
1434
- u2 = true;
1464
+ i2 = true;
1435
1465
  return iterate();
1436
1466
  }
1437
1467
  return f2 && t3.done;
1438
1468
  };
1439
1469
  const f = iterate();
1440
1470
  s = false;
1441
- return u2 || f;
1471
+ return i2 || f;
1442
1472
  };
1443
- let u = null;
1473
+ let i = null;
1444
1474
  const flattenIfIterable = (e2, n2) => {
1445
1475
  let t2 = false;
1446
1476
  if (typeof e2 === "object" && e2 !== null) {
@@ -1452,11 +1482,11 @@ function handleAsync(e, n, t) {
1452
1482
  return false;
1453
1483
  const r2 = consumeIterator(e2, n2);
1454
1484
  if (!n2)
1455
- u = r2;
1485
+ i = r2;
1456
1486
  return true;
1457
1487
  };
1458
1488
  if (o) {
1459
- let t2 = false, r2 = false, o2, u2 = true;
1489
+ let t2 = false, r2 = false, o2, i2 = true;
1460
1490
  const registerDeferredClose = (n2) => {
1461
1491
  if (!e.he)
1462
1492
  e.he = n2;
@@ -1466,7 +1496,7 @@ function handleAsync(e, n, t) {
1466
1496
  e.he = [e.he, n2];
1467
1497
  };
1468
1498
  n.then((r3) => {
1469
- if (u2) {
1499
+ if (i2) {
1470
1500
  l = r3;
1471
1501
  t2 = true;
1472
1502
  } else if (e.o?.Ee === n && !(e.ie & REACTIVE_DISPOSED) && flattenIfIterable(r3, registerDeferredClose))
@@ -1476,7 +1506,7 @@ function handleAsync(e, n, t) {
1476
1506
  settleAutodispose();
1477
1507
  }
1478
1508
  }, (e2) => {
1479
- if (u2) {
1509
+ if (i2) {
1480
1510
  o2 = e2;
1481
1511
  r2 = true;
1482
1512
  } else {
@@ -1484,7 +1514,7 @@ function handleAsync(e, n, t) {
1484
1514
  settleAutodispose();
1485
1515
  }
1486
1516
  });
1487
- u2 = false;
1517
+ i2 = false;
1488
1518
  if (r2) {
1489
1519
  handleError(o2);
1490
1520
  throw o2;
@@ -1499,8 +1529,8 @@ function handleAsync(e, n, t) {
1499
1529
  }
1500
1530
  if (r)
1501
1531
  flattenIfIterable(n);
1502
- if (u !== null) {
1503
- if (!u) {
1532
+ if (i !== null) {
1533
+ if (!i) {
1504
1534
  if (e.Ie)
1505
1535
  return e.be;
1506
1536
  globalQueue.initTransition(resolveTransition(e));
@@ -1513,9 +1543,9 @@ function handleAsync(e, n, t) {
1513
1543
  function clearStatus(e, n = false) {
1514
1544
  if (e.o?.le)
1515
1545
  clearPendingSources(e);
1516
- if (e.o?.ue) {
1546
+ if (e.o?.fe) {
1517
1547
  if (e.o !== null)
1518
- e.o.ue = false;
1548
+ e.o.fe = false;
1519
1549
  }
1520
1550
  if (e.o !== null)
1521
1551
  e.o.pe = false;
@@ -1524,18 +1554,19 @@ function clearStatus(e, n = false) {
1524
1554
  setPendingError(e);
1525
1555
  if (e.o?.Ge || e.o?.ge)
1526
1556
  GlobalQueue.de(e);
1527
- if (e.o?.l && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1557
+ if (e.o?.i && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1528
1558
  GlobalQueue.ye(e);
1529
- if (e.o?.A)
1530
- e.o.A.call(e);
1559
+ const t = statusNotifierOf(e);
1560
+ if (t)
1561
+ t.call(e);
1531
1562
  }
1532
1563
  function notifyStatus(e, n, t, r, o) {
1533
1564
  if (n === STATUS_ERROR && !(t instanceof StatusError) && !(t instanceof NotReadyError))
1534
1565
  t = new StatusError(e, t);
1535
1566
  const l = n === STATUS_PENDING && t instanceof NotReadyError ? t.source : undefined;
1536
- const u = l === e;
1537
- const i = n === STATUS_PENDING && e.o?.De !== undefined && !u;
1538
- const s = i && hasActiveOverride(e);
1567
+ const i = l === e;
1568
+ const u = n === STATUS_PENDING && e.o?.De !== undefined && !i;
1569
+ const s = u && hasActiveOverride(e);
1539
1570
  if (!r) {
1540
1571
  if (n === STATUS_PENDING && l) {
1541
1572
  addPendingSource(e, l);
@@ -1547,22 +1578,23 @@ function notifyStatus(e, n, t, r, o) {
1547
1578
  ext(e)._ = t;
1548
1579
  }
1549
1580
  GlobalQueue.de !== null && GlobalQueue.de(e);
1550
- if (e.o?.l && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1581
+ if (e.o?.i && e.T & CONFIG_CHILD_COMPANIONS && GlobalQueue.ye !== null)
1551
1582
  GlobalQueue.ye(e);
1552
1583
  }
1553
1584
  if (o && !r) {
1554
1585
  assignOrMergeLane(e, o);
1555
1586
  }
1556
1587
  const f = r || s;
1557
- const a = r || i ? undefined : o;
1558
- if (e.o?.A) {
1588
+ const a = r || u ? undefined : o;
1589
+ const c = statusNotifierOf(e);
1590
+ if (c) {
1559
1591
  if (r && n === STATUS_PENDING) {
1560
1592
  return;
1561
1593
  }
1562
1594
  if (f) {
1563
- e.o.A.call(e, n, t);
1595
+ c.call(e, n, t);
1564
1596
  } else {
1565
- e.o.A.call(e);
1597
+ c.call(e);
1566
1598
  }
1567
1599
  return;
1568
1600
  }
@@ -1581,7 +1613,7 @@ function notifyStatus(e, n, t, r, o) {
1581
1613
  });
1582
1614
  }
1583
1615
 
1584
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/core.js
1616
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/core.js
1585
1617
  GlobalQueue.Ce = recompute;
1586
1618
  GlobalQueue.Fe = disposeChildren;
1587
1619
  var tracking = false;
@@ -1596,7 +1628,7 @@ function ownerInSnapshotScope(e) {
1596
1628
  while (e) {
1597
1629
  if (e.He)
1598
1630
  return true;
1599
- e = e.ve;
1631
+ e = e.ke;
1600
1632
  }
1601
1633
  return false;
1602
1634
  }
@@ -1611,13 +1643,13 @@ function recompute(e, t = false) {
1611
1643
  e.o.Ee = null;
1612
1644
  if (e._e || n === EFFECT_TRACKED)
1613
1645
  disposeChildren(e);
1614
- else if (e.ke !== null || e.he !== null) {
1646
+ else if (e.ve !== null || e.he !== null) {
1615
1647
  markDisposal(e);
1616
1648
  const t2 = ext(e);
1617
1649
  t2.We = e.he;
1618
- t2.qe = e.ke;
1650
+ t2.qe = e.ve;
1619
1651
  e.he = null;
1620
- e.ke = null;
1652
+ e.ve = null;
1621
1653
  e.Me = 0;
1622
1654
  }
1623
1655
  }
@@ -1636,10 +1668,10 @@ function recompute(e, t = false) {
1636
1668
  let c = e.Pe === NOT_PENDING ? e.be : e.Pe;
1637
1669
  let _ = e.Le;
1638
1670
  let f = false;
1639
- let E = tracking;
1640
- let I = currentOptimisticLane;
1671
+ let N = tracking;
1672
+ let E = currentOptimisticLane;
1641
1673
  tracking = true;
1642
- const N = latestReadActive;
1674
+ const I = latestReadActive;
1643
1675
  latestReadActive = false;
1644
1676
  if (i) {
1645
1677
  const t2 = GlobalQueue.je(e, true);
@@ -1654,19 +1686,19 @@ function recompute(e, t = false) {
1654
1686
  currentOptimisticLane = t2;
1655
1687
  }
1656
1688
  }
1657
- const T = n && n !== EFFECT_USER;
1658
- const d = stale;
1659
- if (T)
1689
+ const d = n && n !== EFFECT_USER;
1690
+ const T = stale;
1691
+ if (d)
1660
1692
  stale = true;
1661
1693
  try {
1662
1694
  if (e.T & CONFIG_SYNC) {
1663
- c = e.Se(c);
1695
+ c = e.oe(c);
1664
1696
  if (e.o !== null)
1665
1697
  e.o.Ee = null;
1666
1698
  e.Ie = false;
1667
1699
  } else {
1668
1700
  const t2 = e.o?.Ee;
1669
- const n2 = e.Se(c);
1701
+ const n2 = e.oe(c);
1670
1702
  const i2 = typeof n2 === "object" && n2 !== null;
1671
1703
  const u2 = e.o?.Ee !== t2;
1672
1704
  c = u2 || !i2 ? n2 : handleAsync(e, n2);
@@ -1689,19 +1721,19 @@ function recompute(e, t = false) {
1689
1721
  GlobalQueue.$e(e);
1690
1722
  let i2 = false;
1691
1723
  if (n2) {
1692
- ext(e).ue = true;
1724
+ ext(e).fe = true;
1693
1725
  if (GlobalQueue.Je !== null)
1694
1726
  i2 = GlobalQueue.Je(e, s);
1695
1727
  }
1696
1728
  notifyStatus(e, n2 ? STATUS_PENDING : STATUS_ERROR, t2, undefined, n2 ? e.o?.Be : undefined);
1697
1729
  if (i2)
1698
- GlobalQueue.p(e);
1730
+ GlobalQueue.k(e);
1699
1731
  }
1700
1732
  } finally {
1701
- tracking = E;
1702
- latestReadActive = N;
1703
- if (T)
1704
- stale = d;
1733
+ tracking = N;
1734
+ latestReadActive = I;
1735
+ if (d)
1736
+ stale = T;
1705
1737
  f = (e.ie & REACTIVE_MISSED_WAKE) !== 0;
1706
1738
  e.ie = REACTIVE_NONE | (t ? e.ie & REACTIVE_SNAPSHOT_STALE : 0);
1707
1739
  context = r;
@@ -1746,14 +1778,14 @@ function recompute(e, t = false) {
1746
1778
  if (a)
1747
1779
  e.Ie = true;
1748
1780
  } else if (e.Le != _) {
1749
- for (let t2 = e.u;t2 !== null; t2 = t2.fe) {
1750
- insertIntoHeapHeight(t2.ae, queueFor(t2.ae));
1781
+ for (let t2 = e.u;t2 !== null; t2 = t2.ae) {
1782
+ insertIntoHeapHeight(t2.ce, queueFor(t2.ce));
1751
1783
  }
1752
1784
  }
1753
1785
  if (o !== undefined && !r2 && !e.o?._)
1754
1786
  settleErroredDependents(e, o);
1755
1787
  }
1756
- currentOptimisticLane = I;
1788
+ currentOptimisticLane = E;
1757
1789
  const S = e.Pe !== NOT_PENDING || e.o !== null && (e.o.qe !== null || e.o.We !== null) || (e.S & (STATUS_PENDING | STATUS_UNINITIALIZED)) !== 0;
1758
1790
  S && (!t || e.S & STATUS_PENDING) && (!e._e || u) && queuePendingNode(e);
1759
1791
  e._e && n && activeTransition !== e._e && runInTransition(e._e, () => recompute(e));
@@ -1769,7 +1801,7 @@ function updateIfNecessary(e) {
1769
1801
  for (let t = e.nt;t; t = t.it) {
1770
1802
  const n = t.ut;
1771
1803
  const i = n.lt || n;
1772
- if (i.Se) {
1804
+ if (i.oe) {
1773
1805
  updateIfNecessary(i);
1774
1806
  }
1775
1807
  if (e.ie & REACTIVE_DIRTY) {
@@ -1793,7 +1825,7 @@ function computed(e, t) {
1793
1825
  C: context?.C ?? globalQueue,
1794
1826
  we: context?.we ?? defaultContext,
1795
1827
  Me: 0,
1796
- Se: e,
1828
+ oe: e,
1797
1829
  be: i ? t.loadingValue : undefined,
1798
1830
  Le: 0,
1799
1831
  ot: undefined,
@@ -1803,10 +1835,10 @@ function computed(e, t) {
1803
1835
  Ze: 0,
1804
1836
  u: null,
1805
1837
  rt: null,
1806
- ve: context,
1838
+ ke: context,
1807
1839
  Ve: null,
1808
1840
  ct: null,
1809
- ke: null,
1841
+ ve: null,
1810
1842
  ie: t?.lazy ? REACTIVE_LAZY : REACTIVE_NONE,
1811
1843
  S: i ? 0 : STATUS_UNINITIALIZED,
1812
1844
  Te: clock,
@@ -1824,37 +1856,37 @@ function computed(e, t) {
1824
1856
  function ext(e) {
1825
1857
  return e.o ??= {
1826
1858
  De: undefined,
1827
- Et: undefined,
1859
+ Nt: undefined,
1828
1860
  Be: undefined,
1829
1861
  Ge: undefined,
1830
1862
  ge: undefined,
1831
- It: undefined,
1863
+ Et: undefined,
1832
1864
  t: 0,
1833
1865
  Ee: null,
1834
1866
  _: undefined,
1835
- ue: undefined,
1867
+ fe: undefined,
1836
1868
  le: undefined,
1837
- A: undefined,
1869
+ h: undefined,
1838
1870
  pe: false,
1839
- l: null,
1871
+ i: null,
1840
1872
  ft: undefined,
1841
1873
  Qe: undefined,
1842
1874
  We: null,
1843
1875
  qe: null,
1844
- Nt: undefined
1876
+ It: undefined
1845
1877
  };
1846
1878
  }
1847
- function createEffectNode(e, t, n, i, u, l) {
1848
- const o = l?.transparent ?? false;
1849
- const s = {
1850
- id: inheritId(l, o, context),
1851
- T: (o ? CONFIG_TRANSPARENT : 0) | (l?.ownedWrite ? CONFIG_OWNED_WRITE : 0) | (l?.sync ? CONFIG_SYNC : 0) | (snapshotCaptureActive && ownerInSnapshotScope(context) ? CONFIG_IN_SNAPSHOT_SCOPE : 0),
1879
+ function createEffectNode(e, t, n, i, u) {
1880
+ const l = u?.transparent ?? false;
1881
+ const o = {
1882
+ id: inheritId(u, l, context),
1883
+ T: (l ? CONFIG_TRANSPARENT : 0) | (u?.ownedWrite ? CONFIG_OWNED_WRITE : 0) | (u?.sync ? CONFIG_SYNC : 0) | (snapshotCaptureActive && ownerInSnapshotScope(context) ? CONFIG_IN_SNAPSHOT_SCOPE : 0),
1852
1884
  Ue: false,
1853
1885
  he: null,
1854
1886
  C: context?.C ?? globalQueue,
1855
1887
  we: context?.we ?? defaultContext,
1856
1888
  Me: 0,
1857
- Se: e,
1889
+ oe: e,
1858
1890
  be: undefined,
1859
1891
  Le: 0,
1860
1892
  ot: undefined,
@@ -1864,10 +1896,10 @@ function createEffectNode(e, t, n, i, u, l) {
1864
1896
  Ze: 0,
1865
1897
  u: null,
1866
1898
  rt: null,
1867
- ve: context,
1899
+ ke: context,
1868
1900
  Ve: null,
1869
1901
  ct: null,
1870
- ke: null,
1902
+ ve: null,
1871
1903
  ie: REACTIVE_LAZY,
1872
1904
  S: STATUS_UNINITIALIZED,
1873
1905
  Te: clock,
@@ -1876,19 +1908,28 @@ function createEffectNode(e, t, n, i, u, l) {
1876
1908
  _t: -1,
1877
1909
  Ie: false,
1878
1910
  Xe: false,
1879
- Tt: undefined,
1880
- dt: t,
1911
+ dt: undefined,
1912
+ Tt: t,
1881
1913
  St: n,
1882
1914
  At: undefined,
1883
1915
  Re: i,
1884
1916
  o: null
1885
1917
  };
1886
- if (u !== undefined)
1887
- ext(s).A = u;
1888
- if (l?.unobserved)
1889
- ext(s).ft = l.unobserved;
1890
- setupComputedNode(s, lazyOptions);
1891
- return s;
1918
+ if (u?.unobserved)
1919
+ ext(o).ft = u.unobserved;
1920
+ setupComputedNode(o, lazyOptions);
1921
+ return o;
1922
+ }
1923
+ var effectStatusNotify = null;
1924
+ function setEffectStatusNotify(e) {
1925
+ effectStatusNotify = e;
1926
+ }
1927
+ function statusNotifierOf(e) {
1928
+ const t = e.o;
1929
+ const n = t !== null && t !== undefined ? t.h : undefined;
1930
+ if (n !== undefined)
1931
+ return n;
1932
+ return e.Re ? effectStatusNotify ?? undefined : undefined;
1892
1933
  }
1893
1934
  var lazyOptions = {
1894
1935
  lazy: true
@@ -1897,13 +1938,13 @@ function setupComputedNode(e, t) {
1897
1938
  e.st = e;
1898
1939
  const n = context?.Ct ? context.Ot : context;
1899
1940
  if (context) {
1900
- const t2 = context.ke;
1941
+ const t2 = context.ve;
1901
1942
  if (t2 === null) {
1902
- context.ke = e;
1943
+ context.ve = e;
1903
1944
  } else {
1904
1945
  e.Ve = t2;
1905
1946
  t2.ct = e;
1906
- context.ke = e;
1947
+ context.ve = e;
1907
1948
  }
1908
1949
  }
1909
1950
  if (n)
@@ -1928,7 +1969,7 @@ function signal(e, t, n = null) {
1928
1969
  rt: null,
1929
1970
  Te: clock,
1930
1971
  lt: n,
1931
- ce: n?.o?.l || null,
1972
+ Se: n?.o?.i || null,
1932
1973
  Pe: NOT_PENDING,
1933
1974
  _e: null,
1934
1975
  _t: -1,
@@ -1937,7 +1978,7 @@ function signal(e, t, n = null) {
1937
1978
  if (t?.unobserved)
1938
1979
  ext(i).ft = t.unobserved;
1939
1980
  if (n) {
1940
- ext(n).l = i;
1981
+ ext(n).i = i;
1941
1982
  n.T |= CONFIG_FW_CHILDREN;
1942
1983
  }
1943
1984
  if (snapshotCaptureActive && !(i.T & CONFIG_NO_SNAPSHOT) && !((n?.S ?? 0) & STATUS_PENDING)) {
@@ -1986,17 +2027,17 @@ function read(e) {
1986
2027
  const u = i || e;
1987
2028
  if (pendingCheckActive) {
1988
2029
  GlobalQueue.Dt(e, t, u, i);
1989
- } else if (typeof n.Se === "function") {
2030
+ } else if (typeof n.oe === "function") {
1990
2031
  prepareComputed(e, false);
1991
2032
  }
1992
- if (!n.Se && u === e && e.o?.De === undefined && e.o?.Qe === undefined && activeTransition === null && currentOptimisticLane === null && !snapshotCaptureActive && true) {
2033
+ if (!n.oe && u === e && e.o?.De === undefined && e.o?.Qe === undefined && activeTransition === null && currentOptimisticLane === null && !snapshotCaptureActive && true) {
1993
2034
  if (t && tracking)
1994
2035
  link(e, t);
1995
2036
  return !t || e.Pe === NOT_PENDING || t.T & CONFIG_CHILDREN_FORBIDDEN ? e.be : e.Pe;
1996
2037
  }
1997
2038
  if (t && tracking) {
1998
2039
  link(e, t, pendingCheckActive);
1999
- if (u.Se) {
2040
+ if (u.oe) {
2000
2041
  const n2 = queueFor(e);
2001
2042
  if (u.Le >= n2.xe) {
2002
2043
  markNode(t);
@@ -2004,7 +2045,7 @@ function read(e) {
2004
2045
  updateIfNecessary(u);
2005
2046
  }
2006
2047
  const i2 = u.Le;
2007
- if (i2 >= t.Le && e.ve !== t) {
2048
+ if (i2 >= t.Le && e.ke !== t) {
2008
2049
  t.Le = i2 + 1;
2009
2050
  }
2010
2051
  }
@@ -2024,7 +2065,7 @@ function read(e) {
2024
2065
  throw u.o?._;
2025
2066
  }
2026
2067
  }
2027
- if (u.Se && u.S & STATUS_ERROR) {
2068
+ if (u.oe && u.S & STATUS_ERROR) {
2028
2069
  if (tracking && !pendingCheckActive && u.Te < clock) {
2029
2070
  recompute(u);
2030
2071
  return read(e);
@@ -2050,8 +2091,9 @@ function read(e) {
2050
2091
  const l = !t || currentOptimisticLane !== null && GlobalQueue.gt(e, u, t) || e.Pe === NOT_PENDING || t.T & CONFIG_CHILDREN_FORBIDDEN || stale && e._e && activeTransition !== e._e ? e.be : e.Pe;
2051
2092
  if (pendingCheckActive)
2052
2093
  GlobalQueue.Ht(e, l);
2053
- if (!t && u === e && typeof n.Se === "function" && e.T & CONFIG_AUTO_DISPOSE && !(u.S & STATUS_PENDING) && !e.u) {
2054
- unobserved(e);
2094
+ if (!t && u === e && typeof n.oe === "function" && e.T & CONFIG_AUTO_DISPOSE && !(u.S & STATUS_PENDING) && !e.u) {
2095
+ dormantNodes.add(e);
2096
+ schedule();
2055
2097
  }
2056
2098
  return l;
2057
2099
  }
@@ -2059,7 +2101,7 @@ function setSignal(e, t) {
2059
2101
  if (e._e && activeTransition !== e._e)
2060
2102
  globalQueue.initTransition(e._e);
2061
2103
  if (e.T & CONFIG_OPTIMISTIC && !projectionWriteActive)
2062
- return GlobalQueue.vt(e, t);
2104
+ return GlobalQueue.kt(e, t);
2063
2105
  const n = e.Pe === NOT_PENDING ? e.be : e.Pe;
2064
2106
  if (typeof t === "function")
2065
2107
  t = t(n);
@@ -2071,7 +2113,7 @@ function setSignal(e, t) {
2071
2113
  queuePendingNode(e);
2072
2114
  e.Pe = t;
2073
2115
  e.T & CONFIG_HAS_COMPANIONS && GlobalQueue.Oe !== null && GlobalQueue.Oe(e, t);
2074
- if (e.Se !== undefined)
2116
+ if (e.oe !== undefined)
2075
2117
  e.Te = clock;
2076
2118
  if (u && e._t === notifyEpoch && currentOptimisticLane === null && !reaskArmed)
2077
2119
  return t;
@@ -2086,7 +2128,7 @@ function suppressComputedRecompute(e) {
2086
2128
  schedule();
2087
2129
  }
2088
2130
  e.ie = e.ie & -4 | REACTIVE_MANUAL_WRITE;
2089
- e.kt = clock;
2131
+ e.vt = clock;
2090
2132
  }
2091
2133
  function setMemo(e, t) {
2092
2134
  const n = setSignal(e, t);
@@ -2114,7 +2156,7 @@ function staleValues(e, t = true) {
2114
2156
  stale = n;
2115
2157
  }
2116
2158
  }
2117
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/context.js
2159
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/context.js
2118
2160
  function createContext(e, t) {
2119
2161
  return {
2120
2162
  id: Symbol(t),
@@ -2146,16 +2188,16 @@ function hasContext(e, t) {
2146
2188
  function isUndefined(e) {
2147
2189
  return typeof e === "undefined";
2148
2190
  }
2149
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/core/effect.js
2150
- function effect(t, e, E, R) {
2151
- const r = !!R?.user;
2152
- const f = createEffectNode(t, e, E, r ? EFFECT_USER : EFFECT_RENDER, notifyEffectStatus, R);
2153
- recompute(f, true);
2154
- !R?.defer && (f.Re === EFFECT_USER || R?.schedule ? f.C.enqueue(f.Re, runEffect.bind(null, f)) : runEffect(f));
2191
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/core/effect.js
2192
+ function effect(t, e, E, f) {
2193
+ const r = !!f?.user;
2194
+ const R = createEffectNode(t, e, E, r ? EFFECT_USER : EFFECT_RENDER, f);
2195
+ recompute(R, true);
2196
+ !f?.defer && (R.Re === EFFECT_USER || f?.schedule ? R.C.enqueue(R.Re, runEffect.bind(null, R)) : runEffect(R));
2155
2197
  }
2156
2198
  function notifyEffectStatus(t, e) {
2157
2199
  const E = t !== undefined ? t : this.S;
2158
- const R = e !== undefined ? e : this.o?._;
2200
+ const f = e !== undefined ? e : this.o?._;
2159
2201
  if (E & STATUS_ERROR) {
2160
2202
  this.C.notify(this, STATUS_PENDING, 0);
2161
2203
  if (this.Re === EFFECT_USER) {
@@ -2166,11 +2208,11 @@ function notifyEffectStatus(t, e) {
2166
2208
  return;
2167
2209
  }
2168
2210
  if (!this.C.notify(this, STATUS_ERROR, STATUS_ERROR)) {
2169
- haltReactivity(unwrapStatusError(R));
2170
- throw R;
2211
+ haltReactivity(unwrapStatusError(f));
2212
+ throw f;
2171
2213
  }
2172
2214
  } else if (this.Re === EFFECT_RENDER) {
2173
- this.C.notify(this, STATUS_PENDING | STATUS_ERROR, E, R);
2215
+ this.C.notify(this, STATUS_PENDING | STATUS_ERROR, E, f);
2174
2216
  }
2175
2217
  }
2176
2218
  function runEffect(t) {
@@ -2178,7 +2220,7 @@ function runEffect(t) {
2178
2220
  return;
2179
2221
  if (t.S & STATUS_ERROR && t.Re === EFFECT_USER) {
2180
2222
  const e2 = unwrapStatusError(t.o?._);
2181
- t.Tt = t.be;
2223
+ t.dt = t.be;
2182
2224
  t.Xe = false;
2183
2225
  try {
2184
2226
  t.St ? t.St(e2, () => {
@@ -2198,7 +2240,7 @@ function runEffect(t) {
2198
2240
  t.At = undefined;
2199
2241
  try {
2200
2242
  e?.();
2201
- const E = t.dt(t.be, t.Tt);
2243
+ const E = t.Tt(t.be, t.dt);
2202
2244
  if (false)
2203
2245
  ;
2204
2246
  t.At = E;
@@ -2210,7 +2252,7 @@ function runEffect(t) {
2210
2252
  throw e2;
2211
2253
  }
2212
2254
  } finally {
2213
- t.Tt = t.be;
2255
+ t.dt = t.be;
2214
2256
  t.Xe = false;
2215
2257
  }
2216
2258
  }
@@ -2228,8 +2270,8 @@ function trackedEffect(t, e) {
2228
2270
  const e2 = E.At;
2229
2271
  E.At = undefined;
2230
2272
  e2?.();
2231
- const R = staleValues(t);
2232
- E.At = R;
2273
+ const f = staleValues(t);
2274
+ E.At = f;
2233
2275
  }, {
2234
2276
  ...e,
2235
2277
  lazy: true
@@ -2238,22 +2280,12 @@ function trackedEffect(t, e) {
2238
2280
  E.T = E.T & ~CONFIG_AUTO_DISPOSE | CONFIG_CHILDREN_FORBIDDEN;
2239
2281
  E.Xe = true;
2240
2282
  E.Re = EFFECT_TRACKED;
2241
- ext(E).A = (t2, e2) => {
2242
- const R = t2 !== undefined ? t2 : E.S;
2243
- if (R & STATUS_ERROR) {
2244
- E.C.notify(E, STATUS_PENDING, 0);
2245
- const t3 = e2 !== undefined ? e2 : E.o?._;
2246
- if (!E.C.notify(E, STATUS_ERROR, STATUS_ERROR)) {
2247
- haltReactivity(unwrapStatusError(t3));
2248
- throw t3;
2249
- }
2250
- }
2251
- };
2252
2283
  E.Ut = run;
2253
2284
  E.C.enqueue(EFFECT_USER, run);
2254
2285
  }
2286
+ setEffectStatusNotify(notifyEffectStatus);
2255
2287
 
2256
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/signals.js
2288
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/signals.js
2257
2289
  function onCleanup(e) {
2258
2290
  return cleanup(e);
2259
2291
  }
@@ -2292,7 +2324,7 @@ function onSettled(e) {
2292
2324
  e();
2293
2325
  });
2294
2326
  }
2295
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/store.js
2327
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/store.js
2296
2328
  var $TRACK = Symbol(0);
2297
2329
  var $TARGET = Symbol(0);
2298
2330
  var $PROXY = Symbol(0);
@@ -2305,12 +2337,12 @@ function ownEnumerableKeys(e) {
2305
2337
  }
2306
2338
  var affectsScopes = new Map;
2307
2339
 
2308
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/boundaries.js
2340
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/boundaries.js
2309
2341
  function boundaryComputed(e, t) {
2310
2342
  const r = computed(e, {
2311
2343
  lazy: true
2312
2344
  });
2313
- ext(r).A = (e2, t2) => {
2345
+ ext(r).h = (e2, t2) => {
2314
2346
  const n = e2 !== undefined ? e2 : r.S;
2315
2347
  const s = t2 !== undefined ? t2 : r.o?._;
2316
2348
  r.S &= ~r.R;
@@ -2349,13 +2381,13 @@ class CollectionQueue extends Queue {
2349
2381
  ee;
2350
2382
  v = new Set;
2351
2383
  te;
2352
- N = true;
2353
- I = signal(false, {
2384
+ U = true;
2385
+ D = signal(false, {
2354
2386
  ownedWrite: true,
2355
2387
  H: true
2356
2388
  });
2357
2389
  _;
2358
- D = signal(false, {
2390
+ P = signal(false, {
2359
2391
  ownedWrite: true,
2360
2392
  H: true
2361
2393
  });
@@ -2368,7 +2400,7 @@ class CollectionQueue extends Queue {
2368
2400
  this.ee = e;
2369
2401
  }
2370
2402
  run(e) {
2371
- if (!e || read(this.I) && (!_revealUsed || read(this.D)))
2403
+ if (!e || read(this.D) && (!_revealUsed || read(this.P)))
2372
2404
  return;
2373
2405
  return super.run(e);
2374
2406
  }
@@ -2392,13 +2424,13 @@ class CollectionQueue extends Queue {
2392
2424
  if (this.ee & STATUS_PENDING && this.L)
2393
2425
  return super.notify(e, t, r, n);
2394
2426
  if (r & this.ee) {
2395
- this.N = true;
2427
+ this.U = true;
2396
2428
  const t2 = n?.source || e.o?._?.source;
2397
2429
  if (t2) {
2398
2430
  const e2 = this.v.size === 0;
2399
2431
  this.v.add(t2);
2400
2432
  if (e2)
2401
- setSignal(this.I, true);
2433
+ setSignal(this.D, true);
2402
2434
  if (this.ee & STATUS_ERROR) {
2403
2435
  setSignal(this._, unwrapStatusError(t2.o?._));
2404
2436
  }
@@ -2413,13 +2445,13 @@ class CollectionQueue extends Queue {
2413
2445
  this.v.delete(e);
2414
2446
  }
2415
2447
  if (!this.v.size) {
2416
- if (this.ee & STATUS_PENDING && this.N && !this.L && this.te) {
2417
- this.N = !!(this.te.S & this.ee);
2448
+ if (this.ee & STATUS_PENDING && this.U && !this.L && this.te) {
2449
+ this.U = !!(this.te.S & this.ee);
2418
2450
  } else {
2419
- this.N = false;
2451
+ this.U = false;
2420
2452
  }
2421
- if (!this.N) {
2422
- setSignal(this.I, false);
2453
+ if (!this.U) {
2454
+ setSignal(this.D, false);
2423
2455
  if (this.re) {
2424
2456
  try {
2425
2457
  this.ne = untrack(() => this.re());
@@ -2454,7 +2486,7 @@ function createCollectionBoundary(e, t, r, n) {
2454
2486
  else
2455
2487
  throw e2;
2456
2488
  }
2457
- i.N = t2 || !!(o.S & e) || o.o?._ instanceof NotReadyError;
2489
+ i.U = t2 || !!(o.S & e) || o.o?._ instanceof NotReadyError;
2458
2490
  });
2459
2491
  const l = _revealUsed && e === STATUS_PENDING ? getContext(RevealControllerContext) : null;
2460
2492
  if (l) {
@@ -2463,12 +2495,12 @@ function createCollectionBoundary(e, t, r, n) {
2463
2495
  cleanup(() => l.$(i));
2464
2496
  }
2465
2497
  return accessor(computed(() => {
2466
- if (!read(i.I)) {
2498
+ if (!read(i.D)) {
2467
2499
  const e2 = read(o);
2468
- if (!untrack(() => read(i.I)))
2500
+ if (!untrack(() => read(i.D)))
2469
2501
  return i.L = true, e2;
2470
2502
  }
2471
- if (_revealUsed && read(i.D))
2503
+ if (_revealUsed && read(i.P))
2472
2504
  return;
2473
2505
  return r(i);
2474
2506
  }, {
@@ -2477,8 +2509,10 @@ function createCollectionBoundary(e, t, r, n) {
2477
2509
  }
2478
2510
  function createErrorBoundary(e, t) {
2479
2511
  return createCollectionBoundary(STATUS_ERROR, e, (e2) => t(accessor(e2._), () => {
2480
- for (const t2 of e2.v)
2481
- recompute(t2);
2512
+ for (const t2 of e2.v) {
2513
+ if (t2.oe !== undefined)
2514
+ recompute(t2);
2515
+ }
2482
2516
  schedule();
2483
2517
  }));
2484
2518
  }
@@ -2538,7 +2572,7 @@ function flattenArray(e, t = [], r) {
2538
2572
  throw n;
2539
2573
  return s;
2540
2574
  }
2541
- // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.3/node_modules/@solidjs/signals/dist/prod/store/utils.js
2575
+ // ../../../node_modules/.bun/@solidjs+signals@2.0.0-rc.4/node_modules/@solidjs/signals/dist/prod/store/utils.js
2542
2576
  function trueFn() {
2543
2577
  return true;
2544
2578
  }
@@ -2657,7 +2691,7 @@ function merge(...e) {
2657
2691
  u[$SOURCES] = t;
2658
2692
  return u;
2659
2693
  }
2660
- // ../../../node_modules/.bun/solid-js@2.0.0-rc.3/node_modules/solid-js/dist/solid.js
2694
+ // ../../../node_modules/.bun/solid-js@2.0.0-rc.4/node_modules/solid-js/dist/solid.js
2661
2695
  var $DEVCOMP = Symbol(0);
2662
2696
  function createContext2(defaultValue, options) {
2663
2697
  const id = Symbol(options && options.name || "");
@@ -2692,6 +2726,7 @@ var NoHydrateContext = {
2692
2726
  var _createMemo;
2693
2727
  var _createErrorBoundary;
2694
2728
  var _createRenderEffect;
2729
+ var latchedOnce = new WeakSet;
2695
2730
  var LIVE_SOURCE = Symbol.for("solid.LiveSource");
2696
2731
  var createMemo2 = (...args) => {
2697
2732
  return (_createMemo || createMemo)(...args);
@@ -2706,7 +2741,7 @@ function createComponent(Comp, props) {
2706
2741
  return untrack(() => Comp(props || {}));
2707
2742
  }
2708
2743
 
2709
- // ../../../node_modules/.bun/@solidjs+universal@2.0.0-rc.3+9a75f4285017533e/node_modules/@solidjs/universal/dist/universal.js
2744
+ // ../../../node_modules/.bun/@solidjs+universal@2.0.0-rc.4+4eb2d79516b92ebc/node_modules/@solidjs/universal/dist/universal.js
2710
2745
  var transparentOptions = {
2711
2746
  transparent: true,
2712
2747
  sync: true
@@ -3606,8 +3641,8 @@ function scanForOrphans(now) {
3606
3641
  return;
3607
3642
  for (let [type] of fresh)
3608
3643
  warnedLeakTypes.add(type);
3609
- let list = fresh.map(([type, n]) => `<${type}> x${n}`).join(", ");
3610
- console.warn(`Leak sentinel: ${total} nodes are unreachable and will never be freed: ${list}. ` + `The usual cause is reading an element-valued prop more than once (every read ` + `builds a new subtree); read it once where it mounts, or resolve it with ` + `children(). If these nodes are intentionally kept for later mounting, ignore ` + `this. Element types already reported are not reported again.`);
3644
+ let list = [...counts].map(([type, n]) => `<${type}> x${n}`).join(", ");
3645
+ console.warn(`Leak sentinel: ${total} nodes are unreachable and will never be freed: ${list}. ` + `The usual cause is reading an element-valued prop more than once (every read ` + `builds a new subtree); read it once where it mounts, or resolve it with ` + `children(). If these nodes are intentionally kept for later mounting, ignore ` + `this. The next warning comes when a new element type joins the list.`);
3611
3646
  }
3612
3647
  var warnedRejectedProps = new Set;
3613
3648
  function setTreeProperty(node, name, value) {
@@ -3688,6 +3723,10 @@ var renderer = createRenderer({
3688
3723
  insertNode: (parent, node, anchor) => {
3689
3724
  if (!node)
3690
3725
  return;
3726
+ if (typeof node !== "object" || node.id === undefined) {
3727
+ let what = typeof node === "function" ? "a signal accessor" : `a ${typeof node}`;
3728
+ throw new Error(`insertNode received ${what} instead of an element under <${parent?.elementType ?? "?"}>; ` + `resolve the children with children() or return one root element from the component.`);
3729
+ }
3691
3730
  pendingDestroy.delete(node.id);
3692
3731
  if (parent) {
3693
3732
  if (anchor)
@@ -4754,6 +4793,25 @@ var FRESNEL = glsl`
4754
4793
  return pow(1.0 - max(dot(n, v), 0.0), power);
4755
4794
  }
4756
4795
  `;
4796
+ var FOG = glsl`
4797
+ uniform vec3 uFogColor;
4798
+ uniform float uFogNear;
4799
+ uniform float uFogInv;
4800
+ uniform float uFogDensity;
4801
+ uniform float uFogHeight;
4802
+ uniform float uFogHeightFalloff;
4803
+ vec3 fog(vec3 rgb, float alpha, vec3 worldPos, vec3 camPos) {
4804
+ float d = distance(worldPos, camPos);
4805
+ float linear = clamp((d - uFogNear) * uFogInv, 0.0, 1.0);
4806
+ float dd = d * uFogDensity;
4807
+ float exp2 = 1.0 - exp(-dd * dd);
4808
+ float h = exp(-max(worldPos.y - uFogHeight, 0.0) * uFogHeightFalloff);
4809
+ return mix(rgb, uFogColor * alpha, max(linear, exp2) * h);
4810
+ }
4811
+ vec3 fogAdditive(vec3 rgb, vec3 worldPos, vec3 camPos) {
4812
+ return fog(rgb, 0.0, worldPos, camPos);
4813
+ }
4814
+ `;
4757
4815
  var SHADOW_SLOTS = glsl`
4758
4816
  uniform sampler2D uShadowAtlas;
4759
4817
  uniform vec4 uShadowRect[${MAX_SHADOW_MAPS}];
@@ -5116,11 +5174,14 @@ var UNLIT_VERTEX = glsl`
5116
5174
  in vec3 aPos;
5117
5175
  in vec2 aUV;
5118
5176
  out vec2 vUv;
5177
+ out vec3 vWorldPos;
5119
5178
  uniform mat4 uModel;
5120
5179
  uniform mat4 uViewProj;
5121
5180
 
5122
5181
  void main() {
5123
- gl_Position = uViewProj * uModel * vec4(aPos, 1.0);
5182
+ vec4 world = uModel * vec4(aPos, 1.0);
5183
+ vWorldPos = world.xyz;
5184
+ gl_Position = uViewProj * world;
5124
5185
  vUv = aUV;
5125
5186
  }
5126
5187
  `;
@@ -5185,6 +5246,7 @@ var SPRITE_VERTEX_SRC = glsl`
5185
5246
  in vec3 aPos;
5186
5247
  in vec2 aUV;
5187
5248
  out vec2 vUv;
5249
+ out vec3 vWorldPos;
5188
5250
  uniform mat4 uModel;
5189
5251
  uniform mat4 uViewProj;
5190
5252
  uniform vec3 uCamRight;
@@ -5194,6 +5256,7 @@ var SPRITE_VERTEX_SRC = glsl`
5194
5256
  vec3 center = uModel[3].xyz;
5195
5257
  vec2 size = vec2(length(uModel[0].xyz), length(uModel[1].xyz));
5196
5258
  vec3 world = center + uCamRight * (aPos.x * size.x) + uCamUp * (aPos.y * size.y);
5259
+ vWorldPos = world;
5197
5260
  gl_Position = uViewProj * vec4(world, 1.0);
5198
5261
  vUv = aUV;
5199
5262
  }
@@ -5202,6 +5265,7 @@ var SPRITE_FIXED_Y_VERTEX_SRC = glsl`
5202
5265
  in vec3 aPos;
5203
5266
  in vec2 aUV;
5204
5267
  out vec2 vUv;
5268
+ out vec3 vWorldPos;
5205
5269
  uniform mat4 uModel;
5206
5270
  uniform mat4 uViewProj;
5207
5271
  uniform vec3 uCamPos;
@@ -5214,6 +5278,7 @@ var SPRITE_FIXED_Y_VERTEX_SRC = glsl`
5214
5278
  float len = length(toCam);
5215
5279
  vec3 right = len > 1e-6 ? vec3(toCam.z, 0.0, -toCam.x) / len : vec3(1.0, 0.0, 0.0);
5216
5280
  vec3 world = center + right * (aPos.x * size.x) + vec3(0.0, aPos.y * size.y, 0.0);
5281
+ vWorldPos = world;
5217
5282
  gl_Position = uViewProj * vec4(world, 1.0);
5218
5283
  vUv = aUV;
5219
5284
  }
@@ -6557,6 +6622,54 @@ function createScene(width, height, opts) {
6557
6622
  for (let v of views)
6558
6623
  setTargetParams2(v.texture, params);
6559
6624
  },
6625
+ setFog(fog) {
6626
+ if (fog === null) {
6627
+ scene.setParams({
6628
+ uFogInv: 0,
6629
+ uFogDensity: 0,
6630
+ uFogHeightFalloff: 0
6631
+ });
6632
+ return;
6633
+ }
6634
+ let color = [fog.color[0], fog.color[1], fog.color[2]];
6635
+ let height2 = fog.height ?? 0;
6636
+ let falloff = fog.heightFalloff ?? 0;
6637
+ if (!Number.isFinite(height2) || !Number.isFinite(falloff) || falloff < 0) {
6638
+ throw new Error(`setFog: height must be finite and heightFalloff finite and >= 0, got ${height2} / ${falloff}`);
6639
+ }
6640
+ let params = {
6641
+ uFogColor: color,
6642
+ uFogHeight: height2,
6643
+ uFogHeightFalloff: falloff
6644
+ };
6645
+ if ("density" in fog) {
6646
+ let {
6647
+ density
6648
+ } = fog;
6649
+ if (!Number.isFinite(density) || density <= 0) {
6650
+ throw new Error(`setFog: density must be finite and > 0, got ${density}`);
6651
+ }
6652
+ scene.setParams({
6653
+ ...params,
6654
+ uFogInv: 0,
6655
+ uFogDensity: density
6656
+ });
6657
+ return;
6658
+ }
6659
+ let {
6660
+ near,
6661
+ far
6662
+ } = fog;
6663
+ if (!(Number.isFinite(near) && Number.isFinite(far)) || far <= near) {
6664
+ throw new Error(`setFog: near/far must be finite with near < far, got ${near}..${far}`);
6665
+ }
6666
+ scene.setParams({
6667
+ ...params,
6668
+ uFogNear: near,
6669
+ uFogInv: 1 / (far - near),
6670
+ uFogDensity: 0
6671
+ });
6672
+ },
6560
6673
  setBackground(source) {
6561
6674
  if (disposed)
6562
6675
  return;
@@ -6720,6 +6833,16 @@ function createScene(width, height, opts) {
6720
6833
  }
6721
6834
  }
6722
6835
  };
6836
+ scene.setParams({
6837
+ uFogColor: [0, 0, 0],
6838
+ uFogNear: 0,
6839
+ uFogInv: 0,
6840
+ uFogDensity: 0,
6841
+ uFogHeight: 0,
6842
+ uFogHeightFalloff: 0
6843
+ });
6844
+ if (opts?.fog !== undefined)
6845
+ scene.setFog(opts.fog);
6723
6846
  if (opts?.background !== undefined)
6724
6847
  scene.setBackground(opts.background);
6725
6848
  if (opts?.autoFree !== false && getOwner())