@tempots/dom 31.4.0 → 31.5.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/index.js CHANGED
@@ -1,12 +1,12 @@
1
- var Ie = Object.defineProperty;
2
- var le = (s) => {
1
+ var We = Object.defineProperty;
2
+ var pe = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
- var Re = (s, e, t) => e in s ? Ie(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
6
- var o = (s, e, t) => Re(s, typeof e != "symbol" ? e + "" : e, t), ce = (s, e, t) => e.has(s) || le("Cannot " + t);
7
- var V = (s, e, t) => (ce(s, e, "read from private field"), t ? t.call(s) : e.get(s)), ue = (s, e, t) => e.has(s) ? le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), K = (s, e, t, r) => (ce(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
8
- const je = (s, e, t) => s + (e - s) * t;
9
- const Ve = (s, e, t) => {
5
+ var Ue = (s, e, t) => e in s ? We(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
6
+ var o = (s, e, t) => Ue(s, typeof e != "symbol" ? e + "" : e, t), ge = (s, e, t) => e.has(s) || pe("Cannot " + t);
7
+ var J = (s, e, t) => (ge(s, e, "read from private field"), t ? t.call(s) : e.get(s)), me = (s, e, t) => e.has(s) ? pe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), le = (s, e, t, r) => (ge(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
8
+ const Je = (s, e, t) => s + (e - s) * t;
9
+ const Ge = (s, e, t) => {
10
10
  const r = Math.max(s.length, e.length);
11
11
  let n = "";
12
12
  for (let i = 0; i < r; i++) {
@@ -16,9 +16,9 @@ const Ve = (s, e, t) => {
16
16
  isNaN(c) && (c = 97), n += String.fromCharCode(l + (c - l) * t);
17
17
  }
18
18
  return n;
19
- }, qe = (s, e, t) => new Date(s.getTime() + (e.getTime() - s.getTime()) * t), Fe = (s, e) => e, Be = (s) => typeof s == "number" ? je : typeof s == "string" ? Ve : s instanceof Date ? qe : Fe;
20
- var x;
21
- class ee {
19
+ }, Xe = (s, e, t) => new Date(s.getTime() + (e.getTime() - s.getTime()) * t), Ye = (s, e) => e, Qe = (s) => typeof s == "number" ? Je : typeof s == "string" ? Ge : s instanceof Date ? Xe : Ye;
20
+ var M;
21
+ class ce {
22
22
  /**
23
23
  * Creates a new instance of `ElementPosition`.
24
24
  * @param index - The index of the element.
@@ -44,10 +44,10 @@ class ee {
44
44
  * @returns `true` if the counter is odd, `false` otherwise.
45
45
  */
46
46
  o(this, "isOdd");
47
- ue(this, x);
47
+ me(this, M);
48
48
  o(this, "dispose", () => {
49
49
  var e;
50
- (e = V(this, x)) == null || e.dispose(), K(this, x, void 0);
50
+ (e = J(this, M)) == null || e.dispose(), le(this, M, void 0);
51
51
  });
52
52
  this.index = e, this.total = t, this.counter = e + 1, this.isFirst = e === 0, this.isEven = e % 2 === 1, this.isOdd = e % 2 === 0;
53
53
  }
@@ -56,11 +56,11 @@ class ee {
56
56
  * @returns `true` if the element is the last element, `false` otherwise.
57
57
  */
58
58
  get isLast() {
59
- return V(this, x) == null && K(this, x, this.total.map((e) => this.counter === e)), V(this, x);
59
+ return J(this, M) == null && le(this, M, this.total.map((e) => this.counter === e)), J(this, M);
60
60
  }
61
61
  }
62
- x = new WeakMap();
63
- const I = class I {
62
+ M = new WeakMap();
63
+ const F = class F {
64
64
  /**
65
65
  * Represents a signal with a value of type T.
66
66
  *
@@ -203,7 +203,7 @@ const I = class I {
203
203
  * @returns A new computed signal with the transformed value
204
204
  */
205
205
  o(this, "map", (e, t = (r, n) => r === n) => {
206
- const r = new M(() => {
206
+ const r = new N(() => {
207
207
  try {
208
208
  return e(this.get());
209
209
  } catch (n) {
@@ -223,7 +223,7 @@ const I = class I {
223
223
  * @returns A new Signal that emits the values of the resulting Signal.
224
224
  */
225
225
  o(this, "flatMap", (e, t = (r, n) => r === n) => {
226
- const r = new M(() => {
226
+ const r = new N(() => {
227
227
  try {
228
228
  return e(this.get()).get();
229
229
  } catch (n) {
@@ -252,7 +252,7 @@ const I = class I {
252
252
  o(this, "_$");
253
253
  o(this, "filter", (e, t) => {
254
254
  let r = t ?? this.get();
255
- const n = new M(() => {
255
+ const n = new N(() => {
256
256
  try {
257
257
  const i = this.get();
258
258
  return r = e(i) ? i : r;
@@ -274,7 +274,7 @@ const I = class I {
274
274
  */
275
275
  o(this, "filterMap", (e, t, r = (n, i) => n === i) => {
276
276
  let n = t;
277
- const i = new M(() => {
277
+ const i = new N(() => {
278
278
  try {
279
279
  const l = this.get(), c = e(l);
280
280
  return n = c ?? n;
@@ -298,17 +298,17 @@ const I = class I {
298
298
  * @returns A property that holds the mapped value and can be observed for changes.
299
299
  */
300
300
  o(this, "mapAsync", (e, t, r, n = (i, l) => i === l) => {
301
- const i = E(t, n);
301
+ const i = w(t, n);
302
302
  let l = 0, c = new AbortController();
303
303
  return i.onDispose(
304
- this.on(async (u) => {
305
- const a = ++l;
304
+ this.on(async (a) => {
305
+ const u = ++l;
306
306
  c.abort(), c = new AbortController();
307
307
  try {
308
- const h = await e(u, { abortSignal: c.signal });
309
- a === l && i.set(h);
308
+ const h = await e(a, { abortSignal: c.signal });
309
+ u === l && i.set(h);
310
310
  } catch (h) {
311
- if (a === l)
311
+ if (u === l)
312
312
  if (r != null)
313
313
  i.set(r(h));
314
314
  else
@@ -348,7 +348,7 @@ const I = class I {
348
348
  o(this, "deriveProp", ({
349
349
  autoDisposeProp: e = !0,
350
350
  equals: t
351
- } = {}) => this.feedProp(E(this.get(), t), e));
351
+ } = {}) => this.feedProp(w(this.get(), t), e));
352
352
  /**
353
353
  * Derives a new signal from the current signal. Useful to create a new signal that emits the same values as the current signal but can be disposed independently.
354
354
  * @returns A new signal that emits the same values as the current signal.
@@ -436,8 +436,8 @@ const I = class I {
436
436
  * @param equals - Function to compare two values for equality (defaults to strict equality)
437
437
  * @returns A Signal that represents the result of the Promise
438
438
  */
439
- o(I, "ofPromise", (e, t, r, n = (i, l) => i === l) => {
440
- const i = new I(t, n);
439
+ o(F, "ofPromise", (e, t, r, n = (i, l) => i === l) => {
440
+ const i = new F(t, n);
441
441
  return e.then((l) => i._setAndNotify(l)).catch((l) => {
442
442
  r != null ? i._setAndNotify(r(l)) : console.error(
443
443
  "Unhandled promise rejection in Signal.ofPromise:",
@@ -450,13 +450,13 @@ o(I, "ofPromise", (e, t, r, n = (i, l) => i === l) => {
450
450
  * @param value - The value to check.
451
451
  * @returns `true` if the value is a Signal, `false` otherwise.
452
452
  */
453
- o(I, "is", (e) => (
453
+ o(F, "is", (e) => (
454
454
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
455
455
  e != null && e.$__signal__ === !0
456
456
  ));
457
- let g = I;
458
- const We = typeof queueMicrotask == "function" ? queueMicrotask : (s) => Promise.resolve().then(s);
459
- class M extends g {
457
+ let d = F;
458
+ const Ze = typeof queueMicrotask == "function" ? queueMicrotask : (s) => Promise.resolve().then(s);
459
+ class N extends d {
460
460
  /**
461
461
  * Represents a Signal object.
462
462
  * @param _fn - The function that returns the value of the signal.
@@ -491,7 +491,7 @@ class M extends g {
491
491
  */
492
492
  o(this, "_scheduleNotify", () => {
493
493
  const t = ++this._scheduleCount;
494
- We(() => {
494
+ Ze(() => {
495
495
  this._scheduleCount !== t || this._disposed || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn()));
496
496
  });
497
497
  });
@@ -513,7 +513,7 @@ class M extends g {
513
513
  return this.get();
514
514
  }
515
515
  }
516
- const Y = class Y extends g {
516
+ const te = class te extends d {
517
517
  constructor() {
518
518
  super(...arguments);
519
519
  /**
@@ -545,8 +545,8 @@ const Y = class Y extends g {
545
545
  const n = this;
546
546
  return function i(l) {
547
547
  const c = n.value;
548
- n.update((u) => t(u, l)), !n.equals(c, n.value) && r.forEach(
549
- (u) => u({
548
+ n.update((a) => t(a, l)), !n.equals(c, n.value) && r.forEach(
549
+ (a) => a({
550
550
  previousState: c,
551
551
  state: n.value,
552
552
  action: l,
@@ -567,7 +567,7 @@ const Y = class Y extends g {
567
567
  * @returns A Prop object representing the isomorphism.
568
568
  */
569
569
  o(this, "iso", (t, r, n = (i, l) => i === l) => {
570
- const i = new Y(t(this.get()), n);
570
+ const i = new te(t(this.get()), n);
571
571
  return i.onDispose(this.on((l) => i.set(t(l)))), i.on((l) => this._setAndNotify(r(l))), i;
572
572
  });
573
573
  /**
@@ -596,15 +596,15 @@ const Y = class Y extends g {
596
596
  * @param value - The value to check.
597
597
  * @returns `true` if the value is a Prop, `false` otherwise.
598
598
  */
599
- o(Y, "is", (t) => (
599
+ o(te, "is", (t) => (
600
600
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
601
601
  t != null && t.$__prop__ === !0
602
602
  ));
603
- let F = Y;
604
- const te = (s, e, t = (r, n) => r === n) => {
605
- const r = new M(s, t);
603
+ let X = te;
604
+ const ae = (s, e, t = (r, n) => r === n) => {
605
+ const r = new N(s, t);
606
606
  return e.forEach((n) => n.setDerivative(r)), r;
607
- }, Ue = (s, e, t = {}) => {
607
+ }, ze = (s, e, t = {}) => {
608
608
  let r = t.once ? () => {
609
609
  i(), s();
610
610
  } : s;
@@ -615,24 +615,24 @@ const te = (s, e, t = (r, n) => r === n) => {
615
615
  l ? c() : l = !0;
616
616
  };
617
617
  }
618
- const n = te(r, e), i = () => {
618
+ const n = ae(r, e), i = () => {
619
619
  n.dispose(), t.abortSignal != null && t.abortSignal.removeEventListener("abort", i);
620
620
  };
621
621
  return t.abortSignal != null && t.abortSignal.addEventListener("abort", i), i;
622
- }, E = (s, e = (t, r) => t === r) => new F(s, e), Q = (s, e = (t, r) => t === r) => new g(s, e), se = () => (
622
+ }, w = (s, e = (t, r) => t === r) => new X(s, e), se = (s, e = (t, r) => t === r) => new d(s, e), ue = () => (
623
623
  /* c8 ignore next */
624
624
  typeof window < "u" ? window : void 0
625
625
  );
626
- function de(s) {
626
+ function Se(s) {
627
627
  return s != null && s !== !1 && s !== 0 && s !== "";
628
628
  }
629
- function Je(s) {
630
- return !de(s);
629
+ function Ke(s) {
630
+ return !Se(s);
631
631
  }
632
- function Ge(s) {
632
+ function et(s) {
633
633
  return s == null;
634
634
  }
635
- function Xe(s) {
635
+ function tt(s) {
636
636
  return s != null;
637
637
  }
638
638
  const y = {
@@ -647,7 +647,7 @@ const y = {
647
647
  * @param fn - The function to map the value.
648
648
  * @returns The mapped value.
649
649
  */
650
- map: (s, e) => g.is(s) ? s.map(e) : e(s),
650
+ map: (s, e) => d.is(s) ? s.map(e) : e(s),
651
651
  /**
652
652
  * Wraps a value or a Signal instance into a Signal.
653
653
  * If the value is already a Signal, it returns the value itself.
@@ -658,7 +658,7 @@ const y = {
658
658
  * @param equals - A function that determines if two values are equal. Defaults to strict equality (===).
659
659
  * @returns A Signal instance.
660
660
  */
661
- toSignal: (s, e) => g.is(s) ? s : Q(s, e),
661
+ toSignal: (s, e) => d.is(s) ? s : se(s, e),
662
662
  /**
663
663
  * Wraps a value in a `Signal` if it is not already a `Signal`.
664
664
  * If the value is `null` or `undefined`, it returns `null` or `undefined` respectively.
@@ -674,14 +674,14 @@ const y = {
674
674
  * @param value - The value or Signal instance to get the value from.
675
675
  * @returns The value.
676
676
  */
677
- get: (s) => g.is(s) ? s.get() : s,
677
+ get: (s) => d.is(s) ? s.get() : s,
678
678
  /**
679
679
  * Adds a listener to a `Signal` or calls the listener immediately if it is not a `Signal`.
680
680
  * @param value - The value or Signal instance to add the listener to.
681
681
  * @param listener - The listener to call when the value changes.
682
682
  * @returns A function to remove the listener.
683
683
  */
684
- on: (s, e) => g.is(s) ? s.on(e) : (e(s), () => {
684
+ on: (s, e) => d.is(s) ? s.on(e) : (e(s), () => {
685
685
  }),
686
686
  /**
687
687
  * Disposes of a value or a Signal.
@@ -690,7 +690,7 @@ const y = {
690
690
  * @param value - The value or Signal instance to dispose of.
691
691
  */
692
692
  dispose: (s) => {
693
- g.is(s) && s.dispose();
693
+ d.is(s) && s.dispose();
694
694
  },
695
695
  /**
696
696
  * Derives a Prop from a Signal.
@@ -705,54 +705,54 @@ const y = {
705
705
  deriveProp: (s, {
706
706
  autoDisposeProp: e = !0,
707
707
  equals: t
708
- } = {}) => g.is(s) ? s.deriveProp({ autoDisposeProp: e, equals: t }) : E(s, t),
708
+ } = {}) => d.is(s) ? s.deriveProp({ autoDisposeProp: e, equals: t }) : w(s, t),
709
709
  /**
710
710
  * Creates a new signal that emits `true` if the value is truthy, `false` otherwise.
711
711
  * @param value - The value or signal to check.
712
712
  * @returns A signal that emits `true` if the value is truthy, `false` otherwise.
713
713
  */
714
- truthy: (s) => y.map(s, de),
714
+ truthy: (s) => y.map(s, Se),
715
715
  /**
716
716
  * Creates a new signal that emits `true` if the value is falsy, `false` otherwise.
717
717
  * @param value - The value or signal to check.
718
718
  * @returns A signal that emits `true` if the value is falsy, `false` otherwise.
719
719
  */
720
- falsy: (s) => y.map(s, Je),
720
+ falsy: (s) => y.map(s, Ke),
721
721
  /**
722
722
  * Creates a new signal that emits `true` if the value is null or undefined, `false` otherwise.
723
723
  * @param value - The value or signal to check.
724
724
  * @returns A signal that emits `true` if the value is null or undefined, `false` otherwise.
725
725
  */
726
- nil: (s) => y.map(s, Ge),
726
+ nil: (s) => y.map(s, et),
727
727
  /**
728
728
  * Creates a new signal that emits `true` if the value is not null or undefined, `false` otherwise.
729
729
  * @param value - The value or signal to check.
730
730
  * @returns A signal that emits `true` if the value is not null or undefined, `false` otherwise.
731
731
  */
732
- defined: (s) => y.map(s, Xe)
733
- }, re = (...s) => (e, t) => {
732
+ defined: (s) => y.map(s, tt)
733
+ }, he = (...s) => (e, t) => {
734
734
  if (s.length === 1)
735
735
  return y.toSignal(s[0]).map(e);
736
- const r = s.filter((n) => g.is(n));
737
- return te(
736
+ const r = s.filter((n) => d.is(n));
737
+ return ae(
738
738
  () => e(...s.map((n) => y.get(n))),
739
739
  r,
740
740
  t
741
741
  );
742
- }, $t = (s) => {
742
+ }, qt = (s) => {
743
743
  const e = Object.keys(s);
744
- return re(...Object.values(s))(
744
+ return he(...Object.values(s))(
745
745
  (...t) => Object.fromEntries(e.map((r, n) => [r, t[n]]))
746
746
  );
747
- }, Nt = (...s) => (e, t = {}) => {
748
- const r = s.filter((n) => g.is(n));
749
- return Ue(
747
+ }, Ft = (...s) => (e, t = {}) => {
748
+ const r = s.filter((n) => d.is(n));
749
+ return ze(
750
750
  () => e(...s.map(y.get)),
751
751
  r,
752
752
  t
753
753
  );
754
754
  };
755
- class pe {
755
+ class Ae {
756
756
  constructor() {
757
757
  o(this, "_store", /* @__PURE__ */ new Map());
758
758
  /**
@@ -771,102 +771,131 @@ class pe {
771
771
  });
772
772
  }
773
773
  }
774
- const ge = ({
774
+ const ve = ({
775
775
  key: s,
776
776
  defaultValue: e,
777
777
  store: t,
778
778
  serialize: r = JSON.stringify,
779
779
  deserialize: n = JSON.parse,
780
- equals: i = (u, a) => u === a,
780
+ equals: i = (u, h) => u === h,
781
781
  onLoad: l = (u) => u,
782
- syncTabs: c = !0
782
+ syncTabs: c = !0,
783
+ onKeyChange: a = "load"
783
784
  }) => {
784
- const u = t.getItem(s), a = new F(
785
- u != null ? l(n(u)) : typeof e == "function" ? e() : e,
785
+ let u = y.get(s);
786
+ const h = t.getItem(u), p = new X(
787
+ h != null ? l(n(h)) : typeof e == "function" ? e() : e,
786
788
  i
787
- ), h = se(), m = c && typeof (h == null ? void 0 : h.BroadcastChannel) == "function", T = `tempo:storedProp:${s}`;
788
- let p = !1, d = null, A = null;
789
- if (m) {
790
- d = new h.BroadcastChannel(T), A = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`;
791
- const P = (S) => {
792
- const b = S.data;
793
- if (!(b == null || typeof b != "object" || b.key !== s || typeof b.value != "string" || b.sourceId != null && b.sourceId === A))
789
+ ), T = ue(), g = c && typeof (T == null ? void 0 : T.BroadcastChannel) == "function";
790
+ let m = !1, S = null, P = null;
791
+ const v = (b) => {
792
+ if (!g) return null;
793
+ const k = `tempo:storedProp:${b}`, A = new T.BroadcastChannel(k), H = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (U) => {
794
+ const E = U.data;
795
+ if (!(E == null || typeof E != "object" || E.key !== b || typeof E.value != "string" || E.sourceId != null && E.sourceId === H))
794
796
  try {
795
- p = !0;
796
- const N = l(n(b.value));
797
- a.set(N);
798
- } catch (N) {
797
+ m = !0;
798
+ const oe = l(n(E.value));
799
+ p.set(oe);
800
+ } catch (oe) {
799
801
  console.warn(
800
- `Failed to sync storedProp for key "${s}" via BroadcastChannel`,
801
- N
802
+ `Failed to sync storedProp for key "${b}" via BroadcastChannel`,
803
+ oe
802
804
  );
803
805
  } finally {
804
- p = !1;
806
+ m = !1;
805
807
  }
806
808
  };
807
- d.addEventListener("message", P), a.onDispose(() => {
808
- d == null || d.removeEventListener("message", P), d == null || d.close();
809
+ return A.addEventListener("message", O), p.onDispose(() => {
810
+ A == null || A.removeEventListener("message", O), A == null || A.close();
811
+ }), { channel: A, instanceId: H, handleMessage: O };
812
+ }, D = v(u);
813
+ D && (S = D.channel, P = D.instanceId);
814
+ const ie = (b) => {
815
+ const k = u;
816
+ if (k === b) return;
817
+ const A = p.get(), H = r(A);
818
+ if (t.setItem(k, H), S != null && (S.close(), S = null, P = null), u = b, a === "load") {
819
+ const U = t.getItem(b);
820
+ if (U != null)
821
+ try {
822
+ const E = l(n(U));
823
+ p.set(E);
824
+ } catch (E) {
825
+ console.warn(
826
+ `Failed to load storedProp from new key "${b}"`,
827
+ E
828
+ );
829
+ }
830
+ else
831
+ t.setItem(b, H);
832
+ } else a === "migrate" && t.setItem(b, H);
833
+ const O = v(b);
834
+ O && (S = O.channel, P = O.instanceId);
835
+ };
836
+ return d.is(s) && p.onDispose(s.on(ie)), p.on((b, k) => {
837
+ const A = r(b);
838
+ t.setItem(u, A), S != null && !m && k !== void 0 && P != null && S.postMessage({
839
+ key: u,
840
+ value: A,
841
+ sourceId: P
809
842
  });
810
- }
811
- return a.on((P, S) => {
812
- const b = r(P);
813
- t.setItem(s, b), d != null && !p && S !== void 0 && A != null && d.postMessage({ key: s, value: b, sourceId: A });
814
- }), a;
815
- }, kt = (s) => {
843
+ }), p;
844
+ }, Bt = (s) => {
816
845
  var e;
817
- return ge({
846
+ return ve({
818
847
  ...s,
819
848
  /* c8 ignore next 3 */
820
- store: ((e = se()) == null ? void 0 : e.localStorage) ?? new pe()
849
+ store: ((e = ue()) == null ? void 0 : e.localStorage) ?? new Ae()
821
850
  });
822
- }, It = (s) => {
851
+ }, Wt = (s) => {
823
852
  var e;
824
- return ge({
853
+ return ve({
825
854
  ...s,
826
855
  /* c8 ignore next 3 */
827
- store: ((e = se()) == null ? void 0 : e.sessionStorage) ?? new pe()
856
+ store: ((e = ue()) == null ? void 0 : e.sessionStorage) ?? new Ae()
828
857
  });
829
858
  };
830
- function ae(s) {
859
+ function ye(s) {
831
860
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(s) : setTimeout(s, 0);
832
861
  }
833
- const Ye = (s, e, t, r) => {
834
- const n = (r == null ? void 0 : r.duration) ?? 300, i = (r == null ? void 0 : r.easing) ?? ((S) => S), l = (r == null ? void 0 : r.equals) ?? ((S, b) => S === b);
835
- let c = r == null ? void 0 : r.interpolate, u = s, a = e(), h = performance.now(), m = null, T = !0;
836
- const p = new M(e, l), d = E(s, l);
837
- d.onDispose(() => {
838
- m !== null && cancelAnimationFrame(m);
839
- }), d.onDispose(p.dispose), t.forEach((S) => {
840
- S.setDerivative(p), S.onDispose(d.dispose);
862
+ const st = (s, e, t, r) => {
863
+ const n = (r == null ? void 0 : r.duration) ?? 300, i = (r == null ? void 0 : r.easing) ?? ((v) => v), l = (r == null ? void 0 : r.equals) ?? ((v, D) => v === D);
864
+ let c = r == null ? void 0 : r.interpolate, a = s, u = e(), h = performance.now(), p = null, T = !0;
865
+ const g = new N(e, l), m = w(s, l);
866
+ m.onDispose(() => {
867
+ p !== null && cancelAnimationFrame(p);
868
+ }), m.onDispose(g.dispose), t.forEach((v) => {
869
+ v.setDerivative(g), v.onDispose(m.dispose);
841
870
  });
842
- const A = (S) => {
843
- a = S, h = performance.now(), u = d.value, T && (T = !1, m = ae(P));
871
+ const S = (v) => {
872
+ u = v, h = performance.now(), a = m.value, T && (T = !1, p = ye(P));
844
873
  }, P = () => {
845
- const b = (performance.now() - h) / y.get(n), N = i(b);
846
- c == null && (c = Be(u));
847
- let oe = c(u, a, N);
848
- b >= 1 ? (T = !0, oe = a) : m = ae(P), d.set(oe);
874
+ const D = (performance.now() - h) / y.get(n), ie = i(D);
875
+ c == null && (c = Qe(a));
876
+ let b = c(a, u, ie);
877
+ D >= 1 ? (T = !0, b = u) : p = ye(P), m.set(b);
849
878
  };
850
- return p.on(A), d;
851
- }, Rt = (s, e) => {
879
+ return g.on(S), m;
880
+ }, Ut = (s, e) => {
852
881
  const { initialValue: t, ...r } = e ?? {};
853
- return Ye(
882
+ return st(
854
883
  /* c8 ignore next 2 */
855
884
  t ?? s.get(),
856
885
  s.get,
857
886
  [s],
858
887
  r
859
888
  );
860
- }, Qe = (s, e) => {
861
- const t = Object.values(s).filter(g.is), r = Object.keys(s);
862
- return te(() => {
889
+ }, rt = (s, e) => {
890
+ const t = Object.values(s).filter(d.is), r = Object.keys(s);
891
+ return ae(() => {
863
892
  const n = {};
864
893
  for (const i of r)
865
894
  n[i] = y.get(s[i]);
866
895
  return e(n);
867
896
  }, t);
868
- }, jt = (s) => Qe(s, (e) => e), Vt = (s, e) => {
869
- const t = E(s.get());
897
+ }, Jt = (s) => rt(s, (e) => e), Gt = (s, e) => {
898
+ const t = w(s.get());
870
899
  let r = null;
871
900
  const n = s.on((i) => {
872
901
  r != null && clearTimeout(r), r = setTimeout(
@@ -879,33 +908,33 @@ const Ye = (s, e, t, r) => {
879
908
  return t.onDispose(() => {
880
909
  n(), r != null && clearTimeout(r);
881
910
  }), t;
882
- }, qt = (s) => {
911
+ }, Xt = (s) => {
883
912
  let e;
884
913
  return s.map((t) => {
885
914
  const r = e;
886
915
  return e = t, r;
887
916
  });
888
- }, Ft = ({
917
+ }, Yt = ({
889
918
  size: s = void 0,
890
919
  signal: e
891
920
  }) => {
892
921
  const t = [];
893
922
  return e.map((r) => (t.push(r), s != null && t.length > s && t.shift(), t.slice()));
894
- }, Bt = (s) => (...e) => re(
923
+ }, Qt = (s) => (...e) => he(
895
924
  s,
896
925
  ...e
897
926
  )((t, ...r) => t(...r));
898
- function Wt(...s) {
899
- return re(...s)((...e) => {
927
+ function Zt(...s) {
928
+ return he(...s)((...e) => {
900
929
  for (const t of e) if (t != null) return t;
901
930
  });
902
931
  }
903
- const me = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), ye = /* @__PURE__ */ new Set(["selected"]), Te = /* @__PURE__ */ new Set([
932
+ const _e = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ee = /* @__PURE__ */ new Set(["selected"]), Ce = /* @__PURE__ */ new Set([
904
933
  "rowSpan",
905
934
  "colSpan",
906
935
  "tabIndex",
907
936
  "valueAsNumber"
908
- ]), be = /* @__PURE__ */ new Set(["valueAsDate"]), Se = /* @__PURE__ */ new Set([
937
+ ]), we = /* @__PURE__ */ new Set(["valueAsDate"]), xe = /* @__PURE__ */ new Set([
909
938
  "value",
910
939
  "textContent",
911
940
  "innerText",
@@ -913,28 +942,28 @@ const me = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), ye = /* @
913
942
  "outerHTML",
914
943
  "className",
915
944
  "classList"
916
- ]), Ze = (s, e) => ye.has(s) ? (t) => {
945
+ ]), nt = (s, e) => Ee.has(s) ? (t) => {
917
946
  t == null || t !== !0 ? e.removeAttribute(s) : e.setAttribute(s, "");
918
- } : me.has(s) ? (t) => {
947
+ } : _e.has(s) ? (t) => {
919
948
  t == null ? e[s] = null : e[s] = !!t;
920
- } : Te.has(s) ? (t) => {
949
+ } : Ce.has(s) ? (t) => {
921
950
  t == null ? e[s] = null : e[s] = Number(t);
922
- } : be.has(s) ? (t) => {
951
+ } : we.has(s) ? (t) => {
923
952
  t == null ? e[s] = null : e[s] = t;
924
- } : Se.has(s) ? (t) => {
953
+ } : xe.has(s) ? (t) => {
925
954
  t == null ? e[s] = null : e[s] = String(t);
926
955
  } : (t) => {
927
956
  t == null ? e.removeAttribute(s) : e.setAttribute(s, t);
928
- }, ze = (s, e) => ye.has(s) ? () => e.hasAttribute(s) : me.has(s) ? () => !!e[s] : Te.has(s) ? () => Number(e[s]) : be.has(s) ? () => e[s] : Se.has(s) ? () => String(e[s]) : () => e.getAttribute(s), B = (s) => {
957
+ }, it = (s, e) => Ee.has(s) ? () => e.hasAttribute(s) : _e.has(s) ? () => !!e[s] : Ce.has(s) ? () => Number(e[s]) : we.has(s) ? () => e[s] : xe.has(s) ? () => String(e[s]) : () => e.getAttribute(s), Y = (s) => {
929
958
  const e = s;
930
959
  e && e.onblur && (e.onblur = null), !(!s || s.ownerDocument === void 0) && s.parentElement && s.parentElement.removeChild(s);
931
- }, Ke = (s) => Ae(s) ? s : s.parentElement, Ae = (s) => s.nodeType === 1;
932
- class ve extends Error {
960
+ }, ot = (s) => Pe(s) ? s : s.parentElement, Pe = (s) => s.nodeType === 1;
961
+ class De extends Error {
933
962
  constructor(e) {
934
963
  super(`Provider not found: ${e.description}`);
935
964
  }
936
965
  }
937
- class O {
966
+ class R {
938
967
  /**
939
968
  * Constructs a new `DOMContext` instance.
940
969
  *
@@ -1031,7 +1060,7 @@ class O {
1031
1060
  * @param element - The DOM element to use in the new `DOMContext` instance.
1032
1061
  * @returns A new `DOMContext` instance with the provided `element`.
1033
1062
  */
1034
- o(this, "withElement", (e) => new O(this.document, e, void 0, this.providers));
1063
+ o(this, "withElement", (e) => new R(this.document, e, void 0, this.providers));
1035
1064
  /**
1036
1065
  * Creates a portal to render content in a different part of the DOM tree.
1037
1066
  *
@@ -1088,7 +1117,7 @@ class O {
1088
1117
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
1089
1118
  * @returns A new `DOMContext` instance with the specified reference.
1090
1119
  */
1091
- o(this, "withReference", (e) => new O(this.document, this.element, e, this.providers));
1120
+ o(this, "withReference", (e) => new R(this.document, this.element, e, this.providers));
1092
1121
  /**
1093
1122
  * Sets a provider for the given provider mark.
1094
1123
  *
@@ -1096,7 +1125,7 @@ class O {
1096
1125
  * @param value - The provider to set for the given mark.
1097
1126
  * @returns A new `DOMContext` instance with the specified provider.
1098
1127
  */
1099
- o(this, "setProvider", (e, t, r) => new O(this.document, this.element, this.reference, {
1128
+ o(this, "setProvider", (e, t, r) => new R(this.document, this.element, this.reference, {
1100
1129
  ...this.providers,
1101
1130
  [e]: [t, r]
1102
1131
  }));
@@ -1109,12 +1138,12 @@ class O {
1109
1138
  */
1110
1139
  o(this, "getProvider", (e) => {
1111
1140
  if (this.providers[e] === void 0)
1112
- throw new ve(e);
1141
+ throw new De(e);
1113
1142
  const [t, r] = this.providers[e];
1114
1143
  return { value: t, onUse: r };
1115
1144
  });
1116
1145
  o(this, "clear", (e) => {
1117
- e && (this.reference !== void 0 ? B(this.reference) : B(this.element));
1146
+ e && (this.reference !== void 0 ? Y(this.reference) : Y(this.element));
1118
1147
  });
1119
1148
  /**
1120
1149
  * Adds classes to the element.
@@ -1184,8 +1213,8 @@ class O {
1184
1213
  */
1185
1214
  o(this, "getStyle", (e) => this.element.style[e]);
1186
1215
  o(this, "makeAccessors", (e) => ({
1187
- get: ze(e, this.element),
1188
- set: Ze(e, this.element)
1216
+ get: it(e, this.element),
1217
+ set: nt(e, this.element)
1189
1218
  }));
1190
1219
  o(this, "getWindow", () => this.document.defaultView);
1191
1220
  this.document = e, this.element = t, this.reference = r, this.providers = n;
@@ -1199,54 +1228,54 @@ class O {
1199
1228
  * @returns A new `DOMContext` instance.
1200
1229
  */
1201
1230
  static of(e, t, r) {
1202
- return new O(e.ownerDocument, e, t, r);
1231
+ return new R(e.ownerDocument, e, t, r);
1203
1232
  }
1204
1233
  }
1205
- const et = (s) => Symbol(s), ne = (s, e) => {
1234
+ const lt = (s) => Symbol(s), fe = (s, e) => {
1206
1235
  const t = s(e);
1207
1236
  return (r = !0) => t(r);
1208
- }, Ut = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1237
+ }, zt = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1209
1238
  const l = typeof e == "string" ? (t ?? document).querySelector(e) : e;
1210
1239
  if (l === null)
1211
- throw new tt(
1240
+ throw new ct(
1212
1241
  `Cannot find element by selector for render: ${e}`
1213
1242
  );
1214
1243
  r !== !1 && (t ?? l.ownerDocument) != null && l.nodeType === 1 && (l.innerHTML = "");
1215
- const c = Ke(l), u = Ae(l) ? void 0 : l, a = O.of(c, u, i), h = ne(s, a);
1216
- let m;
1217
- return n && (m = new MutationObserver((T) => {
1218
- var p;
1219
- (p = T[0]) == null || p.removedNodes.forEach((d) => {
1220
- d === l && (m == null || m.disconnect(), h(l.nodeType !== 1));
1244
+ const c = ot(l), a = Pe(l) ? void 0 : l, u = R.of(c, a, i), h = fe(s, u);
1245
+ let p;
1246
+ return n && (p = new MutationObserver((T) => {
1247
+ var g;
1248
+ (g = T[0]) == null || g.removedNodes.forEach((m) => {
1249
+ m === l && (p == null || p.disconnect(), h(l.nodeType !== 1));
1221
1250
  });
1222
- }), m.observe(l.parentElement, {
1251
+ }), p.observe(l.parentElement, {
1223
1252
  childList: !0,
1224
1253
  subtree: !1,
1225
1254
  attributes: !1
1226
1255
  })), () => {
1227
- m == null || m.disconnect(), h(!0);
1256
+ p == null || p.disconnect(), h(!0);
1228
1257
  };
1229
- }, Jt = (s, {
1258
+ }, Kt = (s, {
1230
1259
  startUrl: e = "https://example.com",
1231
1260
  selector: t,
1232
1261
  providers: r = {}
1233
1262
  } = {
1234
1263
  selector: "body"
1235
1264
  }) => {
1236
- const n = y.toSignal(e).deriveProp(), i = new xe(t, void 0), l = new H(i, void 0, { currentURL: n }, r);
1265
+ const n = y.toSignal(e).deriveProp(), i = new ke(t, void 0), l = new V(i, void 0, { currentURL: n }, r);
1237
1266
  return {
1238
- clear: ne(s(), l),
1267
+ clear: fe(s(), l),
1239
1268
  root: i,
1240
1269
  currentURL: n
1241
1270
  };
1242
1271
  };
1243
- class tt extends Error {
1272
+ class ct extends Error {
1244
1273
  constructor(e) {
1245
1274
  super(e);
1246
1275
  }
1247
1276
  }
1248
- const _e = "data-tts-node", W = "data-tts-class", U = "data-tts-style", J = "data-tts-html", G = "data-tts-text", X = "data-tts-attrs";
1249
- class Gt {
1277
+ const Le = "data-tts-node", Q = "data-tts-class", Z = "data-tts-style", z = "data-tts-html", K = "data-tts-text", ee = "data-tts-attrs";
1278
+ class es {
1250
1279
  constructor({
1251
1280
  select: e,
1252
1281
  getAttribute: t,
@@ -1255,10 +1284,10 @@ class Gt {
1255
1284
  setClass: i,
1256
1285
  getStyles: l,
1257
1286
  setStyles: c,
1258
- appendHTML: u,
1259
- getInnerHTML: a,
1287
+ appendHTML: a,
1288
+ getInnerHTML: u,
1260
1289
  setInnerHTML: h,
1261
- getInnerText: m,
1290
+ getInnerText: p,
1262
1291
  setInnerText: T
1263
1292
  }) {
1264
1293
  /**
@@ -1353,21 +1382,21 @@ class Gt {
1353
1382
  if (n.hasChildren() && this.appendHTML(l, n.contentToHTML(t)), n.hasInnerHTML()) {
1354
1383
  if (t) {
1355
1384
  const c = this.getInnerHTML(l);
1356
- c != null && this.setAttribute(l, J, c);
1385
+ c != null && this.setAttribute(l, z, c);
1357
1386
  }
1358
1387
  this.setInnerHTML(l, n.getInnerHTML());
1359
1388
  }
1360
1389
  if (n.hasInnerText()) {
1361
1390
  if (t) {
1362
1391
  const c = this.getInnerText(l);
1363
- c != null && this.setAttribute(l, G, c);
1392
+ c != null && this.setAttribute(l, K, c);
1364
1393
  }
1365
1394
  this.setInnerText(l, n.getInnerText());
1366
1395
  }
1367
1396
  if (n.hasClasses()) {
1368
1397
  if (t) {
1369
1398
  const c = this.getClass(l);
1370
- c != null && this.setAttribute(l, W, c);
1399
+ c != null && this.setAttribute(l, Q, c);
1371
1400
  }
1372
1401
  this.setClass(l, n.getClasses().join(" "));
1373
1402
  }
@@ -1376,7 +1405,7 @@ class Gt {
1376
1405
  const c = this.getStyles(l);
1377
1406
  Object.keys(c).length > 0 && this.setAttribute(
1378
1407
  l,
1379
- U,
1408
+ Z,
1380
1409
  JSON.stringify(c)
1381
1410
  );
1382
1411
  }
@@ -1385,74 +1414,74 @@ class Gt {
1385
1414
  if (n.hasAttributes()) {
1386
1415
  const c = n.getAttributes();
1387
1416
  if (t) {
1388
- const u = [];
1389
- c.forEach(([a]) => {
1390
- const h = this.getAttribute(l, a);
1391
- h != null && u.push([a, h]);
1392
- }), u.length > 0 && this.setAttribute(
1417
+ const a = [];
1418
+ c.forEach(([u]) => {
1419
+ const h = this.getAttribute(l, u);
1420
+ h != null && a.push([u, h]);
1421
+ }), a.length > 0 && this.setAttribute(
1393
1422
  l,
1394
- X,
1395
- JSON.stringify(Object.fromEntries(u))
1423
+ ee,
1424
+ JSON.stringify(Object.fromEntries(a))
1396
1425
  );
1397
1426
  }
1398
- c.forEach(([u, a]) => {
1399
- this.setAttribute(l, u, a);
1427
+ c.forEach(([a, u]) => {
1428
+ this.setAttribute(l, a, u);
1400
1429
  });
1401
1430
  }
1402
1431
  }
1403
1432
  });
1404
1433
  });
1405
- this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = n, this.setClass = i, this.getStyles = l, this.setStyles = c, this.appendHTML = u, this.getInnerHTML = a, this.setInnerHTML = h, this.getInnerText = m, this.setInnerText = T;
1434
+ this.select = e, this.getAttribute = t, this.setAttribute = r, this.getClass = n, this.setClass = i, this.getStyles = l, this.setStyles = c, this.appendHTML = a, this.getInnerHTML = u, this.setInnerHTML = h, this.getInnerText = p, this.setInnerText = T;
1406
1435
  }
1407
1436
  }
1408
- const st = () => {
1409
- document.querySelectorAll(`[${_e}]`).forEach(B);
1410
- }, rt = (s) => {
1411
- const e = s.getAttribute(W);
1412
- s.removeAttribute(W), e != null && s.setAttribute("class", e);
1413
- }, nt = () => {
1414
- document.querySelectorAll(`[${W}]`).forEach((e) => rt(e));
1415
- }, it = (s) => {
1416
- const e = s.getAttribute(J);
1417
- s.removeAttribute(J), e != null && (s.innerHTML = e);
1418
- }, ot = () => {
1419
- document.querySelectorAll(`[${J}]`).forEach((e) => it(e));
1420
- }, lt = (s) => {
1421
- const e = s.getAttribute(G);
1422
- s.removeAttribute(G), e != null && (s.innerText = e);
1423
- }, ct = () => {
1424
- document.querySelectorAll(`[${G}]`).forEach((e) => lt(e));
1425
- }, Ee = (s) => JSON.parse(s.replace(/&quot;/g, '"')), ut = (s) => {
1426
- const e = s.getAttribute(U);
1427
- if (s.removeAttribute(U), e != null) {
1428
- const t = Ee(e);
1437
+ const at = () => {
1438
+ document.querySelectorAll(`[${Le}]`).forEach(Y);
1439
+ }, ut = (s) => {
1440
+ const e = s.getAttribute(Q);
1441
+ s.removeAttribute(Q), e != null && s.setAttribute("class", e);
1442
+ }, ht = () => {
1443
+ document.querySelectorAll(`[${Q}]`).forEach((e) => ut(e));
1444
+ }, ft = (s) => {
1445
+ const e = s.getAttribute(z);
1446
+ s.removeAttribute(z), e != null && (s.innerHTML = e);
1447
+ }, dt = () => {
1448
+ document.querySelectorAll(`[${z}]`).forEach((e) => ft(e));
1449
+ }, pt = (s) => {
1450
+ const e = s.getAttribute(K);
1451
+ s.removeAttribute(K), e != null && (s.innerText = e);
1452
+ }, gt = () => {
1453
+ document.querySelectorAll(`[${K}]`).forEach((e) => pt(e));
1454
+ }, Me = (s) => JSON.parse(s.replace(/&quot;/g, '"')), mt = (s) => {
1455
+ const e = s.getAttribute(Z);
1456
+ if (s.removeAttribute(Z), e != null) {
1457
+ const t = Me(e);
1429
1458
  Object.entries(t).forEach(([r, n]) => {
1430
1459
  s.style.setProperty(r, n);
1431
1460
  });
1432
1461
  }
1433
- }, at = () => {
1434
- document.querySelectorAll(`[${U}]`).forEach((e) => ut(e));
1435
- }, ht = (s) => {
1436
- const e = s.getAttribute(X);
1437
- if (s.removeAttribute(X), e != null) {
1438
- const t = Ee(e);
1462
+ }, yt = () => {
1463
+ document.querySelectorAll(`[${Z}]`).forEach((e) => mt(e));
1464
+ }, Tt = (s) => {
1465
+ const e = s.getAttribute(ee);
1466
+ if (s.removeAttribute(ee), e != null) {
1467
+ const t = Me(e);
1439
1468
  Object.entries(t).forEach(([r, n]) => {
1440
1469
  n == null ? s.removeAttribute(r) : s.setAttribute(r, n);
1441
1470
  });
1442
1471
  }
1443
- }, ft = () => {
1444
- document.querySelectorAll(`[${X}]`).forEach((e) => ht(e));
1445
- }, Xt = () => {
1446
- st(), nt(), ct(), ot(), at(), ft();
1447
- }, _ = Symbol("class"), w = Symbol("style"), D = Symbol("handler"), Ce = () => Math.random().toString(36).substring(2, 15), dt = (s) => s.replace(/<[^>]*>?/g, "");
1448
- class we {
1472
+ }, bt = () => {
1473
+ document.querySelectorAll(`[${ee}]`).forEach((e) => Tt(e));
1474
+ }, ts = () => {
1475
+ at(), ht(), gt(), dt(), yt(), bt();
1476
+ }, C = Symbol("class"), L = Symbol("style"), $ = Symbol("handler"), Oe = () => Math.random().toString(36).substring(2, 15), St = (s) => s.replace(/<[^>]*>?/g, "");
1477
+ class Ie {
1449
1478
  constructor(e) {
1450
- o(this, "id", Ce());
1479
+ o(this, "id", Oe());
1451
1480
  o(this, "properties", {});
1452
1481
  o(this, "children", []);
1453
1482
  o(this, "isElement", () => !0);
1454
1483
  o(this, "isText", () => !1);
1455
- o(this, "getText", () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? dt(this.properties.innerHTML) : this.children.map((e) => e.getText()).join(""));
1484
+ o(this, "getText", () => this.properties.innerText != null ? this.properties.innerText : this.properties.innerHTML != null ? St(this.properties.innerHTML) : this.children.map((e) => e.getText()).join(""));
1456
1485
  o(this, "removeChild", (e) => {
1457
1486
  const t = this.children.indexOf(e);
1458
1487
  t !== -1 && this.children.splice(t, 1);
@@ -1473,10 +1502,10 @@ class we {
1473
1502
  o(this, "getInnerText", () => this.properties.innerText ?? "");
1474
1503
  o(this, "hasInnerText", () => this.properties.innerText != null);
1475
1504
  o(this, "hasChildren", () => this.children.length > 0);
1476
- o(this, "hasClasses", () => this.properties[_] != null);
1477
- o(this, "hasStyles", () => this.properties[w] != null);
1505
+ o(this, "hasClasses", () => this.properties[C] != null);
1506
+ o(this, "hasStyles", () => this.properties[L] != null);
1478
1507
  o(this, "hasAttributes", () => Object.keys(this.properties).length > 0);
1479
- o(this, "hasHandlers", () => this.properties[D] != null);
1508
+ o(this, "hasHandlers", () => this.properties[$] != null);
1480
1509
  o(this, "hasRenderableProperties", () => this.hasClasses() || this.hasAttributes() || this.hasStyles());
1481
1510
  o(this, "getById", (e) => {
1482
1511
  if (this.properties.id === e)
@@ -1488,20 +1517,20 @@ class we {
1488
1517
  }
1489
1518
  });
1490
1519
  o(this, "trigger", (e, t) => {
1491
- ((this.properties[D] ?? {})[e] ?? []).forEach((n) => n(t));
1520
+ ((this.properties[$] ?? {})[e] ?? []).forEach((n) => n(t));
1492
1521
  });
1493
1522
  o(this, "click", () => {
1494
1523
  this.trigger("click", {});
1495
1524
  });
1496
1525
  o(this, "on", (e, t, r, n) => {
1497
- var u;
1498
- const i = (u = this.properties)[D] ?? (u[D] = {}), l = n != null && n.once ? (a) => {
1499
- c(), t(a, r);
1500
- } : (a) => t(a, r);
1526
+ var a;
1527
+ const i = (a = this.properties)[$] ?? (a[$] = {}), l = n != null && n.once ? (u) => {
1528
+ c(), t(u, r);
1529
+ } : (u) => t(u, r);
1501
1530
  i[e] = [...i[e] ?? [], l];
1502
1531
  const c = () => {
1503
- const a = i[e] ?? [], h = a.indexOf(l);
1504
- h !== -1 && (a.splice(h, 1), a.length === 0 ? (delete i[e], Object.keys(i).length === 0 && delete this.properties[D]) : i[e] = a, (n == null ? void 0 : n.signal) != null && n.signal.removeEventListener("abort", c));
1532
+ const u = i[e] ?? [], h = u.indexOf(l);
1533
+ h !== -1 && (u.splice(h, 1), u.length === 0 ? (delete i[e], Object.keys(i).length === 0 && delete this.properties[$]) : i[e] = u, (n == null ? void 0 : n.signal) != null && n.signal.removeEventListener("abort", c));
1505
1534
  };
1506
1535
  return (n == null ? void 0 : n.signal) != null && n.signal.addEventListener("abort", c), c;
1507
1536
  });
@@ -1509,7 +1538,7 @@ class we {
1509
1538
  var r;
1510
1539
  if (e.length === 0)
1511
1540
  return;
1512
- const t = (r = this.properties)[_] ?? (r[_] = []);
1541
+ const t = (r = this.properties)[C] ?? (r[C] = []);
1513
1542
  e.forEach((n) => {
1514
1543
  t.includes(n) || t.push(n);
1515
1544
  });
@@ -1518,29 +1547,29 @@ class we {
1518
1547
  var r;
1519
1548
  if (e.length === 0)
1520
1549
  return;
1521
- const t = (r = this.properties)[_] ?? (r[_] = []);
1550
+ const t = (r = this.properties)[C] ?? (r[C] = []);
1522
1551
  e.forEach((n) => {
1523
1552
  const i = t.indexOf(n);
1524
1553
  i !== -1 && t.splice(i, 1);
1525
- }), t.length === 0 && delete this.properties[_];
1554
+ }), t.length === 0 && delete this.properties[C];
1526
1555
  });
1527
- o(this, "getClasses", () => this.properties[_] ?? []);
1556
+ o(this, "getClasses", () => this.properties[C] ?? []);
1528
1557
  o(this, "getAttributes", () => Object.entries(this.properties).filter(
1529
1558
  ([e]) => !["innerText", "innerHTML"].includes(e)
1530
1559
  ));
1531
1560
  o(this, "getVisibleAttributes", () => Reflect.ownKeys(this.properties).flatMap(
1532
- (e) => e === _ ? [["class", this.getClasses()]] : e === w ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1561
+ (e) => e === C ? [["class", this.getClasses()]] : e === L ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1533
1562
  ));
1534
1563
  o(this, "setStyle", (e, t) => {
1535
1564
  var n;
1536
- const r = (n = this.properties)[w] ?? (n[w] = {});
1537
- r[e] = t, t === "" && (delete r[e], Object.keys(r).length === 0 && delete this.properties[w]);
1565
+ const r = (n = this.properties)[L] ?? (n[L] = {});
1566
+ r[e] = t, t === "" && (delete r[e], Object.keys(r).length === 0 && delete this.properties[L]);
1538
1567
  });
1539
1568
  o(this, "getStyle", (e) => {
1540
1569
  var t;
1541
- return ((t = this.properties[w]) == null ? void 0 : t[e]) ?? "";
1570
+ return ((t = this.properties[L]) == null ? void 0 : t[e]) ?? "";
1542
1571
  });
1543
- o(this, "getStyles", () => this.properties[w] ?? {});
1572
+ o(this, "getStyles", () => this.properties[L] ?? {});
1544
1573
  o(this, "makeAccessors", (e) => {
1545
1574
  const t = this.properties;
1546
1575
  return {
@@ -1551,21 +1580,21 @@ class we {
1551
1580
  this.parent = e;
1552
1581
  }
1553
1582
  }
1554
- const pt = (s) => s.replace(/"/g, "&quot;"), gt = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1555
- class mt extends we {
1583
+ const At = (s) => s.replace(/"/g, "&quot;"), vt = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1584
+ class _t extends Ie {
1556
1585
  constructor(t, r, n) {
1557
1586
  super(n);
1558
1587
  o(this, "isPortal", () => !1);
1559
1588
  o(this, "toHTML", (t = !1) => {
1560
- const r = this.children.map((u) => u.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1589
+ const r = this.children.map((a) => a.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1561
1590
  let i = null;
1562
- const l = this.getVisibleAttributes().map(([u, a]) => u === "class" ? ` class="${a.join(" ")}"` : u === "style" ? typeof a == "string" ? ` style="${a}"` : ` style="${Object.entries(a).map(([h, m]) => `${h}: ${m};`).join(" ")}"` : Tt.has(u) ? ` ${u}` : u === "innerHTML" ? (i = a, "") : u === "innerText" ? (i = gt(a), "") : ` ${u}="${pt(a)}"`).join(""), c = t ? ` ${_e}` : "";
1563
- return bt.has(this.tagName) && r === "" ? `<${this.tagName}${n}${l}${c} />` : `<${this.tagName}${n}${l}${c}>${i ?? r}</${this.tagName}>`;
1591
+ const l = this.getVisibleAttributes().map(([a, u]) => a === "class" ? ` class="${u.join(" ")}"` : a === "style" ? typeof u == "string" ? ` style="${u}"` : ` style="${Object.entries(u).map(([h, p]) => `${h}: ${p};`).join(" ")}"` : Ct.has(a) ? ` ${a}` : a === "innerHTML" ? (i = u, "") : a === "innerText" ? (i = vt(u), "") : ` ${a}="${At(u)}"`).join(""), c = t ? ` ${Le}` : "";
1592
+ return wt.has(this.tagName) && r === "" ? `<${this.tagName}${n}${l}${c} />` : `<${this.tagName}${n}${l}${c}>${i ?? r}</${this.tagName}>`;
1564
1593
  });
1565
1594
  this.tagName = t, this.namespace = r;
1566
1595
  }
1567
1596
  }
1568
- class xe extends we {
1597
+ class ke extends Ie {
1569
1598
  constructor(t, r) {
1570
1599
  super(r);
1571
1600
  o(this, "isPortal", () => !0);
@@ -1574,9 +1603,9 @@ class xe extends we {
1574
1603
  this.selector = t;
1575
1604
  }
1576
1605
  }
1577
- class yt {
1606
+ class Et {
1578
1607
  constructor(e) {
1579
- o(this, "id", Ce());
1608
+ o(this, "id", Oe());
1580
1609
  o(this, "isElement", () => !1);
1581
1610
  o(this, "isText", () => !0);
1582
1611
  o(this, "getText", () => this.text);
@@ -1584,7 +1613,7 @@ class yt {
1584
1613
  this.text = e;
1585
1614
  }
1586
1615
  }
1587
- class H {
1616
+ class V {
1588
1617
  constructor(e, t, r, n) {
1589
1618
  o(this, "appendOrInsert", (e) => {
1590
1619
  if (this.reference != null) {
@@ -1594,8 +1623,8 @@ class H {
1594
1623
  this.element.children.push(e);
1595
1624
  });
1596
1625
  o(this, "makeChildElement", (e, t) => {
1597
- const r = new mt(e, t, this.element);
1598
- return this.appendOrInsert(r), new H(
1626
+ const r = new _t(e, t, this.element);
1627
+ return this.appendOrInsert(r), new V(
1599
1628
  r,
1600
1629
  void 0,
1601
1630
  this.container,
@@ -1603,8 +1632,8 @@ class H {
1603
1632
  );
1604
1633
  });
1605
1634
  o(this, "makeChildText", (e) => {
1606
- const t = new yt(e);
1607
- return this.appendOrInsert(t), new H(
1635
+ const t = new Et(e);
1636
+ return this.appendOrInsert(t), new V(
1608
1637
  this.element,
1609
1638
  t,
1610
1639
  this.container,
@@ -1620,8 +1649,8 @@ class H {
1620
1649
  });
1621
1650
  o(this, "makeRef", () => this.makeChildText(""));
1622
1651
  o(this, "makePortal", (e) => {
1623
- const t = new xe(e, this.element);
1624
- return this.appendOrInsert(t), new H(
1652
+ const t = new ke(e, this.element);
1653
+ return this.appendOrInsert(t), new V(
1625
1654
  t,
1626
1655
  void 0,
1627
1656
  this.container,
@@ -1635,13 +1664,13 @@ class H {
1635
1664
  * @param value - The provider to set for the given mark.
1636
1665
  * @returns A new `DOMContext` instance with the specified provider.
1637
1666
  */
1638
- o(this, "setProvider", (e, t, r) => new H(this.element, this.reference, this.container, {
1667
+ o(this, "setProvider", (e, t, r) => new V(this.element, this.reference, this.container, {
1639
1668
  ...this.providers,
1640
1669
  [e]: [t, r]
1641
1670
  }));
1642
1671
  o(this, "getProvider", (e) => {
1643
1672
  if (this.providers[e] === void 0)
1644
- throw new ve(e);
1673
+ throw new De(e);
1645
1674
  const [t, r] = this.providers[e];
1646
1675
  return { value: t, onUse: r };
1647
1676
  });
@@ -1662,27 +1691,27 @@ class H {
1662
1691
  this.element = e, this.reference = t, this.container = r, this.providers = n;
1663
1692
  }
1664
1693
  }
1665
- const Tt = /* @__PURE__ */ new Set([
1694
+ const Ct = /* @__PURE__ */ new Set([
1666
1695
  "checked",
1667
1696
  "disabled",
1668
1697
  "multiple",
1669
1698
  "readonly",
1670
1699
  "required",
1671
1700
  "selected"
1672
- ]), bt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), Pe = (s) => (e) => e.makeChildText(s).clear, Le = (s) => (e) => {
1701
+ ]), wt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), He = (s) => (e) => e.makeChildText(s).clear, $e = (s) => (e) => {
1673
1702
  const t = e.makeChildText(s.value), r = s.on(t.setText);
1674
1703
  return (n) => {
1675
1704
  r(), t.clear(n);
1676
1705
  };
1677
- }, Yt = (s) => g.is(s) ? Le(s) : Pe(s), v = (...s) => (e) => {
1706
+ }, ss = (s) => d.is(s) ? $e(s) : He(s), _ = (...s) => (e) => {
1678
1707
  const t = s.map((r) => f(r)(e));
1679
1708
  return (r) => {
1680
1709
  t.forEach((n) => n(r));
1681
1710
  };
1682
- }, C = () => () => {
1683
- }, St = (s) => (e) => (e.addClasses(s), (t) => {
1711
+ }, x = () => () => {
1712
+ }, xt = (s) => (e) => (e.addClasses(s), (t) => {
1684
1713
  t && e.removeClasses(s);
1685
- }), At = (s) => (e) => {
1714
+ }), Pt = (s) => (e) => {
1686
1715
  let t = [];
1687
1716
  const r = s.on((n) => {
1688
1717
  e.removeClasses(t), t = (n ?? "").split(" ").filter((i) => i.length > 0), e.addClasses(t);
@@ -1690,17 +1719,17 @@ const Tt = /* @__PURE__ */ new Set([
1690
1719
  return (n) => {
1691
1720
  r(), n && e.removeClasses(t), t.length = 0;
1692
1721
  };
1693
- }, R = (s, e) => (t) => {
1722
+ }, B = (s, e) => (t) => {
1694
1723
  const { get: r, set: n } = t.makeAccessors(s), i = r();
1695
1724
  return n(e), (l) => {
1696
1725
  l && n(i);
1697
1726
  };
1698
- }, j = (s, e) => (t) => {
1727
+ }, W = (s, e) => (t) => {
1699
1728
  const { get: r, set: n } = t.makeAccessors(s), i = r(), l = e.on(n);
1700
1729
  return (c) => {
1701
1730
  l(), c && n(i);
1702
1731
  };
1703
- }, $ = new Proxy(
1732
+ }, j = new Proxy(
1704
1733
  {},
1705
1734
  {
1706
1735
  /**
@@ -1714,18 +1743,18 @@ const Tt = /* @__PURE__ */ new Set([
1714
1743
  * @returns The renderable component for the specified attribute.
1715
1744
  *
1716
1745
  */
1717
- get: (s, e) => e === "class" ? (t) => g.is(t) ? At(t) : St(
1746
+ get: (s, e) => e === "class" ? (t) => d.is(t) ? Pt(t) : xt(
1718
1747
  /* c8 ignore next */
1719
1748
  (t ?? "").split(" ").filter((r) => r.length > 0)
1720
- ) : (t) => g.is(t) ? j(
1749
+ ) : (t) => d.is(t) ? W(
1721
1750
  e,
1722
1751
  t
1723
- ) : R(
1752
+ ) : B(
1724
1753
  e,
1725
1754
  t
1726
1755
  )
1727
1756
  }
1728
- ), Qt = new Proxy(
1757
+ ), rs = new Proxy(
1729
1758
  {},
1730
1759
  {
1731
1760
  /**
@@ -1736,12 +1765,12 @@ const Tt = /* @__PURE__ */ new Set([
1736
1765
  * @returns The renderable component for the specified attribute.
1737
1766
  *
1738
1767
  */
1739
- get: (s, e) => (t) => g.is(t) ? j(
1768
+ get: (s, e) => (t) => d.is(t) ? W(
1740
1769
  `data-${e}`,
1741
1770
  t
1742
- ) : R(`data-${e}`, t)
1771
+ ) : B(`data-${e}`, t)
1743
1772
  }
1744
- ), Zt = new Proxy(
1773
+ ), ns = new Proxy(
1745
1774
  {},
1746
1775
  {
1747
1776
  /**
@@ -1752,15 +1781,15 @@ const Tt = /* @__PURE__ */ new Set([
1752
1781
  * @returns The renderable component for the specified attribute.
1753
1782
  *
1754
1783
  */
1755
- get: (s, e) => (t) => g.is(t) ? j(
1784
+ get: (s, e) => (t) => d.is(t) ? W(
1756
1785
  `aria-${e}`,
1757
1786
  t
1758
- ) : R(
1787
+ ) : B(
1759
1788
  `aria-${e}`,
1760
1789
  t
1761
1790
  )
1762
1791
  }
1763
- ), zt = new Proxy(
1792
+ ), is = new Proxy(
1764
1793
  {},
1765
1794
  {
1766
1795
  /**
@@ -1771,15 +1800,15 @@ const Tt = /* @__PURE__ */ new Set([
1771
1800
  * @returns The renderable component for the specified attribute.
1772
1801
  *
1773
1802
  */
1774
- get: (s, e) => (t) => g.is(t) ? j(
1803
+ get: (s, e) => (t) => d.is(t) ? W(
1775
1804
  e,
1776
1805
  t
1777
- ) : R(
1806
+ ) : B(
1778
1807
  e,
1779
1808
  t
1780
1809
  )
1781
1810
  }
1782
- ), Kt = new Proxy(
1811
+ ), os = new Proxy(
1783
1812
  {},
1784
1813
  {
1785
1814
  /**
@@ -1789,37 +1818,37 @@ const Tt = /* @__PURE__ */ new Set([
1789
1818
  * @returns The renderable component for the specified attribute.
1790
1819
  *
1791
1820
  */
1792
- get: (s, e) => (t) => g.is(t) ? j(
1821
+ get: (s, e) => (t) => d.is(t) ? W(
1793
1822
  e,
1794
1823
  t
1795
- ) : R(
1824
+ ) : B(
1796
1825
  e,
1797
1826
  t
1798
1827
  )
1799
1828
  }
1800
1829
  ), f = (s) => {
1801
1830
  if (s == null)
1802
- return C;
1831
+ return x;
1803
1832
  if (Array.isArray(s))
1804
- return v(...s.map(f));
1833
+ return _(...s.map(f));
1805
1834
  if (typeof s == "string")
1806
- return Pe(s);
1807
- if (g.is(s))
1808
- return Le(s);
1835
+ return He(s);
1836
+ if (d.is(s))
1837
+ return $e(s);
1809
1838
  if (typeof s == "function")
1810
1839
  return s;
1811
1840
  throw new Error(`Unknown type: '${typeof s}' for child: ${s}`);
1812
- }, De = (s, ...e) => (t) => {
1841
+ }, Ne = (s, ...e) => (t) => {
1813
1842
  const r = t.makeChildElement(s, void 0), n = e.map((i) => f(i)(r));
1814
1843
  return (i) => {
1815
1844
  n.forEach((l) => l(!1)), r.clear(i);
1816
1845
  };
1817
- }, Me = (s, e, ...t) => (r) => {
1846
+ }, Re = (s, e, ...t) => (r) => {
1818
1847
  const n = r.makeChildElement(s, e), i = t.map((l) => f(l)(n));
1819
1848
  return (l) => {
1820
1849
  i.forEach((c) => c(!1)), n.clear(l);
1821
1850
  };
1822
- }, es = new Proxy(
1851
+ }, ls = new Proxy(
1823
1852
  {},
1824
1853
  {
1825
1854
  /**
@@ -1827,9 +1856,9 @@ const Tt = /* @__PURE__ */ new Set([
1827
1856
  * @param tagName - The HTML tag name.
1828
1857
  * @returns A renderable function that creates and appends the HTML element to the DOM.
1829
1858
  */
1830
- get: (s, e) => (...t) => De(e, t.flatMap(f))
1859
+ get: (s, e) => (...t) => Ne(e, t.flatMap(f))
1831
1860
  }
1832
- ), ts = new Proxy(
1861
+ ), cs = new Proxy(
1833
1862
  {},
1834
1863
  {
1835
1864
  /**
@@ -1837,9 +1866,9 @@ const Tt = /* @__PURE__ */ new Set([
1837
1866
  * @param type - The input type name.
1838
1867
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
1839
1868
  */
1840
- get: (s, e) => (...t) => De("input", $.type(e), ...t)
1869
+ get: (s, e) => (...t) => Ne("input", j.type(e), ...t)
1841
1870
  }
1842
- ), vt = "http://www.w3.org/2000/svg", ss = new Proxy(
1871
+ ), Dt = "http://www.w3.org/2000/svg", as = new Proxy(
1843
1872
  {},
1844
1873
  {
1845
1874
  /**
@@ -1847,9 +1876,9 @@ const Tt = /* @__PURE__ */ new Set([
1847
1876
  * @param tagName - The SVG tag name.
1848
1877
  * @returns A renderable function that creates and appends the SVG element to the DOM.
1849
1878
  */
1850
- get: (s, e) => (...t) => Me(e, vt, t.flatMap(f))
1879
+ get: (s, e) => (...t) => Re(e, Dt, t.flatMap(f))
1851
1880
  }
1852
- ), _t = "http://www.w3.org/1998/Math/MathML", rs = new Proxy(
1881
+ ), Lt = "http://www.w3.org/1998/Math/MathML", us = new Proxy(
1853
1882
  {},
1854
1883
  {
1855
1884
  /**
@@ -1857,35 +1886,35 @@ const Tt = /* @__PURE__ */ new Set([
1857
1886
  * @param tagName - The Math tag name.
1858
1887
  * @returns A renderable function that creates and appends the Math element to the DOM.
1859
1888
  */
1860
- get: (s, e) => (...t) => Me(e, _t, t.flatMap(f))
1889
+ get: (s, e) => (...t) => Re(e, Lt, t.flatMap(f))
1861
1890
  }
1862
- ), Oe = (s, e) => {
1891
+ ), Ve = (s, e) => {
1863
1892
  if (typeof e == "function")
1864
- return Oe(s, { then: e });
1865
- const t = e.pending != null ? f(e.pending()) : C, r = e.then, n = e.error != null ? (i) => f(e.error(i)) : () => C;
1893
+ return Ve(s, { then: e });
1894
+ const t = e.pending != null ? f(e.pending()) : x, r = e.then, n = e.error != null ? (i) => f(e.error(i)) : () => x;
1866
1895
  return (i) => {
1867
1896
  let l = !0;
1868
- const c = s(), u = i.makeRef();
1869
- let a = f(t)(u);
1897
+ const c = s(), a = i.makeRef();
1898
+ let u = f(t)(a);
1870
1899
  return c.then(
1871
1900
  (h) => {
1872
- l && (a(!0), a = f(r(h))(u));
1901
+ l && (u(!0), u = f(r(h))(a));
1873
1902
  },
1874
1903
  (h) => {
1875
- l && (a(!0), a = f(n(h))(u));
1904
+ l && (u(!0), u = f(n(h))(a));
1876
1905
  }
1877
1906
  ), (h) => {
1878
- l = !1, a(h), u.clear(h);
1907
+ l = !1, u(h), a.clear(h);
1879
1908
  };
1880
1909
  };
1881
- }, ns = (s, e) => Oe(() => s, e), He = (s, e, t) => (r) => r.on(s, e, t), Et = (s) => He("click", (e, t) => {
1910
+ }, hs = (s, e) => Ve(() => s, e), je = (s, e, t) => (r) => r.on(s, e, t), Mt = (s) => je("click", (e, t) => {
1882
1911
  e.preventDefault();
1883
1912
  const r = e.target;
1884
1913
  setTimeout(() => {
1885
1914
  const n = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
1886
1915
  n != null && s(!n, t);
1887
1916
  }, 0);
1888
- }), Z = new Proxy(
1917
+ }), re = new Proxy(
1889
1918
  {},
1890
1919
  {
1891
1920
  /**
@@ -1893,20 +1922,20 @@ const Tt = /* @__PURE__ */ new Set([
1893
1922
  * @param fn - The function to call when the event is triggered.
1894
1923
  * @returns A `Renderable` function that adds the event listener to the element.
1895
1924
  */
1896
- get: (s, e) => (t) => He(e, t)
1925
+ get: (s, e) => (t) => je(e, t)
1897
1926
  }
1898
- ), Ct = (s, e) => (t) => {
1927
+ ), Ot = (s, e) => (t) => {
1899
1928
  (e == null ? void 0 : e.preventDefault) === !0 && t.preventDefault(), (e == null ? void 0 : e.stopPropagation) === !0 && t.stopPropagation(), (e == null ? void 0 : e.stopImmediatePropagation) === !0 && t.stopImmediatePropagation(), s(t);
1900
- }, L = (s, e) => Ct((t) => {
1929
+ }, I = (s, e) => Ot((t) => {
1901
1930
  const r = t.target;
1902
1931
  s(r, t);
1903
- }, e), wt = (s, e) => L(
1932
+ }, e), It = (s, e) => I(
1904
1933
  (t, r) => s(t.value, r),
1905
1934
  e
1906
- ), xt = (s, e) => L(
1935
+ ), kt = (s, e) => I(
1907
1936
  (t, r) => s(t.valueAsNumber, r),
1908
1937
  e
1909
- ), Pt = (s, e) => L((t, r) => {
1938
+ ), Ht = (s, e) => I((t, r) => {
1910
1939
  if (t.value === "")
1911
1940
  return;
1912
1941
  const n = t.value.split("-"), i = new Date(
@@ -1915,7 +1944,7 @@ const Tt = /* @__PURE__ */ new Set([
1915
1944
  Number(n[2].substring(0, 2))
1916
1945
  );
1917
1946
  s(i, r);
1918
- }, e), is = (s, e) => L((t, r) => {
1947
+ }, e), fs = (s, e) => I((t, r) => {
1919
1948
  if (t.value === "") {
1920
1949
  s(null, r);
1921
1950
  return;
@@ -1926,7 +1955,7 @@ const Tt = /* @__PURE__ */ new Set([
1926
1955
  Number(n[2].substring(0, 2))
1927
1956
  );
1928
1957
  s(i, r);
1929
- }, e), Lt = (s, e) => L((t, r) => {
1958
+ }, e), $t = (s, e) => I((t, r) => {
1930
1959
  if (t.value === "")
1931
1960
  return;
1932
1961
  const n = t.value.split("T"), i = n[0].split("-"), l = new Date(
@@ -1935,7 +1964,7 @@ const Tt = /* @__PURE__ */ new Set([
1935
1964
  Number(i[2])
1936
1965
  ), c = n[1].split(":");
1937
1966
  l.setHours(Number(c[0])), l.setMinutes(Number(c[1])), l.setSeconds(Number(c[2])), s(l, r);
1938
- }, e), os = (s, e) => L((t, r) => {
1967
+ }, e), ds = (s, e) => I((t, r) => {
1939
1968
  if (t.value === "") {
1940
1969
  s(null, r);
1941
1970
  return;
@@ -1951,41 +1980,41 @@ const Tt = /* @__PURE__ */ new Set([
1951
1980
  Number(i[2])
1952
1981
  ), c = n[1].split(":");
1953
1982
  l.setHours(Number(c[0] ?? 0)), l.setMinutes(Number(c[1] ?? 0)), l.setSeconds(Number(c[2] ?? 0)), s(l, r);
1954
- }, e), ls = (s, e) => L((t, r) => {
1983
+ }, e), ps = (s, e) => I((t, r) => {
1955
1984
  s(t.checked, r);
1956
- }, e), cs = (s, e = "input") => v($.valueAsDate(s), Z[e](Pt(s.set))), us = (s, e = "input") => v($.valueAsDate(s), Z[e](Lt(s.set))), as = (s, e = "input") => v($.valueAsNumber(s), Z[e](xt(s.set))), hs = (s, e = "input") => v($.value(s), Z[e](wt(s.set))), fs = (s) => v($.checked(s), Et(s.set)), z = (s, e) => {
1957
- if (g.is(s))
1985
+ }, e), gs = (s, e = "input") => _(j.valueAsDate(s), re[e](Ht(s.set))), ms = (s, e = "input") => _(j.valueAsDate(s), re[e]($t(s.set))), ys = (s, e = "input") => _(j.valueAsNumber(s), re[e](kt(s.set))), Ts = (s, e = "input") => _(j.value(s), re[e](It(s.set))), bs = (s) => _(j.checked(s), Mt(s.set)), ne = (s, e) => {
1986
+ if (d.is(s))
1958
1987
  return (r) => {
1959
1988
  const n = r.makeRef();
1960
1989
  let i, l;
1961
1990
  const c = s.map((h) => Object.keys(h)[0]);
1962
- let u;
1963
- const a = c.on((h) => {
1964
- if (h !== u) {
1965
- u = h, l == null || l.dispose(), i == null || i(!0), l = s.map((T) => T[h]);
1966
- const m = e[h](l);
1967
- i = f(m)(n);
1991
+ let a;
1992
+ const u = c.on((h) => {
1993
+ if (h !== a) {
1994
+ a = h, l == null || l.dispose(), i == null || i(!0), l = s.map((T) => T[h]);
1995
+ const p = e[h](l);
1996
+ i = f(p)(n);
1968
1997
  }
1969
1998
  });
1970
1999
  return (h) => {
1971
- l == null || l.dispose(), a(), n.clear(h), i == null || i(h);
2000
+ l == null || l.dispose(), u(), n.clear(h), i == null || i(h);
1972
2001
  };
1973
2002
  };
1974
2003
  const t = Object.keys(s)[0];
1975
- return f(e[t](Q(s[t])));
1976
- }, $e = (s, e, t) => z(
2004
+ return f(e[t](se(s[t])));
2005
+ }, qe = (s, e, t) => ne(
1977
2006
  y.map(s, (r) => ({ [r[e]]: r })),
1978
2007
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1979
2008
  t
1980
- ), ds = (s, e) => $e(s, "kind", e), ps = (s, e) => {
2009
+ ), Ss = (s, e) => qe(s, "kind", e), As = (s, e) => {
1981
2010
  const t = y.map(s, ([r, n]) => ({ [r]: n }));
1982
- return z(t, e);
1983
- }, gs = (s, e) => $e(s, "type", e), Dt = (s, e) => z(
2011
+ return ne(t, e);
2012
+ }, vs = (s, e) => qe(s, "type", e), Nt = (s, e) => ne(
1984
2013
  y.map(s, (t) => ({ [t]: !0 })),
1985
2014
  e
1986
- ), ms = (s, e = {}) => (t) => {
2015
+ ), _s = (s, e = {}) => (t) => {
1987
2016
  const r = (e == null ? void 0 : e.firstSeparator) ?? s, n = (e == null ? void 0 : e.lastSeparator) ?? s;
1988
- return Dt(
2017
+ return Nt(
1989
2018
  t.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
1990
2019
  {
1991
2020
  first: r,
@@ -1993,163 +2022,163 @@ const Tt = /* @__PURE__ */ new Set([
1993
2022
  other: s
1994
2023
  }
1995
2024
  );
1996
- }, ys = (s) => (e) => (e.appendOrInsert(s), (t) => {
1997
- t && B(s);
1998
- }), Ts = (s, e, t) => {
1999
- if (g.is(s)) {
2025
+ }, Es = (s) => (e) => (e.appendOrInsert(s), (t) => {
2026
+ t && Y(s);
2027
+ }), Cs = (s, e, t) => {
2028
+ if (d.is(s)) {
2000
2029
  const r = s;
2001
2030
  return (n) => {
2002
2031
  const i = n.makeRef();
2003
2032
  let l = () => {
2004
- }, c = !1, u = null;
2005
- const a = r.on((h) => {
2006
- h == null ? (l(!0), l = f(t == null ? void 0 : t())(i), c = !1, u == null || u.dispose(), u = null) : c ? u.set(h) : (u = E(h), l(!0), l = f(e(u))(
2033
+ }, c = !1, a = null;
2034
+ const u = r.on((h) => {
2035
+ h == null ? (l(!0), l = f(t == null ? void 0 : t())(i), c = !1, a == null || a.dispose(), a = null) : c ? a.set(h) : (a = w(h), l(!0), l = f(e(a))(
2007
2036
  i
2008
2037
  ), c = !0);
2009
2038
  });
2010
2039
  return (h) => {
2011
- u == null || u.dispose(), a(), l == null || l(h), i.clear(h);
2040
+ a == null || a.dispose(), u(), l == null || l(h), i.clear(h);
2012
2041
  };
2013
2042
  };
2014
2043
  } else {
2015
2044
  const r = s;
2016
2045
  if (r == null) {
2017
2046
  const n = t == null ? void 0 : t();
2018
- return n != null ? f(n) : C;
2047
+ return n != null ? f(n) : x;
2019
2048
  }
2020
- return f(e(Q(r)));
2049
+ return f(e(se(r)));
2021
2050
  }
2022
- }, bs = (...s) => (e, t) => (r) => {
2051
+ }, ws = (...s) => (e, t) => (r) => {
2023
2052
  const n = r.makeRef();
2024
2053
  if (s.some(
2025
- (p) => !g.is(p) && p == null
2054
+ (g) => !d.is(g) && g == null
2026
2055
  ))
2027
- return (t != null ? f(t == null ? void 0 : t()) : C)(
2056
+ return (t != null ? f(t == null ? void 0 : t()) : x)(
2028
2057
  n
2029
2058
  );
2030
2059
  const l = s.map(() => null), c = s.map(
2031
- (p) => g.is(p) ? p.value != null : p != null
2060
+ (g) => d.is(g) ? g.value != null : g != null
2032
2061
  );
2033
- let u = null;
2034
- const a = E(c.every((p) => p)), h = (p, d) => {
2035
- if (p.value != null) {
2036
- if (l[d] == null) {
2037
- const A = E(p.value);
2038
- l[d] = A;
2062
+ let a = null;
2063
+ const u = w(c.every((g) => g)), h = (g, m) => {
2064
+ if (g.value != null) {
2065
+ if (l[m] == null) {
2066
+ const S = w(g.value);
2067
+ l[m] = S;
2039
2068
  } else
2040
- l[d].value = p.value;
2041
- c[d] = !0;
2069
+ l[m].value = g.value;
2070
+ c[m] = !0;
2042
2071
  } else
2043
- c[d] = !1;
2072
+ c[m] = !1;
2044
2073
  };
2045
- let m = s.length - 1;
2046
- const T = s.map((p, d) => {
2047
- if (!g.is(p)) {
2048
- const A = E(p);
2049
- return l[d] = A, () => {
2074
+ let p = s.length - 1;
2075
+ const T = s.map((g, m) => {
2076
+ if (!d.is(g)) {
2077
+ const S = w(g);
2078
+ return l[m] = S, () => {
2050
2079
  };
2051
2080
  }
2052
- return p.on(() => {
2053
- h(p, d), m === 0 ? a.value = c.every((A) => A) : m--;
2081
+ return g.on(() => {
2082
+ h(g, m), p === 0 ? u.value = c.every((S) => S) : p--;
2054
2083
  });
2055
2084
  });
2056
- return a.on((p) => {
2057
- u == null || u(!0), u = null, p ? u = f(e(...l))(n) : u = f((t == null ? void 0 : t()) ?? C)(n);
2058
- }), (p) => {
2059
- l.forEach((d) => d == null ? void 0 : d.dispose()), a.dispose(), T.forEach((d) => d()), u == null || u(p), n.clear(p);
2085
+ return u.on((g) => {
2086
+ a == null || a(!0), a = null, g ? a = f(e(...l))(n) : a = f((t == null ? void 0 : t()) ?? x)(n);
2087
+ }), (g) => {
2088
+ l.forEach((m) => m == null ? void 0 : m.dispose()), u.dispose(), T.forEach((m) => m()), a == null || a(g), n.clear(g);
2060
2089
  };
2061
- }, k = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Ne = (s, e, t) => {
2062
- if (g.is(s)) {
2090
+ }, q = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Fe = (s, e, t) => {
2091
+ if (d.is(s)) {
2063
2092
  const r = s;
2064
2093
  return (n) => {
2065
2094
  const i = n.makeRef();
2066
2095
  let l = () => {
2067
2096
  };
2068
- const c = r.on((u) => {
2069
- l(!0), u ? l = f(e())(i) : l = f(t == null ? void 0 : t())(i);
2097
+ const c = r.on((a) => {
2098
+ l(!0), a ? l = f(e())(i) : l = f(t == null ? void 0 : t())(i);
2070
2099
  });
2071
- return (u) => {
2072
- l(u), c(), i.clear(u);
2100
+ return (a) => {
2101
+ l(a), c(), i.clear(a);
2073
2102
  };
2074
2103
  };
2075
2104
  } else {
2076
2105
  if (s) {
2077
2106
  const n = e();
2078
- return n != null ? f(n) : C;
2107
+ return n != null ? f(n) : x;
2079
2108
  }
2080
2109
  return f(t == null ? void 0 : t());
2081
2110
  }
2082
- }, Ss = (s, e, t) => Ne(
2111
+ }, xs = (s, e, t) => Fe(
2083
2112
  y.map(s, (r) => !r),
2084
2113
  e,
2085
2114
  t
2086
- ), ke = (s, e, t) => {
2115
+ ), Be = (s, e, t) => {
2087
2116
  if (t != null)
2088
- return ke(s, (r) => {
2089
- const n = new ee(
2117
+ return Be(s, (r) => {
2118
+ const n = new ce(
2090
2119
  r.index,
2091
2120
  r.total.map((i) => i - 1)
2092
2121
  );
2093
- return v(
2094
- k(n.dispose),
2122
+ return _(
2123
+ q(n.dispose),
2095
2124
  f(e(r)),
2096
- Ne(
2125
+ Fe(
2097
2126
  r.isLast,
2098
- () => C,
2127
+ () => x,
2099
2128
  () => t(n)
2100
2129
  )
2101
2130
  );
2102
2131
  });
2103
- if (g.is(s))
2132
+ if (d.is(s))
2104
2133
  return (r) => {
2105
2134
  const n = s.derive(), i = r.makeRef(), l = [];
2106
2135
  return n.on((c) => {
2107
- const u = l.splice(c);
2108
- for (const a of u)
2109
- a(!0);
2110
- for (let a = l.length; a < c; a++) {
2111
- const h = new ee(a, n);
2136
+ const a = l.splice(c);
2137
+ for (const u of a)
2138
+ u(!0);
2139
+ for (let u = l.length; u < c; u++) {
2140
+ const h = new ce(u, n);
2112
2141
  l.push(
2113
- v(
2114
- k(h.dispose),
2142
+ _(
2143
+ q(h.dispose),
2115
2144
  f(e(h))
2116
2145
  )(i)
2117
2146
  );
2118
2147
  }
2119
2148
  }), (c) => {
2120
2149
  n.dispose();
2121
- for (const u of l)
2122
- u(c);
2150
+ for (const a of l)
2151
+ a(c);
2123
2152
  l.length = 0, i.clear(c);
2124
2153
  };
2125
2154
  };
2126
2155
  {
2127
- const r = Q(s);
2128
- return v(
2156
+ const r = se(s);
2157
+ return _(
2129
2158
  ...Array.from({ length: s }, (n, i) => i).map((n) => {
2130
- const i = new ee(n, r);
2131
- return v(
2132
- k(i.dispose),
2159
+ const i = new ce(n, r);
2160
+ return _(
2161
+ q(i.dispose),
2133
2162
  f(e(i))
2134
2163
  );
2135
2164
  })
2136
2165
  );
2137
2166
  }
2138
- }, As = (s, e, t) => {
2167
+ }, Ps = (s, e, t) => {
2139
2168
  const r = y.map(s, (i) => i.length), n = y.toSignal(s);
2140
- return ke(
2169
+ return Be(
2141
2170
  r,
2142
2171
  (i) => {
2143
2172
  const l = n.map((c) => c[i.index]);
2144
- return v(
2145
- k(l.dispose),
2173
+ return _(
2174
+ q(l.dispose),
2146
2175
  f(e(l, i))
2147
2176
  );
2148
2177
  },
2149
2178
  t
2150
2179
  );
2151
- }, vs = (s, e) => {
2152
- if (g.is(s)) {
2180
+ }, Ds = (s, e) => {
2181
+ if (d.is(s)) {
2153
2182
  const t = s;
2154
2183
  return (r) => {
2155
2184
  r = r.makeRef();
@@ -2165,7 +2194,7 @@ const Tt = /* @__PURE__ */ new Set([
2165
2194
  };
2166
2195
  }
2167
2196
  return f(e(s));
2168
- }, _s = (s, e, t = () => C) => z(
2197
+ }, Ls = (s, e, t = () => x) => ne(
2169
2198
  y.map(
2170
2199
  s,
2171
2200
  (r) => r.length > 0 ? { notEmpty: r } : { whenEmpty: null }
@@ -2174,40 +2203,40 @@ const Tt = /* @__PURE__ */ new Set([
2174
2203
  notEmpty: (r) => e(r),
2175
2204
  whenEmpty: () => t()
2176
2205
  }
2177
- ), Es = (s, e) => (t) => {
2178
- const r = t.makePortal(s), n = ne(f(e), r);
2206
+ ), Ms = (s, e) => (t) => {
2207
+ const r = t.makePortal(s), n = fe(f(e), r);
2179
2208
  return () => n(!0);
2180
- }, q = /* @__PURE__ */ new Map(), Mt = (s) => ({
2181
- mark: et(`Probe(${s.description})`),
2209
+ }, G = /* @__PURE__ */ new Map(), Rt = (s) => ({
2210
+ mark: lt(`Probe(${s.description})`),
2182
2211
  create: ({ callback: e = () => {
2183
2212
  }, timeout: t = 10 } = {}) => {
2184
2213
  const r = (c) => {
2185
- clearTimeout(n), q.delete(s), e(c);
2214
+ clearTimeout(n), G.delete(s), e(c);
2186
2215
  };
2187
- if (q.has(s))
2216
+ if (G.has(s))
2188
2217
  throw new Error(`Probe already exists: ${s.description}`);
2189
2218
  const n = setTimeout(() => r("timeout"), t), i = { counter: 0, timeoutId: n };
2190
- return q.set(s, i), {
2219
+ return G.set(s, i), {
2191
2220
  value: () => {
2192
2221
  clearTimeout(n);
2193
- const c = q.get(s);
2222
+ const c = G.get(s);
2194
2223
  c != null && --c.counter === 0 && r("resolved");
2195
2224
  },
2196
2225
  dispose: () => r("disposed"),
2197
2226
  onUse: () => i.counter++
2198
2227
  };
2199
2228
  }
2200
- }), Cs = Mt(Symbol("GlobalProbe")), he = (s, e) => (t) => {
2229
+ }), Os = Rt(Symbol("GlobalProbe")), Te = (s, e) => (t) => {
2201
2230
  const r = t.getStyle(s);
2202
2231
  return t.setStyle(s, e), (n) => {
2203
2232
  n && t.setStyle(s, r);
2204
2233
  };
2205
- }, fe = (s, e) => (t) => {
2234
+ }, be = (s, e) => (t) => {
2206
2235
  const r = t.getStyle(s), n = e.on((i) => t.setStyle(s, i));
2207
2236
  return (i) => {
2208
2237
  n(), i && t.setStyle(s, r);
2209
2238
  };
2210
- }, ws = new Proxy({}, {
2239
+ }, Is = new Proxy({}, {
2211
2240
  /**
2212
2241
  * Creates a renderable component for the specified `style` property.
2213
2242
  *
@@ -2216,8 +2245,8 @@ const Tt = /* @__PURE__ */ new Set([
2216
2245
  * @returns The renderable component for the specified attribute.
2217
2246
  *
2218
2247
  */
2219
- get: (s, e) => e === "variable" ? (t, r) => g.is(r) ? fe(t, r) : he(t, r) : (t) => g.is(t) ? fe(e, t) : he(e, t)
2220
- }), Ot = (s) => (e) => {
2248
+ get: (s, e) => e === "variable" ? (t, r) => d.is(r) ? be(t, r) : Te(t, r) : (t) => d.is(t) ? be(e, t) : Te(e, t)
2249
+ }), Vt = (s) => (e) => {
2221
2250
  if (e.isBrowser()) {
2222
2251
  const t = s(e);
2223
2252
  if (t != null)
@@ -2225,11 +2254,11 @@ const Tt = /* @__PURE__ */ new Set([
2225
2254
  }
2226
2255
  return () => {
2227
2256
  };
2228
- }, xs = (s) => (e) => {
2257
+ }, ks = (s) => (e) => {
2229
2258
  const t = s(e);
2230
2259
  return t == null ? () => {
2231
2260
  } : f(t)(e);
2232
- }, Ps = (s) => Ot((e) => s(e.element)), Ls = (s) => (e) => {
2261
+ }, Hs = (s) => Vt((e) => s(e.element)), $s = (s) => (e) => {
2233
2262
  if (e.isHeadlessDOM()) {
2234
2263
  const t = s(e);
2235
2264
  if (t)
@@ -2237,7 +2266,7 @@ const Tt = /* @__PURE__ */ new Set([
2237
2266
  }
2238
2267
  return () => {
2239
2268
  };
2240
- }, ie = (s) => (e) => {
2269
+ }, de = (s) => (e) => {
2241
2270
  let t = e;
2242
2271
  function r() {
2243
2272
  return t;
@@ -2247,137 +2276,137 @@ const Tt = /* @__PURE__ */ new Set([
2247
2276
  }
2248
2277
  const i = [], l = s({
2249
2278
  use: ({ mark: c }) => {
2250
- const { value: u, onUse: a } = r().getProvider(c);
2251
- return a == null || a(), u;
2279
+ const { value: a, onUse: u } = r().getProvider(c);
2280
+ return u == null || u(), a;
2252
2281
  },
2253
- set: ({ mark: c, create: u }, a) => {
2254
- const { value: h, dispose: m, onUse: T } = u(a, r());
2255
- i.push(m), n(r().setProvider(c, h, T));
2282
+ set: ({ mark: c, create: a }, u) => {
2283
+ const { value: h, dispose: p, onUse: T } = a(u, r());
2284
+ i.push(p), n(r().setProvider(c, h, T));
2256
2285
  }
2257
2286
  });
2258
2287
  return l == null ? () => {
2259
- } : v(
2288
+ } : _(
2260
2289
  f(l),
2261
- k(() => i.forEach((c) => c()))
2290
+ q(() => i.forEach((c) => c()))
2262
2291
  )(r());
2263
- }, Ds = (s, e, t) => ie(({ set: r }) => (r(s, e), t())), Ms = (s, e) => ie(({ use: t }) => e(t(s))), Os = (...s) => (e) => ie(({ use: t }) => {
2292
+ }, Ns = (s, e, t) => de(({ set: r }) => (r(s, e), t())), Rs = (s, e) => de(({ use: t }) => e(t(s))), Vs = (...s) => (e) => de(({ use: t }) => {
2264
2293
  const r = s.map(t);
2265
2294
  return e(...r);
2266
2295
  });
2267
2296
  export {
2268
- ns as Async,
2269
- fs as BindChecked,
2270
- cs as BindDate,
2271
- us as BindDateTime,
2272
- as as BindNumber,
2273
- hs as BindText,
2274
- O as BrowserContext,
2275
- W as CLASS_PLACEHOLDER_ATTR,
2276
- M as Computed,
2277
- ms as Conjunction,
2278
- ys as DOMNode,
2279
- De as El,
2280
- Me as ElNS,
2281
- ee as ElementPosition,
2282
- C as Empty,
2283
- Ts as Ensure,
2284
- bs as EnsureAll,
2285
- As as ForEach,
2286
- v as Fragment,
2287
- Cs as GlobalProbe,
2288
- Gt as HeadlessAdapter,
2289
- H as HeadlessContext,
2290
- mt as HeadlessElement,
2291
- xe as HeadlessPortal,
2292
- yt as HeadlessText,
2293
- vs as MapSignal,
2294
- pe as MemoryStore,
2295
- _s as NotEmpty,
2296
- Et as OnChecked,
2297
- k as OnDispose,
2298
- z as OneOf,
2299
- $e as OneOfField,
2300
- ds as OneOfKind,
2301
- ps as OneOfTuple,
2302
- gs as OneOfType,
2303
- Dt as OneOfValue,
2304
- Es as Portal,
2305
- F as Prop,
2306
- Ds as Provide,
2307
- ve as ProviderNotFoundError,
2308
- tt as RenderingError,
2309
- ke as Repeat,
2310
- g as Signal,
2311
- Oe as Task,
2312
- Yt as TextNode,
2313
- Ss as Unless,
2314
- Ms as Use,
2315
- Os as UseMany,
2297
+ hs as Async,
2298
+ bs as BindChecked,
2299
+ gs as BindDate,
2300
+ ms as BindDateTime,
2301
+ ys as BindNumber,
2302
+ Ts as BindText,
2303
+ R as BrowserContext,
2304
+ Q as CLASS_PLACEHOLDER_ATTR,
2305
+ N as Computed,
2306
+ _s as Conjunction,
2307
+ Es as DOMNode,
2308
+ Ne as El,
2309
+ Re as ElNS,
2310
+ ce as ElementPosition,
2311
+ x as Empty,
2312
+ Cs as Ensure,
2313
+ ws as EnsureAll,
2314
+ Ps as ForEach,
2315
+ _ as Fragment,
2316
+ Os as GlobalProbe,
2317
+ es as HeadlessAdapter,
2318
+ V as HeadlessContext,
2319
+ _t as HeadlessElement,
2320
+ ke as HeadlessPortal,
2321
+ Et as HeadlessText,
2322
+ Ds as MapSignal,
2323
+ Ae as MemoryStore,
2324
+ Ls as NotEmpty,
2325
+ Mt as OnChecked,
2326
+ q as OnDispose,
2327
+ ne as OneOf,
2328
+ qe as OneOfField,
2329
+ Ss as OneOfKind,
2330
+ As as OneOfTuple,
2331
+ vs as OneOfType,
2332
+ Nt as OneOfValue,
2333
+ Ms as Portal,
2334
+ X as Prop,
2335
+ Ns as Provide,
2336
+ De as ProviderNotFoundError,
2337
+ ct as RenderingError,
2338
+ Be as Repeat,
2339
+ d as Signal,
2340
+ Ve as Task,
2341
+ ss as TextNode,
2342
+ xs as Unless,
2343
+ Rs as Use,
2344
+ Vs as UseMany,
2316
2345
  y as Value,
2317
- Ne as When,
2318
- Ot as WithBrowserCtx,
2319
- xs as WithCtx,
2320
- Ps as WithElement,
2321
- Ls as WithHeadlessCtx,
2322
- ie as WithProvider,
2323
- _e as _NODE_PLACEHOLDER_ATTR,
2324
- Ke as _getSelfOrParentElement,
2325
- Ae as _isElement,
2326
- ze as _makeGetter,
2327
- Ze as _makeSetter,
2328
- B as _removeDOMNode,
2329
- Le as _signalText,
2330
- Pe as _staticText,
2331
- Rt as animateSignal,
2332
- Ye as animateSignals,
2333
- Zt as aria,
2334
- $ as attr,
2335
- Bt as bind,
2336
- Wt as coalesce,
2337
- te as computed,
2338
- re as computedOf,
2339
- Qe as computedRecord,
2340
- Qt as dataAttr,
2341
- Vt as delaySignal,
2342
- Ue as effect,
2343
- Nt as effectOf,
2344
- Ct as emit,
2345
- ls as emitChecked,
2346
- L as emitTarget,
2347
- wt as emitValue,
2348
- Pt as emitValueAsDate,
2349
- Lt as emitValueAsDateTime,
2350
- is as emitValueAsNullableDate,
2351
- os as emitValueAsNullableDateTime,
2352
- xt as emitValueAsNumber,
2353
- Fe as endInterpolate,
2354
- se as getWindow,
2355
- Be as guessInterpolate,
2356
- es as html,
2357
- ts as input,
2358
- qe as interpolateDate,
2359
- je as interpolateNumber,
2360
- Ve as interpolateString,
2361
- $t as joinSignals,
2362
- kt as localStorageProp,
2363
- Mt as makeProbe,
2364
- et as makeProviderMark,
2365
- rs as math,
2366
- Kt as mathAttr,
2367
- jt as merge,
2368
- Z as on,
2369
- qt as previousSignal,
2370
- E as prop,
2371
- Ut as render,
2372
- ne as renderWithContext,
2346
+ Fe as When,
2347
+ Vt as WithBrowserCtx,
2348
+ ks as WithCtx,
2349
+ Hs as WithElement,
2350
+ $s as WithHeadlessCtx,
2351
+ de as WithProvider,
2352
+ Le as _NODE_PLACEHOLDER_ATTR,
2353
+ ot as _getSelfOrParentElement,
2354
+ Pe as _isElement,
2355
+ it as _makeGetter,
2356
+ nt as _makeSetter,
2357
+ Y as _removeDOMNode,
2358
+ $e as _signalText,
2359
+ He as _staticText,
2360
+ Ut as animateSignal,
2361
+ st as animateSignals,
2362
+ ns as aria,
2363
+ j as attr,
2364
+ Qt as bind,
2365
+ Zt as coalesce,
2366
+ ae as computed,
2367
+ he as computedOf,
2368
+ rt as computedRecord,
2369
+ rs as dataAttr,
2370
+ Gt as delaySignal,
2371
+ ze as effect,
2372
+ Ft as effectOf,
2373
+ Ot as emit,
2374
+ ps as emitChecked,
2375
+ I as emitTarget,
2376
+ It as emitValue,
2377
+ Ht as emitValueAsDate,
2378
+ $t as emitValueAsDateTime,
2379
+ fs as emitValueAsNullableDate,
2380
+ ds as emitValueAsNullableDateTime,
2381
+ kt as emitValueAsNumber,
2382
+ Ye as endInterpolate,
2383
+ ue as getWindow,
2384
+ Qe as guessInterpolate,
2385
+ ls as html,
2386
+ cs as input,
2387
+ Xe as interpolateDate,
2388
+ Je as interpolateNumber,
2389
+ Ge as interpolateString,
2390
+ qt as joinSignals,
2391
+ Bt as localStorageProp,
2392
+ Rt as makeProbe,
2393
+ lt as makeProviderMark,
2394
+ us as math,
2395
+ os as mathAttr,
2396
+ Jt as merge,
2397
+ re as on,
2398
+ Xt as previousSignal,
2399
+ w as prop,
2400
+ zt as render,
2401
+ fe as renderWithContext,
2373
2402
  f as renderableOfTNode,
2374
- Xt as restoreTempoPlaceholders,
2375
- Jt as runHeadless,
2376
- It as sessionStorageProp,
2377
- Q as signal,
2378
- Ft as slidingWindowSignal,
2379
- ge as storedProp,
2380
- ws as style,
2381
- ss as svg,
2382
- zt as svgAttr
2403
+ ts as restoreTempoPlaceholders,
2404
+ Kt as runHeadless,
2405
+ Wt as sessionStorageProp,
2406
+ se as signal,
2407
+ Yt as slidingWindowSignal,
2408
+ ve as storedProp,
2409
+ Is as style,
2410
+ as as svg,
2411
+ is as svgAttr
2383
2412
  };