@tempots/dom 31.5.0 → 31.6.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,10 +1,10 @@
1
1
  var We = Object.defineProperty;
2
- var pe = (s) => {
2
+ var me = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
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);
6
+ var o = (s, e, t) => Ue(s, typeof e != "symbol" ? e + "" : e, t), ge = (s, e, t) => e.has(s) || me("Cannot " + t);
7
+ var U = (s, e, t) => (ge(s, e, "read from private field"), t ? t.call(s) : e.get(s)), ye = (s, e, t) => e.has(s) ? me("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
8
  const Je = (s, e, t) => s + (e - s) * t;
9
9
  const Ge = (s, e, t) => {
10
10
  const r = Math.max(s.length, e.length);
@@ -44,10 +44,10 @@ class ce {
44
44
  * @returns `true` if the counter is odd, `false` otherwise.
45
45
  */
46
46
  o(this, "isOdd");
47
- me(this, M);
47
+ ye(this, M);
48
48
  o(this, "dispose", () => {
49
49
  var e;
50
- (e = J(this, M)) == null || e.dispose(), le(this, M, void 0);
50
+ (e = U(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 ce {
56
56
  * @returns `true` if the element is the last element, `false` otherwise.
57
57
  */
58
58
  get isLast() {
59
- return J(this, M) == null && le(this, M, this.total.map((e) => this.counter === e)), J(this, M);
59
+ return U(this, M) == null && le(this, M, this.total.map((e) => this.counter === e)), U(this, M);
60
60
  }
61
61
  }
62
62
  M = new WeakMap();
63
- const F = class F {
63
+ const B = class B {
64
64
  /**
65
65
  * Represents a signal with a value of type T.
66
66
  *
@@ -436,8 +436,8 @@ const F = class F {
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(F, "ofPromise", (e, t, r, n = (i, l) => i === l) => {
440
- const i = new F(t, n);
439
+ o(B, "ofPromise", (e, t, r, n = (i, l) => i === l) => {
440
+ const i = new B(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(F, "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(F, "is", (e) => (
453
+ o(B, "is", (e) => (
454
454
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
455
455
  e != null && e.$__signal__ === !0
456
456
  ));
457
- let d = F;
457
+ let y = B;
458
458
  const Ze = typeof queueMicrotask == "function" ? queueMicrotask : (s) => Promise.resolve().then(s);
459
- class N extends d {
459
+ class N extends y {
460
460
  /**
461
461
  * Represents a Signal object.
462
462
  * @param _fn - The function that returns the value of the signal.
@@ -513,7 +513,7 @@ class N extends d {
513
513
  return this.get();
514
514
  }
515
515
  }
516
- const te = class te extends d {
516
+ const ee = class ee extends y {
517
517
  constructor() {
518
518
  super(...arguments);
519
519
  /**
@@ -567,7 +567,7 @@ const te = class te extends d {
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 te(t(this.get()), n);
570
+ const i = new ee(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,11 +596,11 @@ const te = class te extends d {
596
596
  * @param value - The value to check.
597
597
  * @returns `true` if the value is a Prop, `false` otherwise.
598
598
  */
599
- o(te, "is", (t) => (
599
+ o(ee, "is", (t) => (
600
600
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
601
601
  t != null && t.$__prop__ === !0
602
602
  ));
603
- let X = te;
603
+ let G = ee;
604
604
  const ae = (s, e, t = (r, n) => r === n) => {
605
605
  const r = new N(s, t);
606
606
  return e.forEach((n) => n.setDerivative(r)), r;
@@ -619,7 +619,7 @@ const ae = (s, e, t = (r, n) => r === n) => {
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
- }, w = (s, e = (t, r) => t === r) => new X(s, e), se = (s, e = (t, r) => t === r) => new d(s, e), ue = () => (
622
+ }, w = (s, e = (t, r) => t === r) => new G(s, e), te = (s, e = (t, r) => t === r) => new y(s, e), ue = () => (
623
623
  /* c8 ignore next */
624
624
  typeof window < "u" ? window : void 0
625
625
  );
@@ -635,7 +635,7 @@ function et(s) {
635
635
  function tt(s) {
636
636
  return s != null;
637
637
  }
638
- const y = {
638
+ const b = {
639
639
  /**
640
640
  * Maps a value or a Signal to a new value.
641
641
  * If the value is a Signal, it returns a new Signal with the mapped value.
@@ -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) => d.is(s) ? s.map(e) : e(s),
650
+ map: (s, e) => y.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) => d.is(s) ? s : se(s, e),
661
+ toSignal: (s, e) => y.is(s) ? s : te(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.
@@ -667,21 +667,21 @@ const y = {
667
667
  */
668
668
  maybeToSignal: (s, e) => {
669
669
  if (s != null)
670
- return y.toSignal(s, e);
670
+ return b.toSignal(s, e);
671
671
  },
672
672
  /**
673
673
  * Gets the value from a `Signal` or the value itself if it is not a `Signal`.
674
674
  * @param value - The value or Signal instance to get the value from.
675
675
  * @returns The value.
676
676
  */
677
- get: (s) => d.is(s) ? s.get() : s,
677
+ get: (s) => y.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) => d.is(s) ? s.on(e) : (e(s), () => {
684
+ on: (s, e) => y.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
- d.is(s) && s.dispose();
693
+ y.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
- } = {}) => d.is(s) ? s.deriveProp({ autoDisposeProp: e, equals: t }) : w(s, t),
708
+ } = {}) => y.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, Se),
714
+ truthy: (s) => b.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, Ke),
720
+ falsy: (s) => b.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, et),
726
+ nil: (s) => b.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, tt)
732
+ defined: (s) => b.map(s, tt)
733
733
  }, he = (...s) => (e, t) => {
734
734
  if (s.length === 1)
735
- return y.toSignal(s[0]).map(e);
736
- const r = s.filter((n) => d.is(n));
735
+ return b.toSignal(s[0]).map(e);
736
+ const r = s.filter((n) => y.is(n));
737
737
  return ae(
738
- () => e(...s.map((n) => y.get(n))),
738
+ () => e(...s.map((n) => b.get(n))),
739
739
  r,
740
740
  t
741
741
  );
742
- }, qt = (s) => {
742
+ }, Jt = (s) => {
743
743
  const e = Object.keys(s);
744
744
  return he(...Object.values(s))(
745
745
  (...t) => Object.fromEntries(e.map((r, n) => [r, t[n]]))
746
746
  );
747
- }, Ft = (...s) => (e, t = {}) => {
748
- const r = s.filter((n) => d.is(n));
747
+ }, Gt = (...s) => (e, t = {}) => {
748
+ const r = s.filter((n) => y.is(n));
749
749
  return ze(
750
- () => e(...s.map(y.get)),
750
+ () => e(...s.map(b.get)),
751
751
  r,
752
752
  t
753
753
  );
754
754
  };
755
- class Ae {
755
+ class ve {
756
756
  constructor() {
757
757
  o(this, "_store", /* @__PURE__ */ new Map());
758
758
  /**
@@ -771,7 +771,7 @@ class Ae {
771
771
  });
772
772
  }
773
773
  }
774
- const ve = ({
774
+ const Ae = ({
775
775
  key: s,
776
776
  defaultValue: e,
777
777
  store: t,
@@ -782,102 +782,102 @@ const ve = ({
782
782
  syncTabs: c = !0,
783
783
  onKeyChange: a = "load"
784
784
  }) => {
785
- let u = y.get(s);
786
- const h = t.getItem(u), p = new X(
785
+ let u = b.get(s);
786
+ const h = t.getItem(u), d = new G(
787
787
  h != null ? l(n(h)) : typeof e == "function" ? e() : e,
788
788
  i
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))
789
+ ), p = ue(), m = c && typeof (p == null ? void 0 : p.BroadcastChannel) == "function";
790
+ let g = !1, S = null, P = null;
791
+ const A = (T) => {
792
+ if (!m) return null;
793
+ const H = `tempo:storedProp:${T}`, v = new p.BroadcastChannel(H), k = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`, O = (W) => {
794
+ const E = W.data;
795
+ if (!(E == null || typeof E != "object" || E.key !== T || typeof E.value != "string" || E.sourceId != null && E.sourceId === k))
796
796
  try {
797
- m = !0;
797
+ g = !0;
798
798
  const oe = l(n(E.value));
799
- p.set(oe);
799
+ d.set(oe);
800
800
  } catch (oe) {
801
801
  console.warn(
802
- `Failed to sync storedProp for key "${b}" via BroadcastChannel`,
802
+ `Failed to sync storedProp for key "${T}" via BroadcastChannel`,
803
803
  oe
804
804
  );
805
805
  } finally {
806
- m = !1;
806
+ g = !1;
807
807
  }
808
808
  };
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)
809
+ return v.addEventListener("message", O), d.onDispose(() => {
810
+ v == null || v.removeEventListener("message", O), v == null || v.close();
811
+ }), { channel: v, instanceId: k, handleMessage: O };
812
+ }, L = A(u);
813
+ L && (S = L.channel, P = L.instanceId);
814
+ const ie = (T) => {
815
+ const H = u;
816
+ if (H === T) return;
817
+ const v = d.get(), k = r(v);
818
+ if (t.setItem(H, k), S != null && (S.close(), S = null, P = null), u = T, a === "load") {
819
+ const W = t.getItem(T);
820
+ if (W != null)
821
821
  try {
822
- const E = l(n(U));
823
- p.set(E);
822
+ const E = l(n(W));
823
+ d.set(E);
824
824
  } catch (E) {
825
825
  console.warn(
826
- `Failed to load storedProp from new key "${b}"`,
826
+ `Failed to load storedProp from new key "${T}"`,
827
827
  E
828
828
  );
829
829
  }
830
830
  else
831
- t.setItem(b, H);
832
- } else a === "migrate" && t.setItem(b, H);
833
- const O = v(b);
831
+ t.setItem(T, k);
832
+ } else a === "migrate" && t.setItem(T, k);
833
+ const O = A(T);
834
834
  O && (S = O.channel, P = O.instanceId);
835
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({
836
+ return y.is(s) && d.onDispose(s.on(ie)), d.on((T, H) => {
837
+ const v = r(T);
838
+ t.setItem(u, v), S != null && !g && H !== void 0 && P != null && S.postMessage({
839
839
  key: u,
840
- value: A,
840
+ value: v,
841
841
  sourceId: P
842
842
  });
843
- }), p;
844
- }, Bt = (s) => {
843
+ }), d;
844
+ }, Xt = (s) => {
845
845
  var e;
846
- return ve({
846
+ return Ae({
847
847
  ...s,
848
848
  /* c8 ignore next 3 */
849
- store: ((e = ue()) == null ? void 0 : e.localStorage) ?? new Ae()
849
+ store: ((e = ue()) == null ? void 0 : e.localStorage) ?? new ve()
850
850
  });
851
- }, Wt = (s) => {
851
+ }, Yt = (s) => {
852
852
  var e;
853
- return ve({
853
+ return Ae({
854
854
  ...s,
855
855
  /* c8 ignore next 3 */
856
- store: ((e = ue()) == null ? void 0 : e.sessionStorage) ?? new Ae()
856
+ store: ((e = ue()) == null ? void 0 : e.sessionStorage) ?? new ve()
857
857
  });
858
858
  };
859
- function ye(s) {
859
+ function be(s) {
860
860
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(s) : setTimeout(s, 0);
861
861
  }
862
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);
863
+ const n = (r == null ? void 0 : r.duration) ?? 300, i = (r == null ? void 0 : r.easing) ?? ((A) => A), l = (r == null ? void 0 : r.equals) ?? ((A, L) => A === L);
864
+ let c = r == null ? void 0 : r.interpolate, a = s, u = e(), h = performance.now(), d = null, p = !0;
865
+ const m = new N(e, l), g = w(s, l);
866
+ g.onDispose(() => {
867
+ d !== null && cancelAnimationFrame(d);
868
+ }), g.onDispose(m.dispose), t.forEach((A) => {
869
+ A.setDerivative(m), A.onDispose(g.dispose);
870
870
  });
871
- const S = (v) => {
872
- u = v, h = performance.now(), a = m.value, T && (T = !1, p = ye(P));
871
+ const S = (A) => {
872
+ u = A, h = performance.now(), a = g.value, p && (p = !1, d = be(P));
873
873
  }, P = () => {
874
- const D = (performance.now() - h) / y.get(n), ie = i(D);
874
+ const L = (performance.now() - h) / b.get(n), ie = i(L);
875
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);
876
+ let T = c(a, u, ie);
877
+ L >= 1 ? (p = !0, T = u) : d = be(P), g.set(T);
878
878
  };
879
- return g.on(S), m;
880
- }, Ut = (s, e) => {
879
+ return m.on(S), g;
880
+ }, Qt = (s, e) => {
881
881
  const { initialValue: t, ...r } = e ?? {};
882
882
  return st(
883
883
  /* c8 ignore next 2 */
@@ -887,14 +887,14 @@ const st = (s, e, t, r) => {
887
887
  r
888
888
  );
889
889
  }, rt = (s, e) => {
890
- const t = Object.values(s).filter(d.is), r = Object.keys(s);
890
+ const t = Object.values(s).filter(y.is), r = Object.keys(s);
891
891
  return ae(() => {
892
892
  const n = {};
893
893
  for (const i of r)
894
- n[i] = y.get(s[i]);
894
+ n[i] = b.get(s[i]);
895
895
  return e(n);
896
896
  }, t);
897
- }, Jt = (s) => rt(s, (e) => e), Gt = (s, e) => {
897
+ }, Zt = (s) => rt(s, (e) => e), zt = (s, e) => {
898
898
  const t = w(s.get());
899
899
  let r = null;
900
900
  const n = s.on((i) => {
@@ -908,23 +908,23 @@ const st = (s, e, t, r) => {
908
908
  return t.onDispose(() => {
909
909
  n(), r != null && clearTimeout(r);
910
910
  }), t;
911
- }, Xt = (s) => {
911
+ }, Kt = (s) => {
912
912
  let e;
913
913
  return s.map((t) => {
914
914
  const r = e;
915
915
  return e = t, r;
916
916
  });
917
- }, Yt = ({
917
+ }, es = ({
918
918
  size: s = void 0,
919
919
  signal: e
920
920
  }) => {
921
921
  const t = [];
922
922
  return e.map((r) => (t.push(r), s != null && t.length > s && t.shift(), t.slice()));
923
- }, Qt = (s) => (...e) => he(
923
+ }, ts = (s) => (...e) => he(
924
924
  s,
925
925
  ...e
926
926
  )((t, ...r) => t(...r));
927
- function Zt(...s) {
927
+ function ss(...s) {
928
928
  return he(...s)((...e) => {
929
929
  for (const t of e) if (t != null) return t;
930
930
  });
@@ -954,11 +954,11 @@ const _e = /* @__PURE__ */ new Set(["checked", "disabled", "hidden"]), Ee = /* @
954
954
  t == null ? e[s] = null : e[s] = String(t);
955
955
  } : (t) => {
956
956
  t == null ? e.removeAttribute(s) : e.setAttribute(s, t);
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) => {
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), X = (s) => {
958
958
  const e = s;
959
959
  e && e.onblur && (e.onblur = null), !(!s || s.ownerDocument === void 0) && s.parentElement && s.parentElement.removeChild(s);
960
960
  }, ot = (s) => Pe(s) ? s : s.parentElement, Pe = (s) => s.nodeType === 1;
961
- class De extends Error {
961
+ class Le extends Error {
962
962
  constructor(e) {
963
963
  super(`Provider not found: ${e.description}`);
964
964
  }
@@ -1138,12 +1138,12 @@ class R {
1138
1138
  */
1139
1139
  o(this, "getProvider", (e) => {
1140
1140
  if (this.providers[e] === void 0)
1141
- throw new De(e);
1141
+ throw new Le(e);
1142
1142
  const [t, r] = this.providers[e];
1143
1143
  return { value: t, onUse: r };
1144
1144
  });
1145
1145
  o(this, "clear", (e) => {
1146
- e && (this.reference !== void 0 ? Y(this.reference) : Y(this.element));
1146
+ e && (this.reference !== void 0 ? X(this.reference) : X(this.element));
1147
1147
  });
1148
1148
  /**
1149
1149
  * Adds classes to the element.
@@ -1234,7 +1234,7 @@ class R {
1234
1234
  const lt = (s) => Symbol(s), fe = (s, e) => {
1235
1235
  const t = s(e);
1236
1236
  return (r = !0) => t(r);
1237
- }, zt = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1237
+ }, rs = (s, e, { doc: t, clear: r, disposeWithParent: n = !0, providers: i = {} } = {}) => {
1238
1238
  const l = typeof e == "string" ? (t ?? document).querySelector(e) : e;
1239
1239
  if (l === null)
1240
1240
  throw new ct(
@@ -1242,27 +1242,27 @@ const lt = (s) => Symbol(s), fe = (s, e) => {
1242
1242
  );
1243
1243
  r !== !1 && (t ?? l.ownerDocument) != null && l.nodeType === 1 && (l.innerHTML = "");
1244
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));
1245
+ let d;
1246
+ return n && (d = new MutationObserver((p) => {
1247
+ var m;
1248
+ (m = p[0]) == null || m.removedNodes.forEach((g) => {
1249
+ g === l && (d == null || d.disconnect(), h(l.nodeType !== 1));
1250
1250
  });
1251
- }), p.observe(l.parentElement, {
1251
+ }), d.observe(l.parentElement, {
1252
1252
  childList: !0,
1253
1253
  subtree: !1,
1254
1254
  attributes: !1
1255
1255
  })), () => {
1256
- p == null || p.disconnect(), h(!0);
1256
+ d == null || d.disconnect(), h(!0);
1257
1257
  };
1258
- }, Kt = (s, {
1258
+ }, ns = (s, {
1259
1259
  startUrl: e = "https://example.com",
1260
1260
  selector: t,
1261
1261
  providers: r = {}
1262
1262
  } = {
1263
1263
  selector: "body"
1264
1264
  }) => {
1265
- const n = y.toSignal(e).deriveProp(), i = new ke(t, void 0), l = new V(i, void 0, { currentURL: n }, r);
1265
+ const n = b.toSignal(e).deriveProp(), i = new He(t, void 0), l = new V(i, void 0, { currentURL: n }, r);
1266
1266
  return {
1267
1267
  clear: fe(s(), l),
1268
1268
  root: i,
@@ -1274,8 +1274,8 @@ class ct extends Error {
1274
1274
  super(e);
1275
1275
  }
1276
1276
  }
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 {
1277
+ const De = "data-tts-node", Y = "data-tts-class", Q = "data-tts-style", Z = "data-tts-html", z = "data-tts-text", K = "data-tts-attrs";
1278
+ class is {
1279
1279
  constructor({
1280
1280
  select: e,
1281
1281
  getAttribute: t,
@@ -1287,8 +1287,8 @@ class es {
1287
1287
  appendHTML: a,
1288
1288
  getInnerHTML: u,
1289
1289
  setInnerHTML: h,
1290
- getInnerText: p,
1291
- setInnerText: T
1290
+ getInnerText: d,
1291
+ setInnerText: p
1292
1292
  }) {
1293
1293
  /**
1294
1294
  * Selects elements from the headless environment.
@@ -1382,21 +1382,21 @@ class es {
1382
1382
  if (n.hasChildren() && this.appendHTML(l, n.contentToHTML(t)), n.hasInnerHTML()) {
1383
1383
  if (t) {
1384
1384
  const c = this.getInnerHTML(l);
1385
- c != null && this.setAttribute(l, z, c);
1385
+ c != null && this.setAttribute(l, Z, c);
1386
1386
  }
1387
1387
  this.setInnerHTML(l, n.getInnerHTML());
1388
1388
  }
1389
1389
  if (n.hasInnerText()) {
1390
1390
  if (t) {
1391
1391
  const c = this.getInnerText(l);
1392
- c != null && this.setAttribute(l, K, c);
1392
+ c != null && this.setAttribute(l, z, c);
1393
1393
  }
1394
1394
  this.setInnerText(l, n.getInnerText());
1395
1395
  }
1396
1396
  if (n.hasClasses()) {
1397
1397
  if (t) {
1398
1398
  const c = this.getClass(l);
1399
- c != null && this.setAttribute(l, Q, c);
1399
+ c != null && this.setAttribute(l, Y, c);
1400
1400
  }
1401
1401
  this.setClass(l, n.getClasses().join(" "));
1402
1402
  }
@@ -1405,7 +1405,7 @@ class es {
1405
1405
  const c = this.getStyles(l);
1406
1406
  Object.keys(c).length > 0 && this.setAttribute(
1407
1407
  l,
1408
- Z,
1408
+ Q,
1409
1409
  JSON.stringify(c)
1410
1410
  );
1411
1411
  }
@@ -1420,7 +1420,7 @@ class es {
1420
1420
  h != null && a.push([u, h]);
1421
1421
  }), a.length > 0 && this.setAttribute(
1422
1422
  l,
1423
- ee,
1423
+ K,
1424
1424
  JSON.stringify(Object.fromEntries(a))
1425
1425
  );
1426
1426
  }
@@ -1431,49 +1431,49 @@ class es {
1431
1431
  }
1432
1432
  });
1433
1433
  });
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;
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 = d, this.setInnerText = p;
1435
1435
  }
1436
1436
  }
1437
1437
  const at = () => {
1438
- document.querySelectorAll(`[${Le}]`).forEach(Y);
1438
+ document.querySelectorAll(`[${De}]`).forEach(X);
1439
1439
  }, ut = (s) => {
1440
- const e = s.getAttribute(Q);
1441
- s.removeAttribute(Q), e != null && s.setAttribute("class", e);
1440
+ const e = s.getAttribute(Y);
1441
+ s.removeAttribute(Y), e != null && s.setAttribute("class", e);
1442
1442
  }, ht = () => {
1443
- document.querySelectorAll(`[${Q}]`).forEach((e) => ut(e));
1443
+ document.querySelectorAll(`[${Y}]`).forEach((e) => ut(e));
1444
1444
  }, ft = (s) => {
1445
- const e = s.getAttribute(z);
1446
- s.removeAttribute(z), e != null && (s.innerHTML = e);
1445
+ const e = s.getAttribute(Z);
1446
+ s.removeAttribute(Z), e != null && (s.innerHTML = e);
1447
1447
  }, dt = () => {
1448
- document.querySelectorAll(`[${z}]`).forEach((e) => ft(e));
1448
+ document.querySelectorAll(`[${Z}]`).forEach((e) => ft(e));
1449
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) {
1450
+ const e = s.getAttribute(z);
1451
+ s.removeAttribute(z), e != null && (s.innerText = e);
1452
+ }, mt = () => {
1453
+ document.querySelectorAll(`[${z}]`).forEach((e) => pt(e));
1454
+ }, Me = (s) => JSON.parse(s.replace(/&quot;/g, '"')), gt = (s) => {
1455
+ const e = s.getAttribute(Q);
1456
+ if (s.removeAttribute(Q), e != null) {
1457
1457
  const t = Me(e);
1458
1458
  Object.entries(t).forEach(([r, n]) => {
1459
1459
  s.style.setProperty(r, n);
1460
1460
  });
1461
1461
  }
1462
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) {
1463
+ document.querySelectorAll(`[${Q}]`).forEach((e) => gt(e));
1464
+ }, bt = (s) => {
1465
+ const e = s.getAttribute(K);
1466
+ if (s.removeAttribute(K), e != null) {
1467
1467
  const t = Me(e);
1468
1468
  Object.entries(t).forEach(([r, n]) => {
1469
1469
  n == null ? s.removeAttribute(r) : s.setAttribute(r, n);
1470
1470
  });
1471
1471
  }
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, "");
1472
+ }, Tt = () => {
1473
+ document.querySelectorAll(`[${K}]`).forEach((e) => bt(e));
1474
+ }, os = () => {
1475
+ at(), ht(), mt(), dt(), yt(), Tt();
1476
+ }, C = Symbol("class"), D = Symbol("style"), $ = Symbol("handler"), Oe = () => Math.random().toString(36).substring(2, 15), St = (s) => s.replace(/<[^>]*>?/g, "");
1477
1477
  class Ie {
1478
1478
  constructor(e) {
1479
1479
  o(this, "id", Oe());
@@ -1503,7 +1503,7 @@ class Ie {
1503
1503
  o(this, "hasInnerText", () => this.properties.innerText != null);
1504
1504
  o(this, "hasChildren", () => this.children.length > 0);
1505
1505
  o(this, "hasClasses", () => this.properties[C] != null);
1506
- o(this, "hasStyles", () => this.properties[L] != null);
1506
+ o(this, "hasStyles", () => this.properties[D] != null);
1507
1507
  o(this, "hasAttributes", () => Object.keys(this.properties).length > 0);
1508
1508
  o(this, "hasHandlers", () => this.properties[$] != null);
1509
1509
  o(this, "hasRenderableProperties", () => this.hasClasses() || this.hasAttributes() || this.hasStyles());
@@ -1558,18 +1558,18 @@ class Ie {
1558
1558
  ([e]) => !["innerText", "innerHTML"].includes(e)
1559
1559
  ));
1560
1560
  o(this, "getVisibleAttributes", () => Reflect.ownKeys(this.properties).flatMap(
1561
- (e) => e === C ? [["class", this.getClasses()]] : e === L ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1561
+ (e) => e === C ? [["class", this.getClasses()]] : e === D ? [["style", this.getStyles()]] : typeof e == "string" ? [[e, String(this.properties[e])]] : []
1562
1562
  ));
1563
1563
  o(this, "setStyle", (e, t) => {
1564
1564
  var n;
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]);
1565
+ const r = (n = this.properties)[D] ?? (n[D] = {});
1566
+ r[e] = t, t === "" && (delete r[e], Object.keys(r).length === 0 && delete this.properties[D]);
1567
1567
  });
1568
1568
  o(this, "getStyle", (e) => {
1569
1569
  var t;
1570
- return ((t = this.properties[L]) == null ? void 0 : t[e]) ?? "";
1570
+ return ((t = this.properties[D]) == null ? void 0 : t[e]) ?? "";
1571
1571
  });
1572
- o(this, "getStyles", () => this.properties[L] ?? {});
1572
+ o(this, "getStyles", () => this.properties[D] ?? {});
1573
1573
  o(this, "makeAccessors", (e) => {
1574
1574
  const t = this.properties;
1575
1575
  return {
@@ -1580,7 +1580,7 @@ class Ie {
1580
1580
  this.parent = e;
1581
1581
  }
1582
1582
  }
1583
- const At = (s) => s.replace(/"/g, "&quot;"), vt = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1583
+ const vt = (s) => s.replace(/"/g, "&quot;"), At = (s) => s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
1584
1584
  class _t extends Ie {
1585
1585
  constructor(t, r, n) {
1586
1586
  super(n);
@@ -1588,13 +1588,13 @@ class _t extends Ie {
1588
1588
  o(this, "toHTML", (t = !1) => {
1589
1589
  const r = this.children.map((a) => a.toHTML()).join(""), n = this.namespace ? ` xmlns="${this.namespace}"` : "";
1590
1590
  let i = null;
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}` : "";
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, d]) => `${h}: ${d};`).join(" ")}"` : Ct.has(a) ? ` ${a}` : a === "innerHTML" ? (i = u, "") : a === "innerText" ? (i = At(u), "") : ` ${a}="${vt(u)}"`).join(""), c = t ? ` ${De}` : "";
1592
1592
  return wt.has(this.tagName) && r === "" ? `<${this.tagName}${n}${l}${c} />` : `<${this.tagName}${n}${l}${c}>${i ?? r}</${this.tagName}>`;
1593
1593
  });
1594
1594
  this.tagName = t, this.namespace = r;
1595
1595
  }
1596
1596
  }
1597
- class ke extends Ie {
1597
+ class He extends Ie {
1598
1598
  constructor(t, r) {
1599
1599
  super(r);
1600
1600
  o(this, "isPortal", () => !0);
@@ -1649,7 +1649,7 @@ class V {
1649
1649
  });
1650
1650
  o(this, "makeRef", () => this.makeChildText(""));
1651
1651
  o(this, "makePortal", (e) => {
1652
- const t = new ke(e, this.element);
1652
+ const t = new He(e, this.element);
1653
1653
  return this.appendOrInsert(t), new V(
1654
1654
  t,
1655
1655
  void 0,
@@ -1670,7 +1670,7 @@ class V {
1670
1670
  }));
1671
1671
  o(this, "getProvider", (e) => {
1672
1672
  if (this.providers[e] === void 0)
1673
- throw new De(e);
1673
+ throw new Le(e);
1674
1674
  const [t, r] = this.providers[e];
1675
1675
  return { value: t, onUse: r };
1676
1676
  });
@@ -1698,12 +1698,12 @@ const Ct = /* @__PURE__ */ new Set([
1698
1698
  "readonly",
1699
1699
  "required",
1700
1700
  "selected"
1701
- ]), wt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), He = (s) => (e) => e.makeChildText(s).clear, $e = (s) => (e) => {
1701
+ ]), wt = /* @__PURE__ */ new Set(["img", "br", "hr", "input", "link", "meta"]), ke = (s) => (e) => e.makeChildText(s).clear, $e = (s) => (e) => {
1702
1702
  const t = e.makeChildText(s.value), r = s.on(t.setText);
1703
1703
  return (n) => {
1704
1704
  r(), t.clear(n);
1705
1705
  };
1706
- }, ss = (s) => d.is(s) ? $e(s) : He(s), _ = (...s) => (e) => {
1706
+ }, ls = (s) => y.is(s) ? $e(s) : ke(s), _ = (...s) => (e) => {
1707
1707
  const t = s.map((r) => f(r)(e));
1708
1708
  return (r) => {
1709
1709
  t.forEach((n) => n(r));
@@ -1719,17 +1719,20 @@ const Ct = /* @__PURE__ */ new Set([
1719
1719
  return (n) => {
1720
1720
  r(), n && e.removeClasses(t), t.length = 0;
1721
1721
  };
1722
- }, B = (s, e) => (t) => {
1722
+ }, Lt = (s, e) => (t) => {
1723
1723
  const { get: r, set: n } = t.makeAccessors(s), i = r();
1724
1724
  return n(e), (l) => {
1725
1725
  l && n(i);
1726
1726
  };
1727
- }, W = (s, e) => (t) => {
1727
+ }, Dt = (s, e) => (t) => {
1728
1728
  const { get: r, set: n } = t.makeAccessors(s), i = r(), l = e.on(n);
1729
1729
  return (c) => {
1730
1730
  l(), c && n(i);
1731
1731
  };
1732
- }, j = new Proxy(
1732
+ }, j = (s, e) => y.is(e) ? Dt(s, e) : Lt(s, e), se = (s = "") => (e, t) => {
1733
+ const r = s ? `${s}${e}` : e;
1734
+ return j(r, t);
1735
+ }, q = new Proxy(
1733
1736
  {},
1734
1737
  {
1735
1738
  /**
@@ -1743,18 +1746,12 @@ const Ct = /* @__PURE__ */ new Set([
1743
1746
  * @returns The renderable component for the specified attribute.
1744
1747
  *
1745
1748
  */
1746
- get: (s, e) => e === "class" ? (t) => d.is(t) ? Pt(t) : xt(
1749
+ get: (s, e) => e === "class" ? (t) => y.is(t) ? Pt(t) : xt(
1747
1750
  /* c8 ignore next */
1748
1751
  (t ?? "").split(" ").filter((r) => r.length > 0)
1749
- ) : (t) => d.is(t) ? W(
1750
- e,
1751
- t
1752
- ) : B(
1753
- e,
1754
- t
1755
- )
1752
+ ) : e === "set" ? se() : (t) => j(e, t)
1756
1753
  }
1757
- ), rs = new Proxy(
1754
+ ), cs = new Proxy(
1758
1755
  {},
1759
1756
  {
1760
1757
  /**
@@ -1765,12 +1762,9 @@ const Ct = /* @__PURE__ */ new Set([
1765
1762
  * @returns The renderable component for the specified attribute.
1766
1763
  *
1767
1764
  */
1768
- get: (s, e) => (t) => d.is(t) ? W(
1769
- `data-${e}`,
1770
- t
1771
- ) : B(`data-${e}`, t)
1765
+ get: (s, e) => e === "set" ? se("data-") : (t) => j(`data-${e}`, t)
1772
1766
  }
1773
- ), ns = new Proxy(
1767
+ ), as = new Proxy(
1774
1768
  {},
1775
1769
  {
1776
1770
  /**
@@ -1781,15 +1775,9 @@ const Ct = /* @__PURE__ */ new Set([
1781
1775
  * @returns The renderable component for the specified attribute.
1782
1776
  *
1783
1777
  */
1784
- get: (s, e) => (t) => d.is(t) ? W(
1785
- `aria-${e}`,
1786
- t
1787
- ) : B(
1788
- `aria-${e}`,
1789
- t
1790
- )
1778
+ get: (s, e) => e === "set" ? se("aria-") : (t) => j(`aria-${e}`, t)
1791
1779
  }
1792
- ), is = new Proxy(
1780
+ ), us = new Proxy(
1793
1781
  {},
1794
1782
  {
1795
1783
  /**
@@ -1800,15 +1788,9 @@ const Ct = /* @__PURE__ */ new Set([
1800
1788
  * @returns The renderable component for the specified attribute.
1801
1789
  *
1802
1790
  */
1803
- get: (s, e) => (t) => d.is(t) ? W(
1804
- e,
1805
- t
1806
- ) : B(
1807
- e,
1808
- t
1809
- )
1791
+ get: (s, e) => e === "set" ? se() : (t) => j(e, t)
1810
1792
  }
1811
- ), os = new Proxy(
1793
+ ), hs = new Proxy(
1812
1794
  {},
1813
1795
  {
1814
1796
  /**
@@ -1818,13 +1800,7 @@ const Ct = /* @__PURE__ */ new Set([
1818
1800
  * @returns The renderable component for the specified attribute.
1819
1801
  *
1820
1802
  */
1821
- get: (s, e) => (t) => d.is(t) ? W(
1822
- e,
1823
- t
1824
- ) : B(
1825
- e,
1826
- t
1827
- )
1803
+ get: (s, e) => (t) => j(e, t)
1828
1804
  }
1829
1805
  ), f = (s) => {
1830
1806
  if (s == null)
@@ -1832,8 +1808,8 @@ const Ct = /* @__PURE__ */ new Set([
1832
1808
  if (Array.isArray(s))
1833
1809
  return _(...s.map(f));
1834
1810
  if (typeof s == "string")
1835
- return He(s);
1836
- if (d.is(s))
1811
+ return ke(s);
1812
+ if (y.is(s))
1837
1813
  return $e(s);
1838
1814
  if (typeof s == "function")
1839
1815
  return s;
@@ -1848,7 +1824,7 @@ const Ct = /* @__PURE__ */ new Set([
1848
1824
  return (l) => {
1849
1825
  i.forEach((c) => c(!1)), n.clear(l);
1850
1826
  };
1851
- }, ls = new Proxy(
1827
+ }, fs = new Proxy(
1852
1828
  {},
1853
1829
  {
1854
1830
  /**
@@ -1858,7 +1834,7 @@ const Ct = /* @__PURE__ */ new Set([
1858
1834
  */
1859
1835
  get: (s, e) => (...t) => Ne(e, t.flatMap(f))
1860
1836
  }
1861
- ), cs = new Proxy(
1837
+ ), ds = new Proxy(
1862
1838
  {},
1863
1839
  {
1864
1840
  /**
@@ -1866,9 +1842,9 @@ const Ct = /* @__PURE__ */ new Set([
1866
1842
  * @param type - The input type name.
1867
1843
  * @returns A renderable function that creates and appends the HTMLInput element to the DOM.
1868
1844
  */
1869
- get: (s, e) => (...t) => Ne("input", j.type(e), ...t)
1845
+ get: (s, e) => (...t) => Ne("input", q.type(e), ...t)
1870
1846
  }
1871
- ), Dt = "http://www.w3.org/2000/svg", as = new Proxy(
1847
+ ), Mt = "http://www.w3.org/2000/svg", ps = new Proxy(
1872
1848
  {},
1873
1849
  {
1874
1850
  /**
@@ -1876,9 +1852,9 @@ const Ct = /* @__PURE__ */ new Set([
1876
1852
  * @param tagName - The SVG tag name.
1877
1853
  * @returns A renderable function that creates and appends the SVG element to the DOM.
1878
1854
  */
1879
- get: (s, e) => (...t) => Re(e, Dt, t.flatMap(f))
1855
+ get: (s, e) => (...t) => Re(e, Mt, t.flatMap(f))
1880
1856
  }
1881
- ), Lt = "http://www.w3.org/1998/Math/MathML", us = new Proxy(
1857
+ ), Ot = "http://www.w3.org/1998/Math/MathML", ms = new Proxy(
1882
1858
  {},
1883
1859
  {
1884
1860
  /**
@@ -1886,7 +1862,7 @@ const Ct = /* @__PURE__ */ new Set([
1886
1862
  * @param tagName - The Math tag name.
1887
1863
  * @returns A renderable function that creates and appends the Math element to the DOM.
1888
1864
  */
1889
- get: (s, e) => (...t) => Re(e, Lt, t.flatMap(f))
1865
+ get: (s, e) => (...t) => Re(e, Ot, t.flatMap(f))
1890
1866
  }
1891
1867
  ), Ve = (s, e) => {
1892
1868
  if (typeof e == "function")
@@ -1907,7 +1883,7 @@ const Ct = /* @__PURE__ */ new Set([
1907
1883
  l = !1, u(h), a.clear(h);
1908
1884
  };
1909
1885
  };
1910
- }, hs = (s, e) => Ve(() => s, e), je = (s, e, t) => (r) => r.on(s, e, t), Mt = (s) => je("click", (e, t) => {
1886
+ }, gs = (s, e) => Ve(() => s, e), je = (s, e, t) => (r) => r.on(s, e, t), It = (s) => je("click", (e, t) => {
1911
1887
  e.preventDefault();
1912
1888
  const r = e.target;
1913
1889
  setTimeout(() => {
@@ -1924,18 +1900,18 @@ const Ct = /* @__PURE__ */ new Set([
1924
1900
  */
1925
1901
  get: (s, e) => (t) => je(e, t)
1926
1902
  }
1927
- ), Ot = (s, e) => (t) => {
1903
+ ), Ht = (s, e) => (t) => {
1928
1904
  (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);
1929
- }, I = (s, e) => Ot((t) => {
1905
+ }, I = (s, e) => Ht((t) => {
1930
1906
  const r = t.target;
1931
1907
  s(r, t);
1932
- }, e), It = (s, e) => I(
1908
+ }, e), kt = (s, e) => I(
1933
1909
  (t, r) => s(t.value, r),
1934
1910
  e
1935
- ), kt = (s, e) => I(
1911
+ ), $t = (s, e) => I(
1936
1912
  (t, r) => s(t.valueAsNumber, r),
1937
1913
  e
1938
- ), Ht = (s, e) => I((t, r) => {
1914
+ ), Nt = (s, e) => I((t, r) => {
1939
1915
  if (t.value === "")
1940
1916
  return;
1941
1917
  const n = t.value.split("-"), i = new Date(
@@ -1944,7 +1920,7 @@ const Ct = /* @__PURE__ */ new Set([
1944
1920
  Number(n[2].substring(0, 2))
1945
1921
  );
1946
1922
  s(i, r);
1947
- }, e), fs = (s, e) => I((t, r) => {
1923
+ }, e), ys = (s, e) => I((t, r) => {
1948
1924
  if (t.value === "") {
1949
1925
  s(null, r);
1950
1926
  return;
@@ -1955,7 +1931,7 @@ const Ct = /* @__PURE__ */ new Set([
1955
1931
  Number(n[2].substring(0, 2))
1956
1932
  );
1957
1933
  s(i, r);
1958
- }, e), $t = (s, e) => I((t, r) => {
1934
+ }, e), Rt = (s, e) => I((t, r) => {
1959
1935
  if (t.value === "")
1960
1936
  return;
1961
1937
  const n = t.value.split("T"), i = n[0].split("-"), l = new Date(
@@ -1964,7 +1940,7 @@ const Ct = /* @__PURE__ */ new Set([
1964
1940
  Number(i[2])
1965
1941
  ), c = n[1].split(":");
1966
1942
  l.setHours(Number(c[0])), l.setMinutes(Number(c[1])), l.setSeconds(Number(c[2])), s(l, r);
1967
- }, e), ds = (s, e) => I((t, r) => {
1943
+ }, e), bs = (s, e) => I((t, r) => {
1968
1944
  if (t.value === "") {
1969
1945
  s(null, r);
1970
1946
  return;
@@ -1980,41 +1956,55 @@ const Ct = /* @__PURE__ */ new Set([
1980
1956
  Number(i[2])
1981
1957
  ), c = n[1].split(":");
1982
1958
  l.setHours(Number(c[0] ?? 0)), l.setMinutes(Number(c[1] ?? 0)), l.setSeconds(Number(c[2] ?? 0)), s(l, r);
1983
- }, e), ps = (s, e) => I((t, r) => {
1959
+ }, e), Ts = (s, e) => I((t, r) => {
1984
1960
  s(t.checked, r);
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))
1987
- return (r) => {
1988
- const n = r.makeRef();
1989
- let i, l;
1990
- const c = s.map((h) => Object.keys(h)[0]);
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);
1961
+ }, e), Ss = (s, e = "input") => _(q.valueAsDate(s), re[e](Nt(s.set))), vs = (s, e = "input") => _(q.valueAsDate(s), re[e](Rt(s.set))), As = (s, e = "input") => _(q.valueAsNumber(s), re[e]($t(s.set))), _s = (s, e = "input") => _(q.value(s), re[e](kt(s.set))), Es = (s) => _(q.checked(s), It(s.set)), de = (s, e, t) => y.is(s) ? e(s) : t(s), Vt = (s, e, t) => {
1962
+ const r = s.makeRef();
1963
+ let n = () => {
1964
+ };
1965
+ const i = e.on((l) => {
1966
+ n(!0), n = f(t(l))(r);
1967
+ });
1968
+ return (l) => {
1969
+ n(l), i(), r.clear(l);
1970
+ };
1971
+ }, ne = (s, e) => {
1972
+ function t(n) {
1973
+ return (i) => {
1974
+ const l = i.makeRef();
1975
+ let c, a;
1976
+ const u = n.map((p) => Object.keys(p)[0]);
1977
+ let h;
1978
+ const d = u.on((p) => {
1979
+ if (p !== h) {
1980
+ h = p, a == null || a.dispose(), c == null || c(!0), a = n.map((g) => g[p]);
1981
+ const m = e[p](a);
1982
+ c = f(m)(l);
1997
1983
  }
1998
1984
  });
1999
- return (h) => {
2000
- l == null || l.dispose(), u(), n.clear(h), i == null || i(h);
1985
+ return (p) => {
1986
+ a == null || a.dispose(), d(), l.clear(p), c == null || c(p);
2001
1987
  };
2002
1988
  };
2003
- const t = Object.keys(s)[0];
2004
- return f(e[t](se(s[t])));
1989
+ }
1990
+ function r(n) {
1991
+ const i = Object.keys(n)[0];
1992
+ return f(e[i](te(n[i])));
1993
+ }
1994
+ return de(s, t, r);
2005
1995
  }, qe = (s, e, t) => ne(
2006
- y.map(s, (r) => ({ [r[e]]: r })),
1996
+ b.map(s, (r) => ({ [r[e]]: r })),
2007
1997
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2008
1998
  t
2009
- ), Ss = (s, e) => qe(s, "kind", e), As = (s, e) => {
2010
- const t = y.map(s, ([r, n]) => ({ [r]: n }));
1999
+ ), Cs = (s, e) => qe(s, "kind", e), ws = (s, e) => {
2000
+ const t = b.map(s, ([r, n]) => ({ [r]: n }));
2011
2001
  return ne(t, e);
2012
- }, vs = (s, e) => qe(s, "type", e), Nt = (s, e) => ne(
2013
- y.map(s, (t) => ({ [t]: !0 })),
2002
+ }, xs = (s, e) => qe(s, "type", e), jt = (s, e) => ne(
2003
+ b.map(s, (t) => ({ [t]: !0 })),
2014
2004
  e
2015
- ), _s = (s, e = {}) => (t) => {
2005
+ ), Ps = (s, e = {}) => (t) => {
2016
2006
  const r = (e == null ? void 0 : e.firstSeparator) ?? s, n = (e == null ? void 0 : e.lastSeparator) ?? s;
2017
- return Nt(
2007
+ return jt(
2018
2008
  t.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
2019
2009
  {
2020
2010
  first: r,
@@ -2022,94 +2012,91 @@ const Ct = /* @__PURE__ */ new Set([
2022
2012
  other: s
2023
2013
  }
2024
2014
  );
2025
- }, Es = (s) => (e) => (e.appendOrInsert(s), (t) => {
2026
- t && Y(s);
2027
- }), Cs = (s, e, t) => {
2028
- if (d.is(s)) {
2029
- const r = s;
2030
- return (n) => {
2031
- const i = n.makeRef();
2032
- let l = () => {
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))(
2036
- i
2037
- ), c = !0);
2015
+ }, Ls = (s) => (e) => (e.appendOrInsert(s), (t) => {
2016
+ t && X(s);
2017
+ }), Ds = (s, e, t) => {
2018
+ function r(i) {
2019
+ return (l) => {
2020
+ const c = l.makeRef();
2021
+ let a = () => {
2022
+ }, u = !1, h = null;
2023
+ const d = i.on((p) => {
2024
+ p == null ? (a(!0), a = f(t == null ? void 0 : t())(c), u = !1, h == null || h.dispose(), h = null) : u ? h.set(p) : (h = w(p), a(!0), a = f(e(h))(
2025
+ c
2026
+ ), u = !0);
2038
2027
  });
2039
- return (h) => {
2040
- a == null || a.dispose(), u(), l == null || l(h), i.clear(h);
2028
+ return (p) => {
2029
+ h == null || h.dispose(), d(), a == null || a(p), c.clear(p);
2041
2030
  };
2042
2031
  };
2043
- } else {
2044
- const r = s;
2045
- if (r == null) {
2046
- const n = t == null ? void 0 : t();
2047
- return n != null ? f(n) : x;
2032
+ }
2033
+ function n(i) {
2034
+ if (i == null) {
2035
+ const l = t == null ? void 0 : t();
2036
+ return l != null ? f(l) : x;
2048
2037
  }
2049
- return f(e(se(r)));
2038
+ return f(e(te(i)));
2050
2039
  }
2051
- }, ws = (...s) => (e, t) => (r) => {
2040
+ return de(
2041
+ s,
2042
+ r,
2043
+ n
2044
+ );
2045
+ }, Ms = (...s) => (e, t) => (r) => {
2052
2046
  const n = r.makeRef();
2053
2047
  if (s.some(
2054
- (g) => !d.is(g) && g == null
2048
+ (m) => !y.is(m) && m == null
2055
2049
  ))
2056
2050
  return (t != null ? f(t == null ? void 0 : t()) : x)(
2057
2051
  n
2058
2052
  );
2059
2053
  const l = s.map(() => null), c = s.map(
2060
- (g) => d.is(g) ? g.value != null : g != null
2054
+ (m) => y.is(m) ? m.value != null : m != null
2061
2055
  );
2062
2056
  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;
2057
+ const u = w(c.every((m) => m)), h = (m, g) => {
2058
+ if (m.value != null) {
2059
+ if (l[g] == null) {
2060
+ const S = w(m.value);
2061
+ l[g] = S;
2068
2062
  } else
2069
- l[m].value = g.value;
2070
- c[m] = !0;
2063
+ l[g].value = m.value;
2064
+ c[g] = !0;
2071
2065
  } else
2072
- c[m] = !1;
2066
+ c[g] = !1;
2073
2067
  };
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, () => {
2068
+ let d = s.length - 1;
2069
+ const p = s.map((m, g) => {
2070
+ if (!y.is(m)) {
2071
+ const S = w(m);
2072
+ return l[g] = S, () => {
2079
2073
  };
2080
2074
  }
2081
- return g.on(() => {
2082
- h(g, m), p === 0 ? u.value = c.every((S) => S) : p--;
2075
+ return m.on(() => {
2076
+ h(m, g), d === 0 ? u.value = c.every((S) => S) : d--;
2083
2077
  });
2084
2078
  });
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);
2079
+ return u.on((m) => {
2080
+ a == null || a(!0), a = null, m ? a = f(e(...l))(n) : a = f((t == null ? void 0 : t()) ?? x)(n);
2081
+ }), (m) => {
2082
+ l.forEach((g) => g == null ? void 0 : g.dispose()), u.dispose(), p.forEach((g) => g()), a == null || a(m), n.clear(m);
2089
2083
  };
2090
- }, q = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Fe = (s, e, t) => {
2091
- if (d.is(s)) {
2092
- const r = s;
2093
- return (n) => {
2094
- const i = n.makeRef();
2095
- let l = () => {
2096
- };
2097
- const c = r.on((a) => {
2098
- l(!0), a ? l = f(e())(i) : l = f(t == null ? void 0 : t())(i);
2099
- });
2100
- return (a) => {
2101
- l(a), c(), i.clear(a);
2102
- };
2103
- };
2104
- } else {
2105
- if (s) {
2084
+ }, F = (...s) => (e) => (t) => s.forEach((r) => r(t, e)), Fe = (s, e, t) => de(
2085
+ s,
2086
+ (r) => (n) => Vt(
2087
+ n,
2088
+ r,
2089
+ (i) => i ? e() : t == null ? void 0 : t()
2090
+ ),
2091
+ (r) => {
2092
+ if (r) {
2106
2093
  const n = e();
2107
2094
  return n != null ? f(n) : x;
2108
2095
  }
2109
2096
  return f(t == null ? void 0 : t());
2110
2097
  }
2111
- }, xs = (s, e, t) => Fe(
2112
- y.map(s, (r) => !r),
2098
+ ), Os = (s, e, t) => Fe(
2099
+ b.map(s, (r) => !r),
2113
2100
  e,
2114
2101
  t
2115
2102
  ), Be = (s, e, t) => {
@@ -2120,7 +2107,7 @@ const Ct = /* @__PURE__ */ new Set([
2120
2107
  r.total.map((i) => i - 1)
2121
2108
  );
2122
2109
  return _(
2123
- q(n.dispose),
2110
+ F(n.dispose),
2124
2111
  f(e(r)),
2125
2112
  Fe(
2126
2113
  r.isLast,
@@ -2129,7 +2116,7 @@ const Ct = /* @__PURE__ */ new Set([
2129
2116
  )
2130
2117
  );
2131
2118
  });
2132
- if (d.is(s))
2119
+ if (y.is(s))
2133
2120
  return (r) => {
2134
2121
  const n = s.derive(), i = r.makeRef(), l = [];
2135
2122
  return n.on((c) => {
@@ -2140,7 +2127,7 @@ const Ct = /* @__PURE__ */ new Set([
2140
2127
  const h = new ce(u, n);
2141
2128
  l.push(
2142
2129
  _(
2143
- q(h.dispose),
2130
+ F(h.dispose),
2144
2131
  f(e(h))
2145
2132
  )(i)
2146
2133
  );
@@ -2153,32 +2140,32 @@ const Ct = /* @__PURE__ */ new Set([
2153
2140
  };
2154
2141
  };
2155
2142
  {
2156
- const r = se(s);
2143
+ const r = te(s);
2157
2144
  return _(
2158
2145
  ...Array.from({ length: s }, (n, i) => i).map((n) => {
2159
2146
  const i = new ce(n, r);
2160
2147
  return _(
2161
- q(i.dispose),
2148
+ F(i.dispose),
2162
2149
  f(e(i))
2163
2150
  );
2164
2151
  })
2165
2152
  );
2166
2153
  }
2167
- }, Ps = (s, e, t) => {
2168
- const r = y.map(s, (i) => i.length), n = y.toSignal(s);
2154
+ }, Is = (s, e, t) => {
2155
+ const r = b.map(s, (i) => i.length), n = b.toSignal(s);
2169
2156
  return Be(
2170
2157
  r,
2171
2158
  (i) => {
2172
2159
  const l = n.map((c) => c[i.index]);
2173
2160
  return _(
2174
- q(l.dispose),
2161
+ F(l.dispose),
2175
2162
  f(e(l, i))
2176
2163
  );
2177
2164
  },
2178
2165
  t
2179
2166
  );
2180
- }, Ds = (s, e) => {
2181
- if (d.is(s)) {
2167
+ }, Hs = (s, e) => {
2168
+ if (y.is(s)) {
2182
2169
  const t = s;
2183
2170
  return (r) => {
2184
2171
  r = r.makeRef();
@@ -2194,8 +2181,8 @@ const Ct = /* @__PURE__ */ new Set([
2194
2181
  };
2195
2182
  }
2196
2183
  return f(e(s));
2197
- }, Ls = (s, e, t = () => x) => ne(
2198
- y.map(
2184
+ }, ks = (s, e, t = () => x) => ne(
2185
+ b.map(
2199
2186
  s,
2200
2187
  (r) => r.length > 0 ? { notEmpty: r } : { whenEmpty: null }
2201
2188
  ),
@@ -2203,40 +2190,40 @@ const Ct = /* @__PURE__ */ new Set([
2203
2190
  notEmpty: (r) => e(r),
2204
2191
  whenEmpty: () => t()
2205
2192
  }
2206
- ), Ms = (s, e) => (t) => {
2193
+ ), $s = (s, e) => (t) => {
2207
2194
  const r = t.makePortal(s), n = fe(f(e), r);
2208
2195
  return () => n(!0);
2209
- }, G = /* @__PURE__ */ new Map(), Rt = (s) => ({
2196
+ }, J = /* @__PURE__ */ new Map(), qt = (s) => ({
2210
2197
  mark: lt(`Probe(${s.description})`),
2211
2198
  create: ({ callback: e = () => {
2212
2199
  }, timeout: t = 10 } = {}) => {
2213
2200
  const r = (c) => {
2214
- clearTimeout(n), G.delete(s), e(c);
2201
+ clearTimeout(n), J.delete(s), e(c);
2215
2202
  };
2216
- if (G.has(s))
2203
+ if (J.has(s))
2217
2204
  throw new Error(`Probe already exists: ${s.description}`);
2218
2205
  const n = setTimeout(() => r("timeout"), t), i = { counter: 0, timeoutId: n };
2219
- return G.set(s, i), {
2206
+ return J.set(s, i), {
2220
2207
  value: () => {
2221
2208
  clearTimeout(n);
2222
- const c = G.get(s);
2209
+ const c = J.get(s);
2223
2210
  c != null && --c.counter === 0 && r("resolved");
2224
2211
  },
2225
2212
  dispose: () => r("disposed"),
2226
2213
  onUse: () => i.counter++
2227
2214
  };
2228
2215
  }
2229
- }), Os = Rt(Symbol("GlobalProbe")), Te = (s, e) => (t) => {
2216
+ }), Ns = qt(Symbol("GlobalProbe")), Ft = (s, e) => (t) => {
2230
2217
  const r = t.getStyle(s);
2231
2218
  return t.setStyle(s, e), (n) => {
2232
2219
  n && t.setStyle(s, r);
2233
2220
  };
2234
- }, be = (s, e) => (t) => {
2221
+ }, Bt = (s, e) => (t) => {
2235
2222
  const r = t.getStyle(s), n = e.on((i) => t.setStyle(s, i));
2236
2223
  return (i) => {
2237
2224
  n(), i && t.setStyle(s, r);
2238
2225
  };
2239
- }, Is = new Proxy({}, {
2226
+ }, Te = (s, e) => y.is(e) ? Bt(s, e) : Ft(s, e), Rs = new Proxy({}, {
2240
2227
  /**
2241
2228
  * Creates a renderable component for the specified `style` property.
2242
2229
  *
@@ -2245,8 +2232,8 @@ const Ct = /* @__PURE__ */ new Set([
2245
2232
  * @returns The renderable component for the specified attribute.
2246
2233
  *
2247
2234
  */
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) => {
2235
+ get: (s, e) => e === "variable" ? (t, r) => Te(t, r) : (t) => Te(e, t)
2236
+ }), Wt = (s) => (e) => {
2250
2237
  if (e.isBrowser()) {
2251
2238
  const t = s(e);
2252
2239
  if (t != null)
@@ -2254,11 +2241,11 @@ const Ct = /* @__PURE__ */ new Set([
2254
2241
  }
2255
2242
  return () => {
2256
2243
  };
2257
- }, ks = (s) => (e) => {
2244
+ }, Vs = (s) => (e) => {
2258
2245
  const t = s(e);
2259
2246
  return t == null ? () => {
2260
2247
  } : f(t)(e);
2261
- }, Hs = (s) => Vt((e) => s(e.element)), $s = (s) => (e) => {
2248
+ }, js = (s) => Wt((e) => s(e.element)), qs = (s) => (e) => {
2262
2249
  if (e.isHeadlessDOM()) {
2263
2250
  const t = s(e);
2264
2251
  if (t)
@@ -2266,7 +2253,7 @@ const Ct = /* @__PURE__ */ new Set([
2266
2253
  }
2267
2254
  return () => {
2268
2255
  };
2269
- }, de = (s) => (e) => {
2256
+ }, pe = (s) => (e) => {
2270
2257
  let t = e;
2271
2258
  function r() {
2272
2259
  return t;
@@ -2280,133 +2267,133 @@ const Ct = /* @__PURE__ */ new Set([
2280
2267
  return u == null || u(), a;
2281
2268
  },
2282
2269
  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));
2270
+ const { value: h, dispose: d, onUse: p } = a(u, r());
2271
+ i.push(d), n(r().setProvider(c, h, p));
2285
2272
  }
2286
2273
  });
2287
2274
  return l == null ? () => {
2288
2275
  } : _(
2289
2276
  f(l),
2290
- q(() => i.forEach((c) => c()))
2277
+ F(() => i.forEach((c) => c()))
2291
2278
  )(r());
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 }) => {
2279
+ }, Fs = (s, e, t) => pe(({ set: r }) => (r(s, e), t())), Bs = (s, e) => pe(({ use: t }) => e(t(s))), Ws = (...s) => (e) => pe(({ use: t }) => {
2293
2280
  const r = s.map(t);
2294
2281
  return e(...r);
2295
2282
  });
2296
2283
  export {
2297
- hs as Async,
2298
- bs as BindChecked,
2299
- gs as BindDate,
2300
- ms as BindDateTime,
2301
- ys as BindNumber,
2302
- Ts as BindText,
2284
+ gs as Async,
2285
+ Es as BindChecked,
2286
+ Ss as BindDate,
2287
+ vs as BindDateTime,
2288
+ As as BindNumber,
2289
+ _s as BindText,
2303
2290
  R as BrowserContext,
2304
- Q as CLASS_PLACEHOLDER_ATTR,
2291
+ Y as CLASS_PLACEHOLDER_ATTR,
2305
2292
  N as Computed,
2306
- _s as Conjunction,
2307
- Es as DOMNode,
2293
+ Ps as Conjunction,
2294
+ Ls as DOMNode,
2308
2295
  Ne as El,
2309
2296
  Re as ElNS,
2310
2297
  ce as ElementPosition,
2311
2298
  x as Empty,
2312
- Cs as Ensure,
2313
- ws as EnsureAll,
2314
- Ps as ForEach,
2299
+ Ds as Ensure,
2300
+ Ms as EnsureAll,
2301
+ Is as ForEach,
2315
2302
  _ as Fragment,
2316
- Os as GlobalProbe,
2317
- es as HeadlessAdapter,
2303
+ Ns as GlobalProbe,
2304
+ is as HeadlessAdapter,
2318
2305
  V as HeadlessContext,
2319
2306
  _t as HeadlessElement,
2320
- ke as HeadlessPortal,
2307
+ He as HeadlessPortal,
2321
2308
  Et as HeadlessText,
2322
- Ds as MapSignal,
2323
- Ae as MemoryStore,
2324
- Ls as NotEmpty,
2325
- Mt as OnChecked,
2326
- q as OnDispose,
2309
+ Hs as MapSignal,
2310
+ ve as MemoryStore,
2311
+ ks as NotEmpty,
2312
+ It as OnChecked,
2313
+ F as OnDispose,
2327
2314
  ne as OneOf,
2328
2315
  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,
2316
+ Cs as OneOfKind,
2317
+ ws as OneOfTuple,
2318
+ xs as OneOfType,
2319
+ jt as OneOfValue,
2320
+ $s as Portal,
2321
+ G as Prop,
2322
+ Fs as Provide,
2323
+ Le as ProviderNotFoundError,
2337
2324
  ct as RenderingError,
2338
2325
  Be as Repeat,
2339
- d as Signal,
2326
+ y as Signal,
2340
2327
  Ve as Task,
2341
- ss as TextNode,
2342
- xs as Unless,
2343
- Rs as Use,
2344
- Vs as UseMany,
2345
- y as Value,
2328
+ ls as TextNode,
2329
+ Os as Unless,
2330
+ Bs as Use,
2331
+ Ws as UseMany,
2332
+ b as Value,
2346
2333
  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,
2334
+ Wt as WithBrowserCtx,
2335
+ Vs as WithCtx,
2336
+ js as WithElement,
2337
+ qs as WithHeadlessCtx,
2338
+ pe as WithProvider,
2339
+ De as _NODE_PLACEHOLDER_ATTR,
2353
2340
  ot as _getSelfOrParentElement,
2354
2341
  Pe as _isElement,
2355
2342
  it as _makeGetter,
2356
2343
  nt as _makeSetter,
2357
- Y as _removeDOMNode,
2344
+ X as _removeDOMNode,
2358
2345
  $e as _signalText,
2359
- He as _staticText,
2360
- Ut as animateSignal,
2346
+ ke as _staticText,
2347
+ Qt as animateSignal,
2361
2348
  st as animateSignals,
2362
- ns as aria,
2363
- j as attr,
2364
- Qt as bind,
2365
- Zt as coalesce,
2349
+ as as aria,
2350
+ q as attr,
2351
+ ts as bind,
2352
+ ss as coalesce,
2366
2353
  ae as computed,
2367
2354
  he as computedOf,
2368
2355
  rt as computedRecord,
2369
- rs as dataAttr,
2370
- Gt as delaySignal,
2356
+ cs as dataAttr,
2357
+ zt as delaySignal,
2371
2358
  ze as effect,
2372
- Ft as effectOf,
2373
- Ot as emit,
2374
- ps as emitChecked,
2359
+ Gt as effectOf,
2360
+ Ht as emit,
2361
+ Ts as emitChecked,
2375
2362
  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,
2363
+ kt as emitValue,
2364
+ Nt as emitValueAsDate,
2365
+ Rt as emitValueAsDateTime,
2366
+ ys as emitValueAsNullableDate,
2367
+ bs as emitValueAsNullableDateTime,
2368
+ $t as emitValueAsNumber,
2382
2369
  Ye as endInterpolate,
2383
2370
  ue as getWindow,
2384
2371
  Qe as guessInterpolate,
2385
- ls as html,
2386
- cs as input,
2372
+ fs as html,
2373
+ ds as input,
2387
2374
  Xe as interpolateDate,
2388
2375
  Je as interpolateNumber,
2389
2376
  Ge as interpolateString,
2390
- qt as joinSignals,
2391
- Bt as localStorageProp,
2392
- Rt as makeProbe,
2377
+ Jt as joinSignals,
2378
+ Xt as localStorageProp,
2379
+ qt as makeProbe,
2393
2380
  lt as makeProviderMark,
2394
- us as math,
2395
- os as mathAttr,
2396
- Jt as merge,
2381
+ ms as math,
2382
+ hs as mathAttr,
2383
+ Zt as merge,
2397
2384
  re as on,
2398
- Xt as previousSignal,
2385
+ Kt as previousSignal,
2399
2386
  w as prop,
2400
- zt as render,
2387
+ rs as render,
2401
2388
  fe as renderWithContext,
2402
2389
  f as renderableOfTNode,
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
2390
+ os as restoreTempoPlaceholders,
2391
+ ns as runHeadless,
2392
+ Yt as sessionStorageProp,
2393
+ te as signal,
2394
+ es as slidingWindowSignal,
2395
+ Ae as storedProp,
2396
+ Rs as style,
2397
+ ps as svg,
2398
+ us as svgAttr
2412
2399
  };