@tempots/dom 10.0.28 → 11.0.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.
Files changed (41) hide show
  1. package/README.md +2 -0
  2. package/dom/handle-anchor-click.d.ts +5 -4
  3. package/dom/ssr.d.ts +2 -2
  4. package/index.cjs +1 -1
  5. package/index.js +254 -229
  6. package/mountable/appearance.d.ts +5 -6
  7. package/mountable/async.d.ts +5 -5
  8. package/mountable/attribute.d.ts +435 -431
  9. package/mountable/autofocus.d.ts +2 -2
  10. package/mountable/autoselect.d.ts +2 -2
  11. package/mountable/bind.d.ts +5 -5
  12. package/mountable/conjunction.d.ts +5 -5
  13. package/mountable/consumers.d.ts +5 -5
  14. package/mountable/ctx.d.ts +2 -2
  15. package/mountable/element.d.ts +227 -227
  16. package/mountable/empty.d.ts +2 -2
  17. package/mountable/ensure.d.ts +2 -2
  18. package/mountable/foreach.d.ts +2 -2
  19. package/mountable/fragment.d.ts +2 -2
  20. package/mountable/handler.d.ts +89 -89
  21. package/mountable/hidden-when-empty.d.ts +2 -2
  22. package/mountable/inviewport.d.ts +3 -3
  23. package/mountable/map-signal.d.ts +2 -2
  24. package/mountable/not-empty.d.ts +2 -2
  25. package/mountable/ondispose.d.ts +2 -2
  26. package/mountable/oneof.d.ts +9 -9
  27. package/mountable/onmount.d.ts +2 -2
  28. package/mountable/portal.d.ts +2 -2
  29. package/mountable/providers.d.ts +6 -6
  30. package/mountable/render.d.ts +3 -3
  31. package/mountable/repeat.d.ts +2 -2
  32. package/mountable/size.d.ts +3 -3
  33. package/mountable/style.d.ts +499 -499
  34. package/mountable/task.d.ts +5 -5
  35. package/mountable/text.d.ts +4 -4
  36. package/mountable/when.d.ts +3 -3
  37. package/package.json +22 -6
  38. package/std/signal.d.ts +24 -7
  39. package/types/css-styles.d.ts +1 -2
  40. package/types/domain.d.ts +2 -2
  41. package/types/html-attributes.d.ts +2 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var Ze = Object.defineProperty;
2
2
  var Xe = (t, e, r) => e in t ? Ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var a = (t, e, r) => Xe(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var l = (t, e, r) => Xe(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  function Ye(t, e, r) {
5
5
  return t + (e - t) * r;
6
6
  }
@@ -11,8 +11,8 @@ function je(t, e, r) {
11
11
  for (let i = 0; i < n; i++) {
12
12
  let o = t.charCodeAt(i);
13
13
  isNaN(o) && (o = ee);
14
- let l = e.charCodeAt(i);
15
- isNaN(l) && (l = ee), s += String.fromCharCode(o + (l - o) * r);
14
+ let a = e.charCodeAt(i);
15
+ isNaN(a) && (a = ee), s += String.fromCharCode(o + (a - o) * r);
16
16
  }
17
17
  return s;
18
18
  }
@@ -42,34 +42,34 @@ class ke {
42
42
  return this.index % 2 === 1;
43
43
  }
44
44
  }
45
- const te = Symbol("isSignal"), re = Symbol("isProp"), ne = Symbol("isComputed");
45
+ const te = "$__signal__", re = "$__prop__", ne = "$__computed__";
46
46
  var ae;
47
47
  ae = te;
48
48
  const _ = class _ {
49
49
  constructor(e, r) {
50
- a(this, ae, !0);
51
- a(this, "_value");
52
- a(this, "_derivatives", []);
53
- a(this, "_onValueListeners", []);
54
- a(this, "_onDisposeListeners", []);
55
- a(this, "get", () => this._value);
56
- a(this, "hasListeners", () => this._onValueListeners.length > 0);
57
- a(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
50
+ l(this, ae, !0);
51
+ l(this, "_value");
52
+ l(this, "_derivatives", []);
53
+ l(this, "_onValueListeners", []);
54
+ l(this, "_onDisposeListeners", []);
55
+ l(this, "get", () => this._value);
56
+ l(this, "hasListeners", () => this._onValueListeners.length > 0);
57
+ l(this, "on", (e) => (e(this.get()), this._onValueListeners.push(e), () => {
58
58
  this._onValueListeners.splice(this._onValueListeners.indexOf(e), 1);
59
59
  }));
60
- a(this, "_setAndNotify", (e, r) => {
60
+ l(this, "_setAndNotify", (e, r) => {
61
61
  const n = this.equals(this._value, e);
62
62
  n || (this._value = e), (r || !n) && this._onValueListeners.forEach((s) => s(e));
63
63
  });
64
- a(this, "_disposed", !1);
65
- a(this, "isDisposed", () => this._disposed);
66
- a(this, "onDispose", (e) => {
64
+ l(this, "_disposed", !1);
65
+ l(this, "isDisposed", () => this._disposed);
66
+ l(this, "onDispose", (e) => {
67
67
  this._onDisposeListeners.push(e);
68
68
  });
69
- a(this, "dispose", () => {
69
+ l(this, "dispose", () => {
70
70
  this._disposed || (this._disposed = !0, this._onDisposeListeners.forEach((e) => e()), this._onDisposeListeners.length = 0, this._derivatives.length = 0);
71
71
  });
72
- a(this, "map", (e, r = (n, s) => n === s) => {
72
+ l(this, "map", (e, r = (n, s) => n === s) => {
73
73
  const n = new T(() => {
74
74
  try {
75
75
  return e(this.get());
@@ -79,7 +79,7 @@ const _ = class _ {
79
79
  }, r);
80
80
  return this.setDerivative(n), n;
81
81
  });
82
- a(this, "flatMap", (e, r = (n, s) => n === s) => {
82
+ l(this, "flatMap", (e, r = (n, s) => n === s) => {
83
83
  const n = new T(() => {
84
84
  try {
85
85
  return e(this.get()).get();
@@ -89,9 +89,12 @@ const _ = class _ {
89
89
  }, r);
90
90
  return this.setDerivative(n), n;
91
91
  });
92
- a(this, "tap", (e) => this.map((r) => (e(r), r)));
93
- a(this, "at", (e) => this.map((r) => r[e]));
94
- a(this, "filter", (e, r) => {
92
+ l(this, "tap", (e) => this.map((r) => (e(r), r)));
93
+ l(this, "at", (e) => this.map((r) => r[e]));
94
+ l(this, "$", new Proxy(this, {
95
+ get: (e, r) => this.at(r)
96
+ }));
97
+ l(this, "filter", (e, r) => {
95
98
  let n = r ?? this.get();
96
99
  const s = new T(() => {
97
100
  try {
@@ -103,26 +106,26 @@ const _ = class _ {
103
106
  }, this.equals);
104
107
  return this.setDerivative(s), s;
105
108
  });
106
- a(this, "filterMap", (e, r, n = (s, i) => s === i) => {
109
+ l(this, "filterMap", (e, r, n = (s, i) => s === i) => {
107
110
  let s = r;
108
111
  const i = new T(() => {
109
112
  try {
110
- const o = this.get(), l = e(o);
111
- return s = l ?? s;
113
+ const o = this.get(), a = e(o);
114
+ return s = a ?? s;
112
115
  } catch (o) {
113
116
  throw console.error("Error in Signal.filterMap:", o), o;
114
117
  }
115
118
  }, n);
116
119
  return this.setDerivative(i), i;
117
120
  });
118
- a(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
121
+ l(this, "mapAsync", (e, r, n, s = (i, o) => i === o) => {
119
122
  const i = A(r, s);
120
123
  let o = 0;
121
124
  return i.onDispose(
122
- this.on((l) => {
125
+ this.on((a) => {
123
126
  const u = ++o;
124
127
  try {
125
- e(l).then((c) => {
128
+ e(a).then((c) => {
126
129
  u === o && i.set(c);
127
130
  }).catch((c) => {
128
131
  u === o && (n != null ? i.set(n(c)) : console.error(
@@ -136,17 +139,17 @@ const _ = class _ {
136
139
  })
137
140
  ), i;
138
141
  });
139
- a(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
140
- a(this, "feedProp", (e, r = !1) => {
142
+ l(this, "mapMaybe", (e, r) => this.map((n) => e(n) ?? r));
143
+ l(this, "feedProp", (e, r = !1) => {
141
144
  const n = this.on(e.set);
142
145
  return e.onDispose(n), r ? this.onDispose(e.dispose) : this.onDispose(n), e;
143
146
  });
144
- a(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
145
- a(this, "count", () => {
147
+ l(this, "deriveProp", (e = !0) => this.feedProp(A(this.get()), e));
148
+ l(this, "count", () => {
146
149
  let e = 0;
147
150
  return this.map(() => ++e);
148
151
  });
149
- a(this, "setDerivative", (e) => {
152
+ l(this, "setDerivative", (e) => {
150
153
  this._derivatives.push(e), e.onDispose(() => {
151
154
  this._derivatives.splice(
152
155
  this._derivatives.indexOf(e),
@@ -184,25 +187,25 @@ const _ = class _ {
184
187
  return this._value;
185
188
  }
186
189
  };
187
- let d = _;
190
+ let h = _;
188
191
  const Be = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
189
192
  var le, ce;
190
- class T extends (ce = d, le = ne, ce) {
193
+ class T extends (ce = h, le = ne, ce) {
191
194
  constructor(r, n) {
192
195
  super(void 0, n);
193
- a(this, le, !0);
194
- a(this, "_isDirty", !1);
195
- a(this, "setDirty", () => {
196
+ l(this, le, !0);
197
+ l(this, "_isDirty", !1);
198
+ l(this, "setDirty", () => {
196
199
  this._isDirty || this._disposed || (this._isDirty = !0, this._derivatives.forEach((r) => r.setDirty()), this.scheduleNotify());
197
200
  });
198
- a(this, "_scheduleCount", 0);
199
- a(this, "scheduleNotify", () => {
201
+ l(this, "_scheduleCount", 0);
202
+ l(this, "scheduleNotify", () => {
200
203
  const r = ++this._scheduleCount;
201
204
  Be(() => {
202
205
  this._scheduleCount !== r || this._disposed !== !1 || this._isDirty && (this._isDirty = !1, this._setAndNotify(this._fn(), !1));
203
206
  });
204
207
  });
205
- a(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
208
+ l(this, "get", () => (this._isDirty && (this._isDirty = !1, this._value = this._fn(), this._setAndNotify(this._value, !0)), this._value));
206
209
  this._fn = r, this.setDirty();
207
210
  }
208
211
  static is(r) {
@@ -213,22 +216,35 @@ class T extends (ce = d, le = ne, ce) {
213
216
  }
214
217
  }
215
218
  var fe, he;
216
- class V extends (he = d, fe = re, he) {
219
+ class q extends (he = h, fe = re, he) {
217
220
  constructor() {
218
221
  super(...arguments);
219
- a(this, fe, !0);
220
- a(this, "set", (r) => {
222
+ l(this, fe, !0);
223
+ l(this, "set", (r) => {
221
224
  this._setAndNotify(r, !1);
222
225
  });
223
- a(this, "update", (r) => {
226
+ l(this, "update", (r) => {
224
227
  this._setAndNotify(r(this.get()), !1);
225
228
  });
226
- a(this, "reducer", (r) => (n) => this.update((s) => r(s, n)));
227
- a(this, "iso", (r, n, s = (i, o) => i === o) => {
228
- const i = new V(r(this.get()), s);
229
+ l(this, "reducer", (r, ...n) => {
230
+ const s = this;
231
+ return function i(o) {
232
+ const a = s.value;
233
+ s.update((u) => r(u, o)), !s.equals(a, s.value) && n.forEach(
234
+ (u) => u({
235
+ previousState: a,
236
+ state: s.value,
237
+ action: o,
238
+ dispatch: i
239
+ })
240
+ );
241
+ };
242
+ });
243
+ l(this, "iso", (r, n, s = (i, o) => i === o) => {
244
+ const i = new q(r(this.get()), s);
229
245
  return i.onDispose(this.on((o) => i.set(r(o)))), i.on((o) => this._setAndNotify(n(o), !1)), i;
230
246
  });
231
- a(this, "atProp", (r) => this.iso(
247
+ l(this, "atProp", (r) => this.iso(
232
248
  (n) => n[r],
233
249
  (n) => ({ ...this.value, [r]: n })
234
250
  ));
@@ -251,16 +267,16 @@ function Kt(t, e) {
251
267
  return U(t, e).dispose;
252
268
  }
253
269
  function A(t, e = (r, n) => r === n) {
254
- return new V(t, e);
270
+ return new q(t, e);
255
271
  }
256
272
  function Ut(t, e = (r, n) => r === n) {
257
- return new d(t, e);
273
+ return new h(t, e);
258
274
  }
259
275
  class de {
260
276
  constructor() {
261
- a(this, "_store", /* @__PURE__ */ new Map());
262
- a(this, "getItem", (e) => this._store.get(e) ?? null);
263
- a(this, "setItem", (e, r) => {
277
+ l(this, "_store", /* @__PURE__ */ new Map());
278
+ l(this, "getItem", (e) => this._store.get(e) ?? null);
279
+ l(this, "setItem", (e, r) => {
264
280
  this._store.set(e, r);
265
281
  });
266
282
  }
@@ -271,11 +287,11 @@ function pe({
271
287
  store: r,
272
288
  serialize: n = JSON.stringify,
273
289
  deserialize: s = JSON.parse,
274
- equals: i = (l, u) => l === u,
275
- onLoad: o = (l) => l
290
+ equals: i = (a, u) => a === u,
291
+ onLoad: o = (a) => a
276
292
  }) {
277
- const l = r.getItem(t), u = new V(
278
- l != null ? o(s(l)) : typeof e == "function" ? e() : e,
293
+ const a = r.getItem(t), u = new q(
294
+ a != null ? o(s(a)) : typeof e == "function" ? e() : e,
279
295
  i
280
296
  );
281
297
  return u.on((c) => {
@@ -298,8 +314,8 @@ function se(t) {
298
314
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
299
315
  }
300
316
  function Ge(t, e, r, n) {
301
- const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((b) => b), o = (n == null ? void 0 : n.equals) ?? ((b, R) => b === R);
302
- let l = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, h = !0;
317
+ const s = (n == null ? void 0 : n.duration) ?? 300, i = (n == null ? void 0 : n.easing) ?? ((b) => b), o = (n == null ? void 0 : n.equals) ?? ((b, O) => b === O);
318
+ let a = n == null ? void 0 : n.interpolate, u = t, c = e(), p = performance.now(), m = null, d = !0;
303
319
  const E = new T(e, o), y = A(t, o);
304
320
  y.onDispose(() => {
305
321
  m !== null && cancelAnimationFrame(m);
@@ -307,12 +323,12 @@ function Ge(t, e, r, n) {
307
323
  b.setDerivative(E), b.onDispose(y.dispose);
308
324
  });
309
325
  const Y = (b) => {
310
- c = b, p = performance.now(), u = y.value, h && (h = !1, m = se(J));
326
+ c = b, p = performance.now(), u = y.value, d && (d = !1, m = se(J));
311
327
  }, J = () => {
312
- const R = (performance.now() - p) / d.unwrap(s), qe = i(R);
313
- l == null && (l = Ue(u));
314
- let Q = l(u, c, qe);
315
- R >= 1 ? (h = !0, Q = c) : m = se(J), y.set(Q);
328
+ const O = (performance.now() - p) / h.unwrap(s), qe = i(O);
329
+ a == null && (a = Ue(u));
330
+ let Q = a(u, c, qe);
331
+ O >= 1 ? (d = !0, Q = c) : m = se(J), y.set(Q);
316
332
  };
317
333
  return E.on(Y), y;
318
334
  }
@@ -322,7 +338,7 @@ function Gt(t, e) {
322
338
  }
323
339
  function Jt(t, e) {
324
340
  const { signals: r, literals: n } = Object.entries(t).reduce(
325
- ({ signals: i, literals: o }, [l, u]) => (d.is(u) ? i.push([l, u]) : o[l] = u, { signals: i, literals: o }),
341
+ ({ signals: i, literals: o }, [a, u]) => (h.is(u) ? i.push([a, u]) : o[a] = u, { signals: i, literals: o }),
326
342
  { signals: [], literals: {} }
327
343
  ), s = r.map(([, i]) => i);
328
344
  return U(() => (r.forEach(([i, o]) => n[i] = o.value), e(n)), s);
@@ -360,7 +376,7 @@ function oe(t) {
360
376
  spread: 0,
361
377
  color: "rgba(0, 0, 0, 0)"
362
378
  };
363
- const [, n, s, , , i, , o, , l, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = l != null ? parseInt(l, 10) : 0;
379
+ const [, n, s, , , i, , o, , a, , u] = r, c = o != null ? parseInt(o, 10) : 0, p = a != null ? parseInt(a, 10) : 0;
364
380
  return {
365
381
  inset: !!n,
366
382
  x: parseInt(s, 10),
@@ -378,22 +394,22 @@ function Qe(t) {
378
394
  return t[4] === "rgba" ? `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]})` : t[4] === "hex" ? `#${t[0].toString(16).padStart(2, "0")}${t[1].toString(16).padStart(2, "0")}${t[2].toString(16).padStart(2, "0")}` : t[4] === "hsla" ? `hsla(${t[0]}, ${t[1]}%, ${t[2]}%, ${t[3]})` : "";
379
395
  }
380
396
  function et(t, e) {
381
- const [r, n, s, i, o] = ie(t), [l, u, c, p] = ie(e);
397
+ const [r, n, s, i, o] = ie(t), [a, u, c, p] = ie(e);
382
398
  return (m) => {
383
- const h = r + (l - r) * m, E = n + (u - n) * m, y = s + (c - s) * m, Y = i + (p - i) * m;
384
- return Qe([h, E, y, Y, o]);
399
+ const d = r + (a - r) * m, E = n + (u - n) * m, y = s + (c - s) * m, Y = i + (p - i) * m;
400
+ return Qe([d, E, y, Y, o]);
385
401
  };
386
402
  }
387
403
  function Qt(t, e) {
388
404
  const r = oe(t), n = oe(e);
389
405
  return (s) => {
390
- const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, l = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = ge(r.color, n.color)(s);
391
- return Je({ inset: r.inset, x: i, y: o, blur: l, spread: u, color: c });
406
+ const i = r.x + (n.x - r.x) * s, o = r.y + (n.y - r.y) * s, a = r.blur + (n.blur - r.blur) * s, u = r.spread + (n.spread - r.spread) * s, c = ge(r.color, n.color)(s);
407
+ return Je({ inset: r.inset, x: i, y: o, blur: a, spread: u, color: c });
392
408
  };
393
409
  }
394
410
  function tt(t, e) {
395
- var r, n, s, i, o, l, u, c;
396
- return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (l = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : l[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
411
+ var r, n, s, i, o, a, u, c;
412
+ return e === "translateX" ? new WebKitCSSMatrix(t.transform).m41 : e === "translateY" ? new WebKitCSSMatrix(t.transform).m42 : e === "translateZ" ? new WebKitCSSMatrix(t.transform).m43 : e === "rotateX" ? new WebKitCSSMatrix(t.transform).m12 : e === "rotateY" ? new WebKitCSSMatrix(t.transform).m21 : e === "rotateZ" ? new WebKitCSSMatrix(t.transform).m31 : e === "scaleX" ? new WebKitCSSMatrix(t.transform).m11 : e === "scaleY" ? new WebKitCSSMatrix(t.transform).m22 : e === "scaleZ" ? new WebKitCSSMatrix(t.transform).m33 : e === "skewX" ? new WebKitCSSMatrix(t.transform).m13 : e === "skewY" ? new WebKitCSSMatrix(t.transform).m23 : Number(e === "grayScale" ? (r = t.filter.match(/grayscale\((\d+)%\)/)) == null ? void 0 : r[1] : e === "sepia" ? (n = t.filter.match(/sepia\((\d+)%\)/)) == null ? void 0 : n[1] : e === "saturate" ? (s = t.filter.match(/saturate\((\d+)%\)/)) == null ? void 0 : s[1] : e === "hueRotate" ? (i = t.filter.match(/hue-rotate\((\d+)deg\)/)) == null ? void 0 : i[1] : e === "invert" ? (o = t.filter.match(/invert\((\d+)%\)/)) == null ? void 0 : o[1] : e === "brightness" ? (a = t.filter.match(/brightness\((\d+)%\)/)) == null ? void 0 : a[1] : e === "contrast" ? (u = t.filter.match(/contrast\((\d+)%\)/)) == null ? void 0 : u[1] : e === "blur" ? (c = t.filter.match(/blur\((\d+)px\)/)) == null ? void 0 : c[1] : t.getPropertyValue(e));
397
413
  }
398
414
  function er(t, e) {
399
415
  const r = {}, n = getComputedStyle(t);
@@ -403,7 +419,7 @@ function er(t, e) {
403
419
  }
404
420
  return r;
405
421
  }
406
- function O(t, e, r) {
422
+ function W(t, e, r) {
407
423
  r != null && (e === "translateX" ? t.style.transform += ` translateX(${r}px)` : e === "translateY" ? t.style.transform += ` translateY(${r}px)` : e === "translateZ" ? t.style.transform += ` translateZ(${r}px)` : e === "rotateX" ? t.style.transform += ` rotateX(${r}deg)` : e === "rotateY" ? t.style.transform += ` rotateY(${r}deg)` : e === "rotateZ" ? t.style.transform += ` rotateZ(${r}deg)` : e === "scaleX" ? t.style.transform += ` scaleX(${r})` : e === "scaleY" ? t.style.transform += ` scaleY(${r})` : e === "scaleZ" ? t.style.transform += ` scaleZ(${r})` : e === "skewX" ? t.style.transform += ` skewX(${r}deg)` : e === "skewY" ? t.style.transform += ` skewY(${r}deg)` : e === "grayScale" ? t.style.filter += ` grayscale(${r}%)` : e === "sepia" ? t.style.filter += ` sepia(${r}%)` : e === "saturate" ? t.style.filter += ` saturate(${r}%)` : e === "hueRotate" ? t.style.filter += ` hue-rotate(${r}deg)` : e === "invert" ? t.style.filter += ` invert(${r}%)` : e === "brightness" ? t.style.filter += ` brightness(${r}%)` : e === "contrast" ? t.style.filter += ` contrast(${r}%)` : e === "blur" && (t.style.filter += ` blur(${r}px)`), t.style.setProperty(e, String(r)));
408
424
  }
409
425
  const j = /* @__PURE__ */ new Map();
@@ -423,19 +439,19 @@ function nt(t, e, r, n, s) {
423
439
  if (r != null && n != null) {
424
440
  if (typeof r == "number" && typeof n == "number") {
425
441
  const i = r + (n - r) * s;
426
- O(t, e, i);
442
+ W(t, e, i);
427
443
  } else if (e === "boxShadow" || e === "textShadow") {
428
444
  const i = rt(
429
445
  r,
430
446
  n
431
447
  )(s);
432
- O(t, e, i);
448
+ W(t, e, i);
433
449
  } else if (e === "color" || e === "backgroundColor" || e === "borderColor" || e === "outlineColor") {
434
450
  const i = ge(
435
451
  r,
436
452
  n
437
453
  )(s);
438
- O(t, e, i);
454
+ W(t, e, i);
439
455
  }
440
456
  }
441
457
  }
@@ -449,7 +465,7 @@ function tr(t, e, r, n) {
449
465
  function rr(t, e) {
450
466
  t.style.transform = "", t.style.filter = "";
451
467
  for (const [r, n] of Object.entries(e))
452
- n != null && O(t, r, n);
468
+ n != null && W(t, r, n);
453
469
  }
454
470
  const we = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), Se = /* @__PURE__ */ new Set([
455
471
  "rowSpan",
@@ -465,7 +481,7 @@ const we = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]
465
481
  "className",
466
482
  "classList"
467
483
  ]), H = /* @__PURE__ */ new Map();
468
- function C(t, e) {
484
+ function $(t, e) {
469
485
  if (H.has(t))
470
486
  return H.get(t);
471
487
  {
@@ -499,7 +515,7 @@ function at(t) {
499
515
  };
500
516
  }
501
517
  function Ae(t) {
502
- return we.has(t) ? C(t, st) : Se.has(t) ? C(t, it) : be.has(t) ? C(t, ot) : ve.has(t) ? C(t, ut) : C(t, at);
518
+ return we.has(t) ? $(t, st) : Se.has(t) ? $(t, it) : be.has(t) ? $(t, ot) : ve.has(t) ? $(t, ut) : $(t, at);
503
519
  }
504
520
  function ye(t) {
505
521
  return (e) => we.has(t) ? !!e[t] : Se.has(t) ? Number(e[t]) : be.has(t) ? e[t] : ve.has(t) ? String(e[t]) : e.getAttribute(t);
@@ -522,19 +538,19 @@ class v {
522
538
  * @param namespace - The namespace URI to create the element in, or `undefined` to create a standard HTML element.
523
539
  * @returns The newly created element.
524
540
  */
525
- a(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
541
+ l(this, "createElement", (e, r) => r !== void 0 ? this.document.createElementNS(r, e) : this.document.createElement(e));
526
542
  /**
527
543
  * Creates a new text node with the specified text content.
528
544
  * @param text - The text content for the new text node.
529
545
  * @returns A new `Text` node with the specified text content.
530
546
  */
531
- a(this, "createText", (e) => this.document.createTextNode(e));
547
+ l(this, "createText", (e) => this.document.createTextNode(e));
532
548
  /**
533
549
  * Creates a new `DOMContext` with a reference to a newly created text node.
534
550
  * The text node is appended or inserted to the current `DOMContext`.
535
551
  * The new `DOMContext` with the reference is returned.
536
552
  */
537
- a(this, "makeRef", () => {
553
+ l(this, "makeRef", () => {
538
554
  const e = this.createText("");
539
555
  return this.appendOrInsert(e), this.withReference(e);
540
556
  });
@@ -543,7 +559,7 @@ class v {
543
559
  *
544
560
  * @param child - The child node to append or insert.
545
561
  */
546
- a(this, "appendOrInsert", (e) => {
562
+ l(this, "appendOrInsert", (e) => {
547
563
  this.reference === void 0 ? this.element.appendChild(e) : this.element.insertBefore(e, this.reference);
548
564
  });
549
565
  /**
@@ -552,18 +568,18 @@ class v {
552
568
  * @param document - The `Document` to use for the `DOMContext`.
553
569
  * @returns A new `DOMContext` instance.
554
570
  */
555
- a(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
571
+ l(this, "withDocument", (e) => new v(e, this.element, this.reference, this.providers, !0));
556
572
  /**
557
573
  * Creates a new `DOMContext` instance with the provided `element`.
558
574
  * @param element - The DOM element to use in the new `DOMContext` instance.
559
575
  * @returns A new `DOMContext` instance with the provided `element`.
560
576
  */
561
- a(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
577
+ l(this, "withElement", (e) => new v(this.document, e, void 0, this.providers, !1));
562
578
  /**
563
579
  * Creates a new `DOMContext` instance with the `isFirstLevel` property set to `true`.
564
580
  * @returns A new `DOMContext` instance with the `isFirstLevel` property set to `true`.
565
581
  */
566
- a(this, "withFirstLevel", () => new v(
582
+ l(this, "withFirstLevel", () => new v(
567
583
  this.document,
568
584
  this.element,
569
585
  this.reference,
@@ -576,7 +592,7 @@ class v {
576
592
  * @param reference - The optional `Text` node to use as the reference for the new `DOMContext`.
577
593
  * @returns A new `DOMContext` instance with the specified reference.
578
594
  */
579
- a(this, "withReference", (e) => new v(
595
+ l(this, "withReference", (e) => new v(
580
596
  this.document,
581
597
  this.element,
582
598
  e,
@@ -589,7 +605,7 @@ class v {
589
605
  * @param value - The value to set for the provider.
590
606
  * @returns A new DOMContext with the updated providers.
591
607
  */
592
- a(this, "withProvider", (e, r) => new v(
608
+ l(this, "withProvider", (e, r) => new v(
593
609
  this.document,
594
610
  this.element,
595
611
  this.reference,
@@ -606,7 +622,7 @@ class v {
606
622
  * @param providers - An object containing the providers to be merged into the existing providers.
607
623
  * @returns A new DOMContext instance with the merged providers.
608
624
  */
609
- a(this, "withProviders", (e) => new v(
625
+ l(this, "withProviders", (e) => new v(
610
626
  this.document,
611
627
  this.element,
612
628
  this.reference,
@@ -623,7 +639,7 @@ class v {
623
639
  * @returns The provider for the given mark.
624
640
  * @throws {Error} If the provider for the given mark is not found.
625
641
  */
626
- a(this, "getProvider", (e) => {
642
+ l(this, "getProvider", (e) => {
627
643
  if (this.providers[e] === void 0)
628
644
  throw new Error(`Provider not found: ${e.description}`);
629
645
  return this.providers[e];
@@ -660,7 +676,7 @@ function ct(t, e, r) {
660
676
  if (t.button !== 0 || t.ctrlKey || t.metaKey || s.target !== "_self" && s.target !== "" || s.getAttribute("download") != null)
661
677
  return !0;
662
678
  if (r) {
663
- const { pathname: i, search: o, hash: l } = s, u = i + o + l;
679
+ const { pathname: i, search: o, hash: a } = s, u = i + o + a;
664
680
  if (s.getAttribute("href") !== u || e && !/\/[^/.]*$/.test(i))
665
681
  return !0;
666
682
  }
@@ -692,7 +708,7 @@ const nr = (t, e = {
692
708
  };
693
709
  };
694
710
  function sr(t) {
695
- return d.is(t) ? Pe(t) : Ee(t);
711
+ return h.is(t) ? Pe(t) : Ee(t);
696
712
  }
697
713
  const g = (...t) => (e) => {
698
714
  const r = t.map((n) => f(n)(e));
@@ -712,19 +728,19 @@ const g = (...t) => (e) => {
712
728
  return (i) => {
713
729
  s(), i && n.forEach((o) => r.classList.remove(o)), n.length = 0;
714
730
  };
715
- }, z = (t, e) => {
731
+ }, R = (t, e) => {
716
732
  const r = Ae(t), n = ye(t);
717
733
  return (s) => {
718
- Me(s, t);
734
+ Ce(s, t);
719
735
  const i = n(s.element);
720
736
  return r(s.element, e), (o) => {
721
737
  o && r(s.element, i);
722
738
  };
723
739
  };
724
- }, q = (t, e) => {
740
+ }, I = (t, e) => {
725
741
  const r = Ae(t), n = ye(t);
726
742
  return (s) => {
727
- Me(s, t);
743
+ Ce(s, t);
728
744
  const i = n(s.element);
729
745
  return e.on((o) => r(s.element, o)), (o) => {
730
746
  o && r(s.element, i);
@@ -733,12 +749,12 @@ const g = (...t) => (e) => {
733
749
  }, P = new Proxy(
734
750
  {},
735
751
  {
736
- get: (t, e) => e === "class" ? (r) => d.is(r) ? ht(r) : ft(
752
+ get: (t, e) => e === "class" ? (r) => h.is(r) ? ht(r) : ft(
737
753
  (r ?? "").split(" ").filter((n) => n.length > 0)
738
- ) : (r) => d.is(r) ? q(
754
+ ) : (r) => h.is(r) ? I(
739
755
  e,
740
756
  r
741
- ) : z(
757
+ ) : R(
742
758
  e,
743
759
  r
744
760
  )
@@ -746,44 +762,52 @@ const g = (...t) => (e) => {
746
762
  ), ir = new Proxy(
747
763
  {},
748
764
  {
749
- get: (t, e) => (r) => d.is(r) ? q(
765
+ get: (t, e) => (r) => h.is(r) ? I(
766
+ `data-${e}`,
767
+ r
768
+ ) : R(`data-${e}`, r)
769
+ }
770
+ ), or = new Proxy(
771
+ {},
772
+ {
773
+ get: (t, e) => (r) => h.is(r) ? I(
750
774
  `aria-${e}`,
751
775
  r
752
- ) : z(
776
+ ) : R(
753
777
  `aria-${e}`,
754
778
  r
755
779
  )
756
780
  }
757
- ), or = new Proxy(
781
+ ), ur = new Proxy(
758
782
  {},
759
783
  {
760
- get: (t, e) => (r) => d.is(r) ? q(
784
+ get: (t, e) => (r) => h.is(r) ? I(
761
785
  e,
762
786
  r
763
- ) : z(
787
+ ) : R(
764
788
  e,
765
789
  r
766
790
  )
767
791
  }
768
- ), ur = new Proxy(
792
+ ), ar = new Proxy(
769
793
  {},
770
794
  {
771
- get: (t, e) => (r) => d.is(r) ? q(
795
+ get: (t, e) => (r) => h.is(r) ? I(
772
796
  e,
773
797
  r
774
- ) : z(
798
+ ) : R(
775
799
  e,
776
800
  r
777
801
  )
778
802
  }
779
803
  );
780
804
  function f(t) {
781
- return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : d.is(t) ? Pe(t) : t;
805
+ return t == null ? w : Array.isArray(t) ? g(...t.map(f)) : typeof t == "string" ? Ee(t) : h.is(t) ? Pe(t) : t;
782
806
  }
783
807
  function Te(t, ...e) {
784
808
  return (r) => {
785
809
  const n = r.createElement(t, void 0);
786
- r.isFirstLevel && D.isSSR() && $e(n), r.appendOrInsert(n), r = r.withElement(n);
810
+ r.isFirstLevel && D.isSSR() && Me(n), r.appendOrInsert(n), r = r.withElement(n);
787
811
  const s = e.map((i) => f(i)(r));
788
812
  return (i) => {
789
813
  s.forEach((o) => o(!1)), i && S(n);
@@ -793,81 +817,81 @@ function Te(t, ...e) {
793
817
  function De(t, e, ...r) {
794
818
  return (n) => {
795
819
  const s = n.createElement(t, e);
796
- n.isFirstLevel && D.isSSR() && $e(s), n.appendOrInsert(s), n = n.withElement(s);
820
+ n.isFirstLevel && D.isSSR() && Me(s), n.appendOrInsert(s), n = n.withElement(s);
797
821
  const i = r.map((o) => f(o)(n));
798
822
  return (o) => {
799
- i.forEach((l) => l(!1)), o && S(s);
823
+ i.forEach((a) => a(!1)), o && S(s);
800
824
  };
801
825
  };
802
826
  }
803
- const ar = new Proxy(
827
+ const lr = new Proxy(
804
828
  {},
805
829
  {
806
830
  get: (t, e) => (...r) => Te(e, r.flatMap(f))
807
831
  }
808
- ), lr = new Proxy(
832
+ ), cr = new Proxy(
809
833
  {},
810
834
  {
811
835
  get: (t, e) => (...r) => Te("input", P.type(e), ...r)
812
836
  }
813
- ), dt = "http://www.w3.org/2000/svg", cr = new Proxy(
837
+ ), dt = "http://www.w3.org/2000/svg", fr = new Proxy(
814
838
  {},
815
839
  {
816
840
  get: (t, e) => (...r) => De(e, dt, r.flatMap(f))
817
841
  }
818
- ), pt = "http://www.w3.org/1998/Math/MathML", fr = new Proxy(
842
+ ), pt = "http://www.w3.org/1998/Math/MathML", hr = new Proxy(
819
843
  {},
820
844
  {
821
845
  get: (t, e) => (...r) => De(e, pt, r.flatMap(f))
822
846
  }
823
- ), M = "data-tempo-attr", x = "data-tempo-class", Ce = "data-tempo-node", W = "data-tempo-text";
847
+ ), C = "data-tempo-attr", F = "data-tempo-class", $e = "data-tempo-node", V = "data-tempo-text";
824
848
  function mt(t, e) {
825
849
  const r = t.getAttribute(e);
826
850
  if (r != null) {
827
- const n = t.getAttribute(M) ?? "{}", s = { ...JSON.parse(n), name: r };
828
- t.setAttribute(M, JSON.stringify(s));
851
+ const n = t.getAttribute(C) ?? "{}", s = { ...JSON.parse(n), name: r };
852
+ t.setAttribute(C, JSON.stringify(s));
829
853
  }
830
854
  }
831
- function Me(t, e) {
855
+ function Ce(t, e) {
832
856
  D.isSSR() && t.isFirstLevel && mt(t.element, e);
833
857
  }
834
858
  function gt(t) {
835
- t.querySelectorAll(`[${M}]`).forEach((e) => {
836
- const r = JSON.parse(e.getAttribute(M) ?? "{}");
859
+ t.querySelectorAll(`[${C}]`).forEach((e) => {
860
+ const r = JSON.parse(e.getAttribute(C) ?? "{}");
837
861
  for (const [n, s] of Object.entries(r))
838
862
  e.setAttribute(n, s);
839
- e.removeAttribute(M);
863
+ e.removeAttribute(C);
840
864
  });
841
865
  }
842
866
  function wt(t) {
843
- t.setAttribute(x, t.className);
867
+ t.setAttribute(F, t.className);
844
868
  }
845
869
  function Ne(t) {
846
870
  D.isSSR() && t.isFirstLevel && wt(t.element);
847
871
  }
848
872
  function St(t) {
849
- t.querySelectorAll(`[${x}]`).forEach((e) => {
850
- const r = e.getAttribute(x);
851
- r !== null && (e.className = r, e.removeAttribute(x));
873
+ t.querySelectorAll(`[${F}]`).forEach((e) => {
874
+ const r = e.getAttribute(F);
875
+ r !== null && (e.className = r, e.removeAttribute(F));
852
876
  });
853
877
  }
854
- function $e(t) {
855
- t.setAttribute(Ce, "");
878
+ function Me(t) {
879
+ t.setAttribute($e, "");
856
880
  }
857
881
  function bt(t) {
858
- t.querySelectorAll(`[${Ce}]`).forEach((e) => {
882
+ t.querySelectorAll(`[${$e}]`).forEach((e) => {
859
883
  S(e);
860
884
  });
861
885
  }
862
886
  function vt(t) {
863
- t.setAttribute(W, t.textContent ?? "");
887
+ t.setAttribute(V, t.textContent ?? "");
864
888
  }
865
889
  function Le(t) {
866
890
  D.isSSR() && t.isFirstLevel && vt(t.element);
867
891
  }
868
892
  function At(t) {
869
- t.querySelectorAll(`[${W}]`).forEach((e) => {
870
- e.textContent = e.getAttribute(W), e.removeAttribute(W);
893
+ t.querySelectorAll(`[${V}]`).forEach((e) => {
894
+ e.textContent = e.getAttribute(V), e.removeAttribute(V);
871
895
  });
872
896
  }
873
897
  function yt(t) {
@@ -902,7 +926,7 @@ function Et() {
902
926
  function Pt() {
903
927
  k("counter", (B() ?? 0) - 1);
904
928
  }
905
- const hr = (t = 30) => (K(!0), new Promise((e, r) => {
929
+ const dr = (t = 30) => (K(!0), new Promise((e, r) => {
906
930
  let n;
907
931
  const s = setInterval(() => {
908
932
  B() <= 0 && (clearInterval(s), clearTimeout(n), K(!1), e());
@@ -921,21 +945,21 @@ const hr = (t = 30) => (K(!0), new Promise((e, r) => {
921
945
  return s[i] = o, s;
922
946
  }, {});
923
947
  return f(e(n))(r);
924
- }, dr = (t, e) => (r) => {
948
+ }, pr = (t, e) => (r) => {
925
949
  const n = [], s = Object.entries(t).reduce(
926
- (i, [o, l]) => (n.push(
927
- l((u) => (Reflect.set(i, o, u), null))(r)
950
+ (i, [o, a]) => (n.push(
951
+ a((u) => (Reflect.set(i, o, u), null))(r)
928
952
  ), i),
929
953
  {}
930
954
  );
931
955
  return n.push(e(s)(r)), (i) => {
932
956
  n.forEach((o) => o(i));
933
957
  };
934
- }, Tt = (t, e) => Oe([t], (r) => f(e(r[t]))), pr = (t, e) => Oe(t, (r) => f(e(r))), $ = (t) => (e) => (r) => t(r, e);
958
+ }, Tt = (t, e) => Oe([t], (r) => f(e(r[t]))), mr = (t, e) => Oe(t, (r) => f(e(r))), M = (t) => (e) => (r) => t(r, e);
935
959
  function Dt(t) {
936
960
  return Symbol(t);
937
961
  }
938
- const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, Ct = (t, e, r) => xe({ [t]: e }, f(r)), gr = (t, e) => xe(t, f(e)), ue = Dt("Appearance"), wr = {
962
+ const xe = (t, e) => (r) => f(e)(r.withProviders(t)), gr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (n) => e(r(n))) : f, $t = (t, e, r) => xe({ [t]: e }, f(r)), wr = (t, e) => xe(t, f(e)), ue = Dt("Appearance"), Sr = {
939
963
  /**
940
964
  * Provides a child component with an appearance context, which can be used to
941
965
  * determine the current appearance (light or dark) based on the user's system
@@ -952,16 +976,16 @@ const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length >
952
976
  r.set(i.matches ? "dark" : "light");
953
977
  }, s = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
954
978
  return s == null || s.addEventListener("change", n), g(
955
- Ct(ue, r, t),
956
- $(() => s == null ? void 0 : s.removeEventListener("change", n))
979
+ $t(ue, r, t),
980
+ M(() => s == null ? void 0 : s.removeEventListener("change", n))
957
981
  );
958
982
  },
959
983
  /**
960
984
  * Makes the AppearanceType available to the child component by consuming the signal provided by the parent.
961
985
  * The result of the function is returned as the final output.
962
986
  *
963
- * @param fn - A function that accepts the `AppearanceType` signal and returns a `Child` element.
964
- * @returns The `Child` element returned by the provided function.
987
+ * @param fn - A function that accepts the `AppearanceType` signal and returns a `TNode` element.
988
+ * @returns The `TNode` element returned by the provided function.
965
989
  */
966
990
  consume: (t) => Tt(ue, t)
967
991
  }, We = (t, e) => {
@@ -970,10 +994,10 @@ const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length >
970
994
  const r = e.pending != null ? f(e.pending) : w, n = e.then, s = e.error != null ? (i) => f(e.error(i)) : () => w;
971
995
  return (i) => {
972
996
  let o = !0;
973
- const l = t();
997
+ const a = t();
974
998
  i = i.makeRef();
975
999
  let u = f(r)(i);
976
- return l.then(
1000
+ return a.then(
977
1001
  (c) => {
978
1002
  o && (u(!0), u = f(n(c))(i));
979
1003
  },
@@ -984,13 +1008,13 @@ const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length >
984
1008
  o = !1, u(c), c && i.reference && S(i.reference);
985
1009
  };
986
1010
  };
987
- }, Sr = (t, e) => We(() => t, e), br = (t = 10) => (e) => {
1011
+ }, br = (t, e) => We(() => t, e), vr = (t = 10) => (e) => {
988
1012
  const r = setTimeout(() => {
989
1013
  var n;
990
1014
  (n = e.element) == null || n.focus();
991
1015
  }, t);
992
1016
  return (n) => clearTimeout(r);
993
- }, vr = (t = 10) => (e) => {
1017
+ }, Ar = (t = 10) => (e) => {
994
1018
  const r = setTimeout(() => {
995
1019
  var n;
996
1020
  (n = e.element) == null || n.select();
@@ -1000,7 +1024,7 @@ const xe = (t, e) => (r) => f(e)(r.withProviders(t)), mr = (...t) => t.length >
1000
1024
  };
1001
1025
  }, Fe = (t, e) => (r) => (r.element.addEventListener(t, e), (n) => {
1002
1026
  n && r.element.removeEventListener(t, e);
1003
- }), Mt = (t) => Fe("click", (e) => {
1027
+ }), Ct = (t) => Fe("click", (e) => {
1004
1028
  e.preventDefault();
1005
1029
  const r = e.target;
1006
1030
  setTimeout(() => {
@@ -1063,7 +1087,7 @@ function Nt(t, e = "input") {
1063
1087
  Z[e](X.valueAsDate(t.set))
1064
1088
  );
1065
1089
  }
1066
- function $t(t, e = "input") {
1090
+ function Mt(t, e = "input") {
1067
1091
  return g(
1068
1092
  P.valueAsDate(t),
1069
1093
  Z[e](X.valueAsDateTime(t.set))
@@ -1079,20 +1103,20 @@ function Rt(t, e = "input") {
1079
1103
  return g(P.value(t), Z[e](X.value(t.set)));
1080
1104
  }
1081
1105
  function It(t) {
1082
- return g(P.checked(t), Mt(t.set));
1106
+ return g(P.checked(t), Ct(t.set));
1083
1107
  }
1084
- const Ar = {
1108
+ const yr = {
1085
1109
  date: Nt,
1086
- dateTime: $t,
1110
+ dateTime: Mt,
1087
1111
  number: Lt,
1088
1112
  text: Rt,
1089
1113
  checked: It
1090
- }, I = (t, e) => (r) => {
1114
+ }, x = (t, e) => (r) => {
1091
1115
  r = r.makeRef();
1092
1116
  let n, s;
1093
1117
  const i = t.map((u) => Object.keys(u)[0]);
1094
1118
  let o;
1095
- const l = i.on((u) => {
1119
+ const a = i.on((u) => {
1096
1120
  if (u !== o) {
1097
1121
  s == null || s.dispose(), n == null || n(!0), s = t.map((p) => p[u]);
1098
1122
  const c = e[u](s);
@@ -1100,14 +1124,14 @@ const Ar = {
1100
1124
  }
1101
1125
  });
1102
1126
  return (u) => {
1103
- l(), u && r.reference != null && S(r.reference), n == null || n(!0);
1127
+ a(), u && r.reference != null && S(r.reference), n == null || n(!0);
1104
1128
  };
1105
1129
  }, L = {
1106
- bool: (t, e) => I(
1130
+ bool: (t, e) => x(
1107
1131
  t.map((r) => r ? { true: !0 } : { false: !0 }),
1108
1132
  e
1109
1133
  ),
1110
- field: (t, e, r) => I(
1134
+ field: (t, e, r) => x(
1111
1135
  t.map((n) => ({ [n[e]]: n })),
1112
1136
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1113
1137
  r
@@ -1115,14 +1139,14 @@ const Ar = {
1115
1139
  kind: (t, e) => L.field(t, "kind", e),
1116
1140
  tuple: (t, e) => {
1117
1141
  const r = t.map(([n, s]) => ({ [n]: s }));
1118
- return I(r, e);
1142
+ return x(r, e);
1119
1143
  },
1120
1144
  type: (t, e) => L.field(t, "type", e),
1121
- value: (t, e) => I(
1145
+ value: (t, e) => x(
1122
1146
  t.map((r) => ({ [r]: !0 })),
1123
1147
  e
1124
1148
  )
1125
- }, yr = (t, e) => (r) => {
1149
+ }, _r = (t, e) => (r) => {
1126
1150
  const n = (e == null ? void 0 : e.firstSeparator) ?? w, s = (e == null ? void 0 : e.lastSeparator) ?? w;
1127
1151
  return L.value(
1128
1152
  r.map((i) => i.isFirst ? "first" : i.isLast ? "last" : "other"),
@@ -1132,21 +1156,21 @@ const Ar = {
1132
1156
  other: () => t
1133
1157
  }
1134
1158
  );
1135
- }, _r = (t) => (e) => t(e)(e), Er = (t) => (e) => (e.appendOrInsert(t), (r) => {
1159
+ }, Er = (t) => (e) => t(e)(e), Pr = (t) => (e) => (e.appendOrInsert(t), (r) => {
1136
1160
  r && S(t);
1137
1161
  }), Ot = (t, e, r) => (n) => {
1138
1162
  n = n.makeRef();
1139
1163
  let s = null, i = !1;
1140
- const o = A(null), l = t.on((u) => {
1164
+ const o = A(null), a = t.on((u) => {
1141
1165
  u == null ? (s == null || s(!0), s = f((r == null ? void 0 : r()) ?? w)(n), i = !1) : (o.value = u, i || (s == null || s(!0), s = f(e(o))(n), i = !0));
1142
1166
  });
1143
1167
  return (u) => {
1144
- l(), s == null || s(u), u && n.reference && S(n.reference);
1168
+ a(), s == null || s(u), u && n.reference && S(n.reference);
1145
1169
  };
1146
1170
  }, Ve = (t, e, r) => r != null ? Ve(t, (n) => {
1147
1171
  const s = n.map((i) => i.isLast ? "last" : "other");
1148
1172
  return g(
1149
- $(() => s.dispose()),
1173
+ M(() => s.dispose()),
1150
1174
  f(e(n)),
1151
1175
  L.value(s, {
1152
1176
  last: () => w,
@@ -1159,26 +1183,26 @@ const Ar = {
1159
1183
  (u) => Array.from({ length: u }, (c, p) => p).map(
1160
1184
  (c) => new ke(c, u)
1161
1185
  )
1162
- ), i = [], o = [], l = s.on((u) => {
1186
+ ), i = [], o = [], a = s.on((u) => {
1163
1187
  var p, m;
1164
1188
  const c = u.length;
1165
1189
  for (; c < i.length; )
1166
1190
  (p = i.pop()) == null || p(!0), (m = o.pop()) == null || m.dispose();
1167
- for (let h = 0; h < c; h++)
1168
- if (o[h] == null) {
1169
- o[h] = A(u[h]);
1170
- const E = f(e(o[h]));
1171
- i[h] = E(n);
1191
+ for (let d = 0; d < c; d++)
1192
+ if (o[d] == null) {
1193
+ o[d] = A(u[d]);
1194
+ const E = f(e(o[d]));
1195
+ i[d] = E(n);
1172
1196
  } else
1173
- o[h].value = u[h];
1197
+ o[d].value = u[d];
1174
1198
  });
1175
1199
  return (u) => {
1176
- l(), u && n.reference && S(n.reference);
1200
+ a(), u && n.reference && S(n.reference);
1177
1201
  };
1178
1202
  }, xt = (t, e, r) => r != null ? xt(t, (n, s) => {
1179
1203
  const i = s.map((o) => o.isLast ? "last" : "other");
1180
1204
  return g([
1181
- $(() => i.dispose()),
1205
+ M(() => i.dispose()),
1182
1206
  f(e(n, s)),
1183
1207
  L.value(i, {
1184
1208
  last: () => w,
@@ -1193,11 +1217,11 @@ const Ar = {
1193
1217
  [i, t]
1194
1218
  );
1195
1219
  return g(
1196
- $(() => o.dispose()),
1220
+ M(() => o.dispose()),
1197
1221
  f(e(o, i))
1198
1222
  );
1199
1223
  })(n);
1200
- }, Pr = (t) => {
1224
+ }, Tr = (t) => {
1201
1225
  const e = t.element, r = e.style.getPropertyValue(":empty");
1202
1226
  return e.style.setProperty(":empty", "display:none"), (n) => {
1203
1227
  n && e.style.setProperty(":empty", r);
@@ -1207,13 +1231,13 @@ function ze(t, e) {
1207
1231
  const r = t(e);
1208
1232
  return () => r(!0);
1209
1233
  }
1210
- function Tr(t, e, { doc: r, clear: n } = {}) {
1234
+ function Dr(t, e, { doc: r, clear: n } = {}) {
1211
1235
  const s = typeof e == "string" ? (r ?? document).querySelector(e) : e;
1212
1236
  if (s === null)
1213
1237
  throw new Error(`Cannot find element by selector for render: ${e}`);
1214
1238
  n && (r ?? s.ownerDocument) != null && yt(r ?? s.ownerDocument);
1215
- const i = lt(s), o = _e(s) ? void 0 : s, l = v.of(i, o);
1216
- return ze(t, l);
1239
+ const i = lt(s), o = _e(s) ? void 0 : s, a = v.of(i, o);
1240
+ return ze(t, a);
1217
1241
  }
1218
1242
  const Wt = (t, e) => (r) => {
1219
1243
  const n = r.document.querySelector(t);
@@ -1223,7 +1247,7 @@ const Wt = (t, e) => (r) => {
1223
1247
  f(e),
1224
1248
  r.withElement(n).withFirstLevel()
1225
1249
  );
1226
- }, Dr = (t) => Wt("head title", P.innerText(t)), Ft = (t) => (e) => t(e.element) ?? (() => {
1250
+ }, $r = (t) => Wt("head title", P.innerText(t)), Ft = (t) => (e) => t(e.element) ?? (() => {
1227
1251
  }), G = (t, e, r) => Ot(
1228
1252
  t.map((n) => n ? !0 : null),
1229
1253
  () => e,
@@ -1243,7 +1267,7 @@ const Wt = (t, e) => (r) => {
1243
1267
  rootMargin: "0px",
1244
1268
  threshold: 1
1245
1269
  }
1246
- }, F = {
1270
+ }, z = {
1247
1271
  partial: /* @__PURE__ */ new Map(),
1248
1272
  full: /* @__PURE__ */ new Map()
1249
1273
  }, N = {
@@ -1253,7 +1277,7 @@ const Wt = (t, e) => (r) => {
1253
1277
  function zt(t) {
1254
1278
  return N[t] == null && (N[t] = new IntersectionObserver((e) => {
1255
1279
  e.forEach((r) => {
1256
- const n = F[t].get(r.target);
1280
+ const n = z[t].get(r.target);
1257
1281
  n == null || n.set(r.isIntersecting);
1258
1282
  });
1259
1283
  }, Vt[t])), N[t];
@@ -1263,16 +1287,16 @@ function qt(t, e) {
1263
1287
  return g(
1264
1288
  Ft((n) => {
1265
1289
  const s = typeof IntersectionObserver < "u" ? zt(t) : null;
1266
- return F[t].set(n, r), s == null || s.observe(n), () => {
1290
+ return z[t].set(n, r), s == null || s.observe(n), () => {
1267
1291
  var i;
1268
- s == null || s.unobserve(n), F[t].delete(n), F[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
1292
+ s == null || s.unobserve(n), z[t].delete(n), z[t].size === 0 && ((i = N[t]) == null || i.disconnect(), N[t] = null);
1269
1293
  };
1270
1294
  }),
1271
- $(r.dispose),
1295
+ M(r.dispose),
1272
1296
  f(e(r))
1273
1297
  );
1274
1298
  }
1275
- const Mr = (t, e, r) => qt(t, (n) => G(n, e, r ?? w)), Nr = (t, e) => (r) => {
1299
+ const Nr = (t, e, r) => qt(t, (n) => G(n, e, r ?? w)), Mr = (t, e) => (r) => {
1276
1300
  r = r.makeRef();
1277
1301
  const n = t.map((o) => f(e(o)));
1278
1302
  let s = () => {
@@ -1284,7 +1308,7 @@ const Mr = (t, e, r) => qt(t, (n) => G(n, e, r ?? w)), Nr = (t, e) => (r) => {
1284
1308
  i(), s(o);
1285
1309
  };
1286
1310
  };
1287
- function $r(t, e, r = w) {
1311
+ function Lr(t, e, r = w) {
1288
1312
  return G(
1289
1313
  t.map((n) => n.length > 0),
1290
1314
  e,
@@ -1296,8 +1320,8 @@ const Zt = (t) => (e) => {
1296
1320
  n.set({ width: r.clientWidth, height: r.clientHeight });
1297
1321
  };
1298
1322
  let o;
1299
- return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (l) => {
1300
- o == null || o.disconnect(), s(l);
1323
+ return typeof ResizeObserver == "function" && (o = new ResizeObserver(i), o.observe(r)), (a) => {
1324
+ o == null || o.disconnect(), s(a);
1301
1325
  };
1302
1326
  }, Xt = (t) => (e) => {
1303
1327
  const r = A({
@@ -1312,7 +1336,7 @@ const Zt = (t) => (e) => {
1312
1336
  return window == null || window.addEventListener("resize", s), (i) => {
1313
1337
  window == null || window.removeEventListener("resize", s), n(i);
1314
1338
  };
1315
- }, Lr = {
1339
+ }, Rr = {
1316
1340
  element: Zt,
1317
1341
  window: Xt
1318
1342
  }, Yt = (t, e) => (r) => {
@@ -1325,69 +1349,70 @@ const Zt = (t) => (e) => {
1325
1349
  return e.on((i) => n.style.setProperty(t, i)), (i) => {
1326
1350
  i && n.style.setProperty(t, s);
1327
1351
  };
1328
- }, Rr = new Proxy(
1352
+ }, Ir = new Proxy(
1329
1353
  {},
1330
1354
  {
1331
- get: (t, e) => (r) => d.is(r) ? jt(e, r) : Yt(e, r)
1355
+ get: (t, e) => (r) => h.is(r) ? jt(e, r) : Yt(e, r)
1332
1356
  }
1333
1357
  );
1334
1358
  export {
1335
- Sr as Async,
1336
- br as AutoFocus,
1337
- vr as AutoSelect,
1359
+ br as Async,
1360
+ vr as AutoFocus,
1361
+ Ar as AutoSelect,
1338
1362
  T as Computed,
1339
- yr as Conjunction,
1340
- _r as Ctx,
1363
+ _r as Conjunction,
1364
+ Er as Ctx,
1341
1365
  v as DOMContext,
1342
- Er as DOMEl,
1366
+ Pr as DOMEl,
1343
1367
  Te as El,
1344
1368
  De as ElNS,
1345
1369
  w as Empty,
1346
1370
  Ot as Ensure,
1347
1371
  xt as ForEach,
1348
1372
  g as Fragment,
1349
- Dr as HTMLTitle,
1350
- Pr as HiddenWhenEmpty,
1373
+ $r as HTMLTitle,
1374
+ Tr as HiddenWhenEmpty,
1351
1375
  qt as InViewport,
1352
- Nr as MapSignal,
1376
+ Mr as MapSignal,
1353
1377
  de as MemoryStore,
1354
- $r as NotEmpty,
1355
- Mt as OnChecked,
1356
- $ as OnDispose,
1378
+ Lr as NotEmpty,
1379
+ Ct as OnChecked,
1380
+ M as OnDispose,
1357
1381
  Ft as OnMount,
1358
1382
  Wt as Portal,
1359
1383
  ke as Position,
1360
- V as Prop,
1361
- mr as Provide,
1384
+ q as Prop,
1385
+ gr as Provide,
1362
1386
  Ve as Repeat,
1363
- d as Signal,
1387
+ h as Signal,
1364
1388
  We as Task,
1365
1389
  sr as Text,
1366
1390
  Cr as Unless,
1367
- dr as Use,
1391
+ pr as Use,
1368
1392
  Tt as UseProvider,
1369
- pr as UseProviders,
1393
+ mr as UseProviders,
1370
1394
  G as When,
1371
- Mr as WhenInViewport,
1372
- Ct as WithProvider,
1373
- gr as WithProviders,
1374
- $e as addNodeTracker,
1395
+ Nr as WhenInViewport,
1396
+ $t as WithProvider,
1397
+ wr as WithProviders,
1398
+ Me as addNodeTracker,
1375
1399
  Ge as animate,
1376
1400
  Gt as animateOne,
1377
- wr as appearance,
1401
+ Sr as appearance,
1378
1402
  ue as appearanceMarker,
1379
1403
  rr as applyAnimatable,
1380
- O as applyAnimatableProp,
1404
+ W as applyAnimatableProp,
1381
1405
  tr as applyInterpolatedAnimatable,
1382
1406
  nt as applyInterpolatedAnimatableProp,
1383
- ir as aria,
1407
+ or as aria,
1384
1408
  P as attr,
1385
- Ar as bind,
1386
- f as childToMountable,
1409
+ yr as bind,
1410
+ f as childToRenderable,
1387
1411
  yt as clearSSR,
1388
1412
  Qe as colorChannelsToString,
1389
1413
  U as computed,
1390
1414
  Jt as computedRecord,
1415
+ ir as dataAttr,
1391
1416
  He as dateInterpolate,
1392
1417
  Kt as effect,
1393
1418
  X as emit,
@@ -1397,17 +1422,17 @@ export {
1397
1422
  lt as getSelfOrParentElement,
1398
1423
  Ue as guessInterpolate,
1399
1424
  nr as handleAnchorClick,
1400
- ar as html,
1401
- lr as input,
1425
+ lr as html,
1426
+ cr as input,
1402
1427
  et as interpolateColor,
1403
1428
  Qt as interpolateShadow,
1404
1429
  _e as isElement,
1405
1430
  ye as makeGetter,
1406
1431
  Dt as makeProviderMark,
1407
1432
  Ae as makeSetter,
1408
- fr as math,
1409
- ur as mathAttr,
1410
- Me as maybeAddAttributeTracker,
1433
+ hr as math,
1434
+ ar as mathAttr,
1435
+ Ce as maybeAddAttributeTracker,
1411
1436
  Ne as maybeAddClassTracker,
1412
1437
  Le as maybeAddTextTracker,
1413
1438
  Ye as numberInterpolate,
@@ -1423,7 +1448,7 @@ export {
1423
1448
  S as removeDOMNode,
1424
1449
  bt as removeNodeTrackers,
1425
1450
  At as removeTextTrackers,
1426
- Tr as render,
1451
+ Dr as render,
1427
1452
  ze as renderWithContext,
1428
1453
  at as setAttribute,
1429
1454
  st as setBooleanProperty,
@@ -1432,12 +1457,12 @@ export {
1432
1457
  ut as setStringProperty,
1433
1458
  Ut as signal,
1434
1459
  Pe as signalText,
1435
- Lr as size,
1460
+ Rr as size,
1436
1461
  D as ssr,
1437
- hr as startSSR,
1462
+ dr as startSSR,
1438
1463
  Ee as staticText,
1439
1464
  je as stringInterpolate,
1440
- Rr as style,
1441
- cr as svg,
1442
- or as svgAttr
1465
+ Ir as style,
1466
+ fr as svg,
1467
+ ur as svgAttr
1443
1468
  };