@tempots/dom 19.3.1 → 20.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.
- package/dom/dom-context.d.ts +0 -1
- package/dom/ssr.d.ts +0 -1
- package/index.cjs +1 -1
- package/index.d.ts +0 -1
- package/index.js +274 -310
- package/package.json +1 -1
- package/renderable/async.d.ts +0 -1
- package/renderable/attribute.d.ts +0 -1
- package/renderable/bind.d.ts +0 -1
- package/renderable/conjunction.d.ts +0 -1
- package/renderable/consumers.d.ts +0 -1
- package/renderable/domnode.d.ts +0 -1
- package/renderable/element.d.ts +0 -1
- package/renderable/empty.d.ts +0 -1
- package/renderable/ensure.d.ts +0 -1
- package/renderable/foreach.d.ts +0 -1
- package/renderable/fragment.d.ts +0 -1
- package/renderable/handler.d.ts +0 -1
- package/renderable/map-signal.d.ts +0 -1
- package/renderable/not-empty.d.ts +0 -1
- package/renderable/onctx.d.ts +0 -1
- package/renderable/oneof.d.ts +0 -1
- package/renderable/onmount.d.ts +0 -1
- package/renderable/onunmount.d.ts +0 -1
- package/renderable/portal.d.ts +0 -1
- package/renderable/providers.d.ts +0 -1
- package/renderable/render.d.ts +0 -1
- package/renderable/repeat.d.ts +0 -1
- package/renderable/style.d.ts +0 -1
- package/renderable/task.d.ts +0 -1
- package/renderable/text.d.ts +0 -1
- package/renderable/when.d.ts +0 -1
- package/std/signal-utils.d.ts +0 -1
- package/std/signal.d.ts +6 -3
- package/types/domain.d.ts +0 -1
- package/dom/animatable.d.ts +0 -79
- package/dom/handle-anchor-click.d.ts +0 -25
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var De = Object.defineProperty;
|
|
|
2
2
|
var be = (t, e, r) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var l = (t, e, r) => be(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
const Te = (t, e, r) => t + (e - t) * r;
|
|
5
|
-
const
|
|
5
|
+
const Le = (t, e, r) => {
|
|
6
6
|
const s = Math.max(t.length, e.length);
|
|
7
7
|
let n = "";
|
|
8
8
|
for (let o = 0; o < s; o++) {
|
|
@@ -12,7 +12,7 @@ const Ce = (t, e, r) => {
|
|
|
12
12
|
isNaN(a) && (a = 97), n += String.fromCharCode(i + (a - i) * r);
|
|
13
13
|
}
|
|
14
14
|
return n;
|
|
15
|
-
},
|
|
15
|
+
}, Ce = (t, e, r) => new Date(t.getTime() + (e.getTime() - t.getTime()) * r), Ne = (t, e) => e, Oe = (t) => typeof t == "number" ? Te : typeof t == "string" ? Le : t instanceof Date ? Ce : Ne;
|
|
16
16
|
class ke {
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new instance of `ElementPosition`.
|
|
@@ -146,7 +146,7 @@ const p = class p {
|
|
|
146
146
|
* @returns - A new Computed instance with the mapped value.
|
|
147
147
|
*/
|
|
148
148
|
l(this, "map", (e, r = (s, n) => s === n) => {
|
|
149
|
-
const s = new
|
|
149
|
+
const s = new E(() => {
|
|
150
150
|
try {
|
|
151
151
|
return e(this.get());
|
|
152
152
|
} catch (n) {
|
|
@@ -166,7 +166,7 @@ const p = class p {
|
|
|
166
166
|
* @returns A new Signal that emits the values of the resulting Signal.
|
|
167
167
|
*/
|
|
168
168
|
l(this, "flatMap", (e, r = (s, n) => s === n) => {
|
|
169
|
-
const s = new
|
|
169
|
+
const s = new E(() => {
|
|
170
170
|
try {
|
|
171
171
|
return e(this.get()).get();
|
|
172
172
|
} catch (n) {
|
|
@@ -190,21 +190,12 @@ const p = class p {
|
|
|
190
190
|
*/
|
|
191
191
|
l(this, "at", (e) => this.map((r) => r[e]));
|
|
192
192
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @typeParam T - The type of the signals.
|
|
193
|
+
* @internal
|
|
195
194
|
*/
|
|
196
|
-
l(this, "$"
|
|
197
|
-
/**
|
|
198
|
-
* Retrieves the signal with the specified key.
|
|
199
|
-
* @param _ - The target object.
|
|
200
|
-
* @param key - The key of the signal.
|
|
201
|
-
* @returns The signal associated with the key.
|
|
202
|
-
*/
|
|
203
|
-
get: (e, r) => this.at(r)
|
|
204
|
-
}));
|
|
195
|
+
l(this, "_$");
|
|
205
196
|
l(this, "filter", (e, r) => {
|
|
206
197
|
let s = r ?? this.get();
|
|
207
|
-
const n = new
|
|
198
|
+
const n = new E(() => {
|
|
208
199
|
try {
|
|
209
200
|
const o = this.get();
|
|
210
201
|
return s = e(o) ? o : s;
|
|
@@ -226,7 +217,7 @@ const p = class p {
|
|
|
226
217
|
*/
|
|
227
218
|
l(this, "filterMap", (e, r, s = (n, o) => n === o) => {
|
|
228
219
|
let n = r;
|
|
229
|
-
const o = new
|
|
220
|
+
const o = new E(() => {
|
|
230
221
|
try {
|
|
231
222
|
const i = this.get(), a = e(i);
|
|
232
223
|
return n = a ?? n;
|
|
@@ -250,17 +241,17 @@ const p = class p {
|
|
|
250
241
|
* @returns A property that holds the mapped value and can be observed for changes.
|
|
251
242
|
*/
|
|
252
243
|
l(this, "mapAsync", (e, r, s, n = (o, i) => o === i) => {
|
|
253
|
-
const o =
|
|
244
|
+
const o = L(r, n);
|
|
254
245
|
let i = 0, a = new AbortController();
|
|
255
246
|
return o.onDispose(
|
|
256
247
|
this.on(async (u) => {
|
|
257
|
-
const
|
|
248
|
+
const f = ++i;
|
|
258
249
|
a.abort(), a = new AbortController();
|
|
259
250
|
try {
|
|
260
251
|
const d = await e(u, { abortSignal: a.signal });
|
|
261
|
-
|
|
252
|
+
f === i && o.set(d);
|
|
262
253
|
} catch (d) {
|
|
263
|
-
if (
|
|
254
|
+
if (f === i)
|
|
264
255
|
if (s != null)
|
|
265
256
|
o.set(s(d));
|
|
266
257
|
else
|
|
@@ -295,7 +286,7 @@ const p = class p {
|
|
|
295
286
|
* @param autoDisposeProp - Determines whether the derived property should be automatically disposed.
|
|
296
287
|
* @returns The derived property.
|
|
297
288
|
*/
|
|
298
|
-
l(this, "deriveProp", (e = !0) => this.feedProp(
|
|
289
|
+
l(this, "deriveProp", (e = !0) => this.feedProp(L(this.get()), e));
|
|
299
290
|
/**
|
|
300
291
|
* Returns a signal that emits the count of values received so far.
|
|
301
292
|
* @returns A signal that emits the count of values received so far.
|
|
@@ -327,6 +318,15 @@ const p = class p {
|
|
|
327
318
|
get value() {
|
|
328
319
|
return this._value;
|
|
329
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Represents a collection of signals mapping to each key/field in the wrapped value.
|
|
323
|
+
* @typeParam T - The type of the signals.
|
|
324
|
+
*/
|
|
325
|
+
get $() {
|
|
326
|
+
return this._$ !== void 0 ? this._$ : this._$ = new Proxy(this, {
|
|
327
|
+
get: (e, r) => this.at(r)
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
330
|
};
|
|
331
331
|
/**
|
|
332
332
|
* Creates a Signal that holds the result of a Promise.
|
|
@@ -393,7 +393,7 @@ l(p, "unwrap", (e) => p.is(e) ? e.get() : e), /**
|
|
|
393
393
|
l(p, "map", (e, r) => p.is(e) ? e.map(r) : r(e));
|
|
394
394
|
let h = p;
|
|
395
395
|
const Re = typeof queueMicrotask == "function" ? queueMicrotask : (t) => Promise.resolve().then(t);
|
|
396
|
-
class
|
|
396
|
+
class E extends h {
|
|
397
397
|
/**
|
|
398
398
|
* Represents a Signal object.
|
|
399
399
|
* @param _fn - The function that returns the value of the signal.
|
|
@@ -450,7 +450,7 @@ class P extends h {
|
|
|
450
450
|
return this.get();
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
const
|
|
453
|
+
const F = class F extends h {
|
|
454
454
|
constructor() {
|
|
455
455
|
super(...arguments);
|
|
456
456
|
/**
|
|
@@ -504,7 +504,7 @@ const V = class V extends h {
|
|
|
504
504
|
* @returns A Prop object representing the isomorphism.
|
|
505
505
|
*/
|
|
506
506
|
l(this, "iso", (r, s, n = (o, i) => o === i) => {
|
|
507
|
-
const o = new
|
|
507
|
+
const o = new F(r(this.get()), n);
|
|
508
508
|
return o.onDispose(this.on((i) => o.set(r(i)))), o.on((i) => this._setAndNotify(s(i), !1)), o;
|
|
509
509
|
});
|
|
510
510
|
/**
|
|
@@ -533,16 +533,16 @@ const V = class V extends h {
|
|
|
533
533
|
* @param value - The value to check.
|
|
534
534
|
* @returns `true` if the value is a Prop, `false` otherwise.
|
|
535
535
|
*/
|
|
536
|
-
l(
|
|
536
|
+
l(F, "is", (r) => (
|
|
537
537
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
538
538
|
r != null && r.$__prop__ === !0
|
|
539
539
|
));
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
const s = new
|
|
540
|
+
let $ = F;
|
|
541
|
+
const j = (t, e, r = (s, n) => s === n) => {
|
|
542
|
+
const s = new E(t, r);
|
|
543
543
|
return e.forEach((n) => n.setDerivative(s)), s;
|
|
544
|
-
},
|
|
545
|
-
class
|
|
544
|
+
}, dt = (t, e) => j(t, e).dispose, L = (t, e = (r, s) => r === s) => new $(t, e), pt = (t, e = (r, s) => r === s) => new h(t, e);
|
|
545
|
+
class Q {
|
|
546
546
|
constructor() {
|
|
547
547
|
l(this, "_store", /* @__PURE__ */ new Map());
|
|
548
548
|
/**
|
|
@@ -561,7 +561,7 @@ class z {
|
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const Y = ({
|
|
565
565
|
key: t,
|
|
566
566
|
defaultValue: e,
|
|
567
567
|
store: r,
|
|
@@ -570,42 +570,42 @@ const Q = ({
|
|
|
570
570
|
equals: o = (a, u) => a === u,
|
|
571
571
|
onLoad: i = (a) => a
|
|
572
572
|
}) => {
|
|
573
|
-
const a = r.getItem(t), u = new
|
|
573
|
+
const a = r.getItem(t), u = new $(
|
|
574
574
|
a != null ? i(n(a)) : typeof e == "function" ? e() : e,
|
|
575
575
|
o
|
|
576
576
|
);
|
|
577
|
-
return u.on((
|
|
578
|
-
r.setItem(t, s(
|
|
577
|
+
return u.on((f) => {
|
|
578
|
+
r.setItem(t, s(f));
|
|
579
579
|
}), u;
|
|
580
|
-
},
|
|
580
|
+
}, mt = (t) => Y({
|
|
581
581
|
...t,
|
|
582
|
-
store: (window == null ? void 0 : window.localStorage) ?? new
|
|
583
|
-
}),
|
|
582
|
+
store: (window == null ? void 0 : window.localStorage) ?? new Q()
|
|
583
|
+
}), gt = (t) => Y({
|
|
584
584
|
...t,
|
|
585
|
-
store: (window == null ? void 0 : window.sessionStorage) ?? new
|
|
585
|
+
store: (window == null ? void 0 : window.sessionStorage) ?? new Q()
|
|
586
586
|
});
|
|
587
|
-
function
|
|
587
|
+
function z(t) {
|
|
588
588
|
return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : setTimeout(t, 0);
|
|
589
589
|
}
|
|
590
590
|
const Me = (t, e, r, s) => {
|
|
591
591
|
const n = (s == null ? void 0 : s.duration) ?? 300, o = (s == null ? void 0 : s.easing) ?? ((_) => _), i = (s == null ? void 0 : s.equals) ?? ((_, k) => _ === k);
|
|
592
|
-
let a = s == null ? void 0 : s.interpolate, u = t,
|
|
593
|
-
const D = new
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
}),
|
|
597
|
-
_.setDerivative(D), _.onDispose(
|
|
592
|
+
let a = s == null ? void 0 : s.interpolate, u = t, f = e(), d = performance.now(), S = null, m = !0;
|
|
593
|
+
const D = new E(e, i), A = L(t, i);
|
|
594
|
+
A.onDispose(() => {
|
|
595
|
+
S !== null && cancelAnimationFrame(S);
|
|
596
|
+
}), A.onDispose(D.dispose), r.forEach((_) => {
|
|
597
|
+
_.setDerivative(D), _.onDispose(A.dispose);
|
|
598
598
|
});
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
},
|
|
602
|
-
const k = (performance.now() - d) / h.unwrap(n),
|
|
599
|
+
const Ee = (_) => {
|
|
600
|
+
f = _, d = performance.now(), u = A.value, m && (m = !1, S = z(H));
|
|
601
|
+
}, H = () => {
|
|
602
|
+
const k = (performance.now() - d) / h.unwrap(n), Pe = o(k);
|
|
603
603
|
a == null && (a = Oe(u));
|
|
604
|
-
let
|
|
605
|
-
k >= 1 ? (m = !0,
|
|
604
|
+
let X = a(u, f, Pe);
|
|
605
|
+
k >= 1 ? (m = !0, X = f) : S = z(H), A.set(X);
|
|
606
606
|
};
|
|
607
|
-
return D.on(
|
|
608
|
-
},
|
|
607
|
+
return D.on(Ee), A;
|
|
608
|
+
}, _t = (t, e) => {
|
|
609
609
|
const { initialValue: r, ...s } = e ?? {};
|
|
610
610
|
return Me(
|
|
611
611
|
r ?? t.get(),
|
|
@@ -613,13 +613,13 @@ const Me = (t, e, r, s) => {
|
|
|
613
613
|
[t],
|
|
614
614
|
s
|
|
615
615
|
);
|
|
616
|
-
},
|
|
616
|
+
}, vt = (t, e) => {
|
|
617
617
|
const { signals: r, literals: s } = Object.entries(t).reduce(
|
|
618
618
|
({ signals: o, literals: i }, [a, u]) => (h.is(u) ? o.push([a, u]) : i[a] = u, { signals: o, literals: i }),
|
|
619
619
|
{ signals: [], literals: {} }
|
|
620
620
|
), n = r.map(([, o]) => o);
|
|
621
|
-
return
|
|
622
|
-
},
|
|
621
|
+
return j(() => (r.forEach(([o, i]) => s[o] = i.value), e(s)), n);
|
|
622
|
+
}, Z = /* @__PURE__ */ new Set(["checked", "disabled", "hidden", "selected"]), K = /* @__PURE__ */ new Set([
|
|
623
623
|
"rowSpan",
|
|
624
624
|
"colSpan",
|
|
625
625
|
"tabIndex",
|
|
@@ -632,24 +632,24 @@ const Me = (t, e, r, s) => {
|
|
|
632
632
|
"outerHTML",
|
|
633
633
|
"className",
|
|
634
634
|
"classList"
|
|
635
|
-
]),
|
|
636
|
-
if (
|
|
637
|
-
return
|
|
635
|
+
]), q = /* @__PURE__ */ new Map(), b = (t, e) => {
|
|
636
|
+
if (q.has(t))
|
|
637
|
+
return q.get(t);
|
|
638
638
|
{
|
|
639
639
|
const r = e(t);
|
|
640
|
-
return
|
|
640
|
+
return q.set(t, r), r;
|
|
641
641
|
}
|
|
642
|
-
},
|
|
642
|
+
}, $e = (t) => (e, r) => {
|
|
643
643
|
r == null ? e[t] = null : e[t] = !!r;
|
|
644
|
-
},
|
|
644
|
+
}, Fe = (t) => (e, r) => {
|
|
645
645
|
r == null ? e[t] = null : e[t] = Number(r);
|
|
646
|
-
},
|
|
646
|
+
}, Ve = (t) => (e, r) => {
|
|
647
647
|
r == null ? e[t] = null : e[t] = r;
|
|
648
|
-
},
|
|
648
|
+
}, qe = (t) => (e, r) => {
|
|
649
649
|
r == null ? e[t] = null : e[t] = String(r);
|
|
650
|
-
},
|
|
650
|
+
}, Ie = (t) => (e, r) => {
|
|
651
651
|
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
652
|
-
}, te = (t) =>
|
|
652
|
+
}, te = (t) => Z.has(t) ? b(t, $e) : K.has(t) ? b(t, Fe) : x.has(t) ? b(t, Ve) : ee.has(t) ? b(t, qe) : b(t, Ie), re = (t) => (e) => Z.has(t) ? !!e[t] : K.has(t) ? Number(e[t]) : x.has(t) ? e[t] : ee.has(t) ? String(e[t]) : e.getAttribute(t);
|
|
653
653
|
class v {
|
|
654
654
|
/**
|
|
655
655
|
* Constructs a new `DOMContext` instance.
|
|
@@ -795,42 +795,7 @@ class Be extends Error {
|
|
|
795
795
|
const g = (t) => {
|
|
796
796
|
const e = t;
|
|
797
797
|
e && e.onblur && (e.onblur = null), !(!t || t.ownerDocument === void 0) && t.parentElement && t.parentElement.removeChild(t);
|
|
798
|
-
},
|
|
799
|
-
function je(t) {
|
|
800
|
-
var r;
|
|
801
|
-
let e = (r = t.split("/").pop()) == null ? void 0 : r.split(".").pop();
|
|
802
|
-
return e === "" ? e = void 0 : e = "." + e, e;
|
|
803
|
-
}
|
|
804
|
-
function We(t, e, r) {
|
|
805
|
-
let s = t.target;
|
|
806
|
-
for (; s != null && !(s instanceof HTMLAnchorElement); )
|
|
807
|
-
s = s.parentElement;
|
|
808
|
-
if (s == null)
|
|
809
|
-
return !0;
|
|
810
|
-
const n = s;
|
|
811
|
-
if (t.button !== 0 || t.ctrlKey || t.metaKey || n.target !== "_self" && n.target !== "" || n.getAttribute("download") != null)
|
|
812
|
-
return !0;
|
|
813
|
-
const { pathname: o, search: i, hash: a } = n;
|
|
814
|
-
if (r) {
|
|
815
|
-
const u = o + i + a, c = n.getAttribute("href");
|
|
816
|
-
if (!(c != null && c.startsWith("#")) && c !== u)
|
|
817
|
-
return !0;
|
|
818
|
-
}
|
|
819
|
-
if (e !== !1) {
|
|
820
|
-
const u = je(o);
|
|
821
|
-
if (u != null && (e === !0 || Array.isArray(e) && !e.some((c) => u == c)))
|
|
822
|
-
return !0;
|
|
823
|
-
}
|
|
824
|
-
return !1;
|
|
825
|
-
}
|
|
826
|
-
const At = (t, {
|
|
827
|
-
checkExtension: e = [".html"],
|
|
828
|
-
checkExternalUrl: r = !0
|
|
829
|
-
} = {}) => (s) => {
|
|
830
|
-
Array.isArray(e) && (e = e.map(
|
|
831
|
-
(n) => n.startsWith(".") ? n : "." + n
|
|
832
|
-
)), !We(s, e, r) && t() && s.preventDefault();
|
|
833
|
-
}, ne = (t) => (e) => {
|
|
798
|
+
}, je = (t) => se(t) ? t : t.parentElement, se = (t) => t.nodeType === 1, ne = (t) => (e) => {
|
|
834
799
|
he(e);
|
|
835
800
|
const r = e.createText(t);
|
|
836
801
|
return e.appendOrInsert(r), (s) => {
|
|
@@ -844,15 +809,15 @@ const At = (t, {
|
|
|
844
809
|
return (n) => {
|
|
845
810
|
s(), n && g(r);
|
|
846
811
|
};
|
|
847
|
-
},
|
|
848
|
-
const r = t.map((s) =>
|
|
812
|
+
}, yt = (t) => h.is(t) ? oe(t) : ne(t), y = (...t) => (e) => {
|
|
813
|
+
const r = t.map((s) => c(s)(e));
|
|
849
814
|
return (s) => {
|
|
850
815
|
r.forEach((n) => n(s));
|
|
851
816
|
};
|
|
852
817
|
}, w = () => () => {
|
|
853
|
-
},
|
|
818
|
+
}, Ue = (t) => (e) => (ce(e), e.element.classList.add(...t), (r) => {
|
|
854
819
|
r && e.element.classList.remove(...t);
|
|
855
|
-
}),
|
|
820
|
+
}), Ge = (t) => (e) => {
|
|
856
821
|
ce(e);
|
|
857
822
|
const r = e.element;
|
|
858
823
|
let s = [];
|
|
@@ -862,7 +827,7 @@ const At = (t, {
|
|
|
862
827
|
return (o) => {
|
|
863
828
|
n(), o && s.forEach((i) => r.classList.remove(i)), s.length = 0;
|
|
864
829
|
};
|
|
865
|
-
},
|
|
830
|
+
}, C = (t, e) => {
|
|
866
831
|
const r = te(t), s = re(t);
|
|
867
832
|
return (n) => {
|
|
868
833
|
ae(n, t);
|
|
@@ -880,7 +845,7 @@ const At = (t, {
|
|
|
880
845
|
i(), a && r(n.element, o);
|
|
881
846
|
};
|
|
882
847
|
};
|
|
883
|
-
},
|
|
848
|
+
}, P = new Proxy(
|
|
884
849
|
{},
|
|
885
850
|
{
|
|
886
851
|
/**
|
|
@@ -894,17 +859,17 @@ const At = (t, {
|
|
|
894
859
|
* @returns The renderable component for the specified attribute.
|
|
895
860
|
*
|
|
896
861
|
*/
|
|
897
|
-
get: (t, e) => e === "class" ? (r) => h.is(r) ?
|
|
862
|
+
get: (t, e) => e === "class" ? (r) => h.is(r) ? Ge(r) : Ue(
|
|
898
863
|
(r ?? "").split(" ").filter((s) => s.length > 0)
|
|
899
864
|
) : (r) => h.is(r) ? N(
|
|
900
865
|
e,
|
|
901
866
|
r
|
|
902
|
-
) :
|
|
867
|
+
) : C(
|
|
903
868
|
e,
|
|
904
869
|
r
|
|
905
870
|
)
|
|
906
871
|
}
|
|
907
|
-
),
|
|
872
|
+
), wt = new Proxy(
|
|
908
873
|
{},
|
|
909
874
|
{
|
|
910
875
|
/**
|
|
@@ -918,9 +883,9 @@ const At = (t, {
|
|
|
918
883
|
get: (t, e) => (r) => h.is(r) ? N(
|
|
919
884
|
`data-${e}`,
|
|
920
885
|
r
|
|
921
|
-
) :
|
|
886
|
+
) : C(`data-${e}`, r)
|
|
922
887
|
}
|
|
923
|
-
),
|
|
888
|
+
), St = new Proxy(
|
|
924
889
|
{},
|
|
925
890
|
{
|
|
926
891
|
/**
|
|
@@ -934,12 +899,12 @@ const At = (t, {
|
|
|
934
899
|
get: (t, e) => (r) => h.is(r) ? N(
|
|
935
900
|
`aria-${e}`,
|
|
936
901
|
r
|
|
937
|
-
) :
|
|
902
|
+
) : C(
|
|
938
903
|
`aria-${e}`,
|
|
939
904
|
r
|
|
940
905
|
)
|
|
941
906
|
}
|
|
942
|
-
),
|
|
907
|
+
), At = new Proxy(
|
|
943
908
|
{},
|
|
944
909
|
{
|
|
945
910
|
/**
|
|
@@ -953,12 +918,12 @@ const At = (t, {
|
|
|
953
918
|
get: (t, e) => (r) => h.is(r) ? N(
|
|
954
919
|
e,
|
|
955
920
|
r
|
|
956
|
-
) :
|
|
921
|
+
) : C(
|
|
957
922
|
e,
|
|
958
923
|
r
|
|
959
924
|
)
|
|
960
925
|
}
|
|
961
|
-
),
|
|
926
|
+
), Et = new Proxy(
|
|
962
927
|
{},
|
|
963
928
|
{
|
|
964
929
|
/**
|
|
@@ -971,26 +936,26 @@ const At = (t, {
|
|
|
971
936
|
get: (t, e) => (r) => h.is(r) ? N(
|
|
972
937
|
e,
|
|
973
938
|
r
|
|
974
|
-
) :
|
|
939
|
+
) : C(
|
|
975
940
|
e,
|
|
976
941
|
r
|
|
977
942
|
)
|
|
978
943
|
}
|
|
979
|
-
),
|
|
944
|
+
), c = (t) => t == null ? w : Array.isArray(t) ? y(...t.map(c)) : typeof t == "string" ? ne(t) : h.is(t) ? oe(t) : t, ie = (t, ...e) => (r) => {
|
|
980
945
|
const s = r.createElement(t, void 0);
|
|
981
946
|
r.isFirstLevel && O() && fe(s), r.appendOrInsert(s), r = r.withElement(s);
|
|
982
|
-
const n = e.map((o) =>
|
|
947
|
+
const n = e.map((o) => c(o)(r));
|
|
983
948
|
return (o) => {
|
|
984
949
|
n.forEach((i) => i(!1)), o && g(s);
|
|
985
950
|
};
|
|
986
951
|
}, le = (t, e, ...r) => (s) => {
|
|
987
952
|
const n = s.createElement(t, e);
|
|
988
953
|
s.isFirstLevel && O() && fe(n), s.appendOrInsert(n), s = s.withElement(n);
|
|
989
|
-
const o = r.map((i) =>
|
|
954
|
+
const o = r.map((i) => c(i)(s));
|
|
990
955
|
return (i) => {
|
|
991
956
|
o.forEach((a) => a(!1)), i && g(n);
|
|
992
957
|
};
|
|
993
|
-
},
|
|
958
|
+
}, Pt = new Proxy(
|
|
994
959
|
{},
|
|
995
960
|
{
|
|
996
961
|
/**
|
|
@@ -998,9 +963,9 @@ const At = (t, {
|
|
|
998
963
|
* @param tagName - The HTML tag name.
|
|
999
964
|
* @returns A renderable function that creates and appends the HTML element to the DOM.
|
|
1000
965
|
*/
|
|
1001
|
-
get: (t, e) => (...r) => ie(e, r.flatMap(
|
|
966
|
+
get: (t, e) => (...r) => ie(e, r.flatMap(c))
|
|
1002
967
|
}
|
|
1003
|
-
),
|
|
968
|
+
), Dt = new Proxy(
|
|
1004
969
|
{},
|
|
1005
970
|
{
|
|
1006
971
|
/**
|
|
@@ -1008,9 +973,9 @@ const At = (t, {
|
|
|
1008
973
|
* @param type - The input type name.
|
|
1009
974
|
* @returns A renderable function that creates and appends the HTMLInput element to the DOM.
|
|
1010
975
|
*/
|
|
1011
|
-
get: (t, e) => (...r) => ie("input",
|
|
976
|
+
get: (t, e) => (...r) => ie("input", P.type(e), ...r)
|
|
1012
977
|
}
|
|
1013
|
-
), Je = "http://www.w3.org/2000/svg",
|
|
978
|
+
), Je = "http://www.w3.org/2000/svg", bt = new Proxy(
|
|
1014
979
|
{},
|
|
1015
980
|
{
|
|
1016
981
|
/**
|
|
@@ -1018,9 +983,9 @@ const At = (t, {
|
|
|
1018
983
|
* @param tagName - The SVG tag name.
|
|
1019
984
|
* @returns A renderable function that creates and appends the SVG element to the DOM.
|
|
1020
985
|
*/
|
|
1021
|
-
get: (t, e) => (...r) => le(e, Je, r.flatMap(
|
|
986
|
+
get: (t, e) => (...r) => le(e, Je, r.flatMap(c))
|
|
1022
987
|
}
|
|
1023
|
-
),
|
|
988
|
+
), We = "http://www.w3.org/1998/Math/MathML", Tt = new Proxy(
|
|
1024
989
|
{},
|
|
1025
990
|
{
|
|
1026
991
|
/**
|
|
@@ -1028,9 +993,9 @@ const At = (t, {
|
|
|
1028
993
|
* @param tagName - The Math tag name.
|
|
1029
994
|
* @returns A renderable function that creates and appends the Math element to the DOM.
|
|
1030
995
|
*/
|
|
1031
|
-
get: (t, e) => (...r) => le(e,
|
|
996
|
+
get: (t, e) => (...r) => le(e, We, r.flatMap(c))
|
|
1032
997
|
}
|
|
1033
|
-
), T = "data-tempo-attr", R = "data-tempo-class", ue = "data-tempo-node", M = "data-tempo-text",
|
|
998
|
+
), T = "data-tempo-attr", R = "data-tempo-class", ue = "data-tempo-node", M = "data-tempo-text", He = (t, e) => {
|
|
1034
999
|
const r = t.getAttribute(e);
|
|
1035
1000
|
if (r != null) {
|
|
1036
1001
|
const s = t.getAttribute(T) ?? "{}", n = { ...JSON.parse(s), name: r };
|
|
@@ -1040,8 +1005,8 @@ const At = (t, {
|
|
|
1040
1005
|
);
|
|
1041
1006
|
}
|
|
1042
1007
|
}, ae = (t, e) => {
|
|
1043
|
-
O() && t.isFirstLevel &&
|
|
1044
|
-
},
|
|
1008
|
+
O() && t.isFirstLevel && He(t.element, e);
|
|
1009
|
+
}, Xe = (t) => {
|
|
1045
1010
|
t.querySelectorAll(`[${T}]`).forEach((e) => {
|
|
1046
1011
|
const r = JSON.parse(
|
|
1047
1012
|
(e.getAttribute(T) ?? "{}").replace(/"/g, '"')
|
|
@@ -1051,85 +1016,85 @@ const At = (t, {
|
|
|
1051
1016
|
e.removeAttribute(T);
|
|
1052
1017
|
});
|
|
1053
1018
|
};
|
|
1054
|
-
function
|
|
1019
|
+
function ze(t) {
|
|
1055
1020
|
t.setAttribute(R, t.className);
|
|
1056
1021
|
}
|
|
1057
1022
|
const ce = (t) => {
|
|
1058
|
-
O() && t.isFirstLevel &&
|
|
1059
|
-
},
|
|
1023
|
+
O() && t.isFirstLevel && ze(t.element);
|
|
1024
|
+
}, Qe = (t) => {
|
|
1060
1025
|
t.querySelectorAll(`[${R}]`).forEach((e) => {
|
|
1061
1026
|
const r = e.getAttribute(R);
|
|
1062
1027
|
r !== null && (e.className = r, e.removeAttribute(R));
|
|
1063
1028
|
});
|
|
1064
1029
|
}, fe = (t) => {
|
|
1065
1030
|
t.setAttribute(ue, "");
|
|
1066
|
-
},
|
|
1031
|
+
}, Ye = (t) => {
|
|
1067
1032
|
t.querySelectorAll(`[${ue}]`).forEach((e) => {
|
|
1068
1033
|
g(e);
|
|
1069
1034
|
});
|
|
1070
|
-
},
|
|
1035
|
+
}, Ze = (t) => {
|
|
1071
1036
|
t.setAttribute(M, t.textContent ?? "");
|
|
1072
1037
|
}, he = (t) => {
|
|
1073
|
-
O() && t.isFirstLevel &&
|
|
1074
|
-
},
|
|
1038
|
+
O() && t.isFirstLevel && Ze(t.element);
|
|
1039
|
+
}, Ke = (t) => {
|
|
1075
1040
|
t.querySelectorAll(`[${M}]`).forEach((e) => {
|
|
1076
1041
|
e.textContent = e.getAttribute(M), e.removeAttribute(M);
|
|
1077
1042
|
});
|
|
1078
|
-
},
|
|
1079
|
-
|
|
1043
|
+
}, xe = (t) => {
|
|
1044
|
+
Ye(t), Qe(t), Xe(t), Ke(t);
|
|
1080
1045
|
}, de = () => {
|
|
1081
1046
|
const t = globalThis;
|
|
1082
1047
|
return t.__tempoSSR__ == null && (t.__tempoSSR__ = {
|
|
1083
1048
|
isSSR: !1,
|
|
1084
1049
|
counter: 0
|
|
1085
1050
|
}), t.__tempoSSR__;
|
|
1086
|
-
},
|
|
1051
|
+
}, U = (t, e) => {
|
|
1087
1052
|
const r = de();
|
|
1088
1053
|
r[t] = e;
|
|
1089
|
-
}, pe = (t) => de()[t],
|
|
1090
|
-
|
|
1091
|
-
},
|
|
1092
|
-
|
|
1093
|
-
},
|
|
1094
|
-
|
|
1095
|
-
},
|
|
1054
|
+
}, pe = (t) => de()[t], I = (t) => {
|
|
1055
|
+
U("isSSR", t);
|
|
1056
|
+
}, G = () => pe("counter"), et = () => {
|
|
1057
|
+
U("counter", (G() ?? 0) + 1);
|
|
1058
|
+
}, tt = () => {
|
|
1059
|
+
U("counter", (G() ?? 0) - 1);
|
|
1060
|
+
}, Lt = (t = 30) => (I(!0), new Promise((e, r) => {
|
|
1096
1061
|
let s;
|
|
1097
1062
|
const n = setInterval(() => {
|
|
1098
|
-
|
|
1063
|
+
G() <= 0 && (clearInterval(n), clearTimeout(s), I(!1), e());
|
|
1099
1064
|
}, 30);
|
|
1100
1065
|
s = setTimeout(() => {
|
|
1101
|
-
clearInterval(n),
|
|
1066
|
+
clearInterval(n), I(!1), r(new Error("SSR Timeout"));
|
|
1102
1067
|
}, t * 1e3);
|
|
1103
|
-
})),
|
|
1068
|
+
})), Ct = (t) => (et(), c(t(tt))), O = () => pe("isSSR"), me = (t, e) => {
|
|
1104
1069
|
if (typeof e == "function")
|
|
1105
1070
|
return me(t, { then: e });
|
|
1106
|
-
const r = e.pending != null ?
|
|
1071
|
+
const r = e.pending != null ? c(e.pending) : w, s = e.then, n = e.error != null ? (o) => c(e.error(o)) : () => w;
|
|
1107
1072
|
return (o) => {
|
|
1108
1073
|
let i = !0;
|
|
1109
1074
|
const a = t();
|
|
1110
1075
|
o = o.makeRef();
|
|
1111
|
-
let u =
|
|
1076
|
+
let u = c(r)(o);
|
|
1112
1077
|
return a.then(
|
|
1113
|
-
(
|
|
1114
|
-
i && (u(!0), u =
|
|
1078
|
+
(f) => {
|
|
1079
|
+
i && (u(!0), u = c(s(f))(o));
|
|
1115
1080
|
},
|
|
1116
|
-
(
|
|
1117
|
-
i && (u(!0), u =
|
|
1081
|
+
(f) => {
|
|
1082
|
+
i && (u(!0), u = c(n(f))(o));
|
|
1118
1083
|
}
|
|
1119
|
-
), (
|
|
1120
|
-
i = !1, u(
|
|
1084
|
+
), (f) => {
|
|
1085
|
+
i = !1, u(f), f && o.reference && g(o.reference);
|
|
1121
1086
|
};
|
|
1122
1087
|
};
|
|
1123
|
-
},
|
|
1088
|
+
}, Nt = (t, e) => me(() => t, e), ge = (t, e) => (r) => (r.element.addEventListener(t, e), (s) => {
|
|
1124
1089
|
s && r.element.removeEventListener(t, e);
|
|
1125
|
-
}),
|
|
1090
|
+
}), rt = (t) => ge("click", (e) => {
|
|
1126
1091
|
e.preventDefault();
|
|
1127
1092
|
const r = e.target;
|
|
1128
1093
|
setTimeout(() => {
|
|
1129
1094
|
const s = r.ownerDocument != null ? r == null ? void 0 : r.checked : void 0;
|
|
1130
1095
|
s != null && t(!s);
|
|
1131
1096
|
}, 0);
|
|
1132
|
-
}),
|
|
1097
|
+
}), V = new Proxy(
|
|
1133
1098
|
{},
|
|
1134
1099
|
{
|
|
1135
1100
|
/**
|
|
@@ -1139,13 +1104,13 @@ const ce = (t) => {
|
|
|
1139
1104
|
*/
|
|
1140
1105
|
get: (t, e) => (r) => ge(e, r)
|
|
1141
1106
|
}
|
|
1142
|
-
),
|
|
1107
|
+
), st = (t) => (e) => {
|
|
1143
1108
|
const r = e.target;
|
|
1144
1109
|
t(r.value);
|
|
1145
|
-
},
|
|
1110
|
+
}, nt = (t) => (e) => {
|
|
1146
1111
|
const r = e.target;
|
|
1147
1112
|
t(r.valueAsNumber);
|
|
1148
|
-
},
|
|
1113
|
+
}, ot = (t) => (e) => {
|
|
1149
1114
|
const r = e.target;
|
|
1150
1115
|
if (r.value === "")
|
|
1151
1116
|
return;
|
|
@@ -1155,7 +1120,7 @@ const ce = (t) => {
|
|
|
1155
1120
|
Number(s[2].substring(0, 2))
|
|
1156
1121
|
);
|
|
1157
1122
|
t(n);
|
|
1158
|
-
},
|
|
1123
|
+
}, it = (t) => (e) => {
|
|
1159
1124
|
const r = e.target;
|
|
1160
1125
|
if (r.value === "")
|
|
1161
1126
|
return;
|
|
@@ -1165,25 +1130,25 @@ const ce = (t) => {
|
|
|
1165
1130
|
Number(n[2])
|
|
1166
1131
|
), i = s[1].split(":");
|
|
1167
1132
|
o.setHours(Number(i[0])), o.setMinutes(Number(i[1])), o.setSeconds(Number(i[2])), t(o);
|
|
1168
|
-
},
|
|
1133
|
+
}, Ot = (t) => (e) => {
|
|
1169
1134
|
const r = e.target;
|
|
1170
1135
|
t(r.checked);
|
|
1171
|
-
},
|
|
1136
|
+
}, kt = (t) => (e) => {
|
|
1172
1137
|
e.preventDefault(), t();
|
|
1173
|
-
},
|
|
1138
|
+
}, Rt = (t) => (e) => {
|
|
1174
1139
|
e.stopPropagation(), t();
|
|
1175
|
-
},
|
|
1140
|
+
}, Mt = (t) => (e) => {
|
|
1176
1141
|
e.stopImmediatePropagation(), t();
|
|
1177
|
-
},
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
),
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
),
|
|
1142
|
+
}, $t = (t, e = "input") => y(
|
|
1143
|
+
P.valueAsDate(t),
|
|
1144
|
+
V[e](ot(t.set))
|
|
1145
|
+
), Ft = (t, e = "input") => y(
|
|
1146
|
+
P.valueAsDate(t),
|
|
1147
|
+
V[e](it(t.set))
|
|
1148
|
+
), Vt = (t, e = "input") => y(
|
|
1149
|
+
P.valueAsNumber(t),
|
|
1150
|
+
V[e](nt(t.set))
|
|
1151
|
+
), qt = (t, e = "input") => y(P.value(t), V[e](st(t.set))), It = (t) => y(P.checked(t), rt(t.set)), J = (t, e) => (r) => {
|
|
1187
1152
|
r = r.makeRef();
|
|
1188
1153
|
let s, n;
|
|
1189
1154
|
const o = t.map((u) => Object.keys(u)[0]);
|
|
@@ -1191,26 +1156,26 @@ const ce = (t) => {
|
|
|
1191
1156
|
const a = o.on((u) => {
|
|
1192
1157
|
if (u !== i) {
|
|
1193
1158
|
n == null || n.dispose(), s == null || s(!0), n = t.map((d) => d[u]);
|
|
1194
|
-
const
|
|
1195
|
-
s = f
|
|
1159
|
+
const f = e[u](n);
|
|
1160
|
+
s = c(f)(r), i = u;
|
|
1196
1161
|
}
|
|
1197
1162
|
});
|
|
1198
1163
|
return (u) => {
|
|
1199
1164
|
a(), u && r.reference != null && g(r.reference), s == null || s(!0);
|
|
1200
1165
|
};
|
|
1201
|
-
}, _e = (t, e, r) =>
|
|
1166
|
+
}, _e = (t, e, r) => J(
|
|
1202
1167
|
t.map((s) => ({ [s[e]]: s })),
|
|
1203
1168
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1204
1169
|
r
|
|
1205
|
-
),
|
|
1170
|
+
), Bt = (t, e) => _e(t, "kind", e), jt = (t, e) => {
|
|
1206
1171
|
const r = t.map(([s, n]) => ({ [s]: n }));
|
|
1207
|
-
return
|
|
1208
|
-
},
|
|
1172
|
+
return J(r, e);
|
|
1173
|
+
}, Ut = (t, e) => _e(t, "type", e), W = (t, e) => J(
|
|
1209
1174
|
t.map((r) => ({ [r]: !0 })),
|
|
1210
1175
|
e
|
|
1211
|
-
),
|
|
1176
|
+
), Gt = (t, e = {}) => (r) => {
|
|
1212
1177
|
const s = (e == null ? void 0 : e.firstSeparator) ?? w, n = (e == null ? void 0 : e.lastSeparator) ?? w;
|
|
1213
|
-
return
|
|
1178
|
+
return W(
|
|
1214
1179
|
r.map((o) => o.isFirst ? "first" : o.isLast ? "last" : "other"),
|
|
1215
1180
|
{
|
|
1216
1181
|
first: () => s,
|
|
@@ -1225,8 +1190,8 @@ const ce = (t) => {
|
|
|
1225
1190
|
throw new Error(`No provider found for mark: ${o.description}`);
|
|
1226
1191
|
return n[o] = i, n;
|
|
1227
1192
|
}, {});
|
|
1228
|
-
return
|
|
1229
|
-
},
|
|
1193
|
+
return c(e(s))(r);
|
|
1194
|
+
}, Jt = (t, e) => (r) => {
|
|
1230
1195
|
const s = [], n = Object.entries(t).reduce(
|
|
1231
1196
|
(o, [i, a]) => (s.push(
|
|
1232
1197
|
a((u) => (Reflect.set(o, i, u), null))(r)
|
|
@@ -1236,13 +1201,13 @@ const ce = (t) => {
|
|
|
1236
1201
|
return s.push(e(n)(r)), (o) => {
|
|
1237
1202
|
s.forEach((i) => i(o));
|
|
1238
1203
|
};
|
|
1239
|
-
},
|
|
1204
|
+
}, Wt = (t, e) => ve([t], (r) => c(e(r[t]))), Ht = (t, e) => ve(t, (r) => c(e(r))), Xt = (t) => (e) => t(e), zt = (t) => (e) => (e.appendOrInsert(t), (r) => {
|
|
1240
1205
|
r && g(t);
|
|
1241
|
-
}),
|
|
1206
|
+
}), lt = (t, e, r) => (s) => {
|
|
1242
1207
|
s = s.makeRef();
|
|
1243
1208
|
let n = null, o = !1;
|
|
1244
|
-
const i =
|
|
1245
|
-
u == null ? (n == null || n(!0), n =
|
|
1209
|
+
const i = L(null), a = t.on((u) => {
|
|
1210
|
+
u == null ? (n == null || n(!0), n = c((r == null ? void 0 : r()) ?? w)(s), o = !1) : (i.value = u, o || (n == null || n(!0), n = c(e(i))(s), o = !0));
|
|
1246
1211
|
});
|
|
1247
1212
|
return (u) => {
|
|
1248
1213
|
a(), n == null || n(u), u && s.reference && g(s.reference);
|
|
@@ -1251,8 +1216,8 @@ const ce = (t) => {
|
|
|
1251
1216
|
const n = s.map((o) => o.isLast ? "last" : "other");
|
|
1252
1217
|
return y(
|
|
1253
1218
|
B(() => n.dispose()),
|
|
1254
|
-
|
|
1255
|
-
|
|
1219
|
+
c(e(s)),
|
|
1220
|
+
W(n, {
|
|
1256
1221
|
last: () => w,
|
|
1257
1222
|
other: () => r(s)
|
|
1258
1223
|
})
|
|
@@ -1260,18 +1225,18 @@ const ce = (t) => {
|
|
|
1260
1225
|
}) : (s) => {
|
|
1261
1226
|
s = s.makeRef();
|
|
1262
1227
|
const n = t.map(
|
|
1263
|
-
(u) => Array.from({ length: u }, (
|
|
1264
|
-
(
|
|
1228
|
+
(u) => Array.from({ length: u }, (f, d) => d).map(
|
|
1229
|
+
(f) => new ke(f, u)
|
|
1265
1230
|
)
|
|
1266
1231
|
), o = [], i = [], a = n.on((u) => {
|
|
1267
|
-
var d,
|
|
1268
|
-
const
|
|
1269
|
-
for (;
|
|
1270
|
-
(d = o.pop()) == null || d(!0), (
|
|
1271
|
-
for (let m = 0; m <
|
|
1232
|
+
var d, S;
|
|
1233
|
+
const f = u.length;
|
|
1234
|
+
for (; f < o.length; )
|
|
1235
|
+
(d = o.pop()) == null || d(!0), (S = i.pop()) == null || S.dispose();
|
|
1236
|
+
for (let m = 0; m < f; m++)
|
|
1272
1237
|
if (i[m] == null) {
|
|
1273
|
-
i[m] =
|
|
1274
|
-
const D =
|
|
1238
|
+
i[m] = L(u[m]);
|
|
1239
|
+
const D = c(e(i[m]));
|
|
1275
1240
|
o[m] = D(s);
|
|
1276
1241
|
} else
|
|
1277
1242
|
i[m].value = u[m];
|
|
@@ -1279,12 +1244,12 @@ const ce = (t) => {
|
|
|
1279
1244
|
return (u) => {
|
|
1280
1245
|
a(), u && s.reference && g(s.reference);
|
|
1281
1246
|
};
|
|
1282
|
-
},
|
|
1247
|
+
}, ut = (t, e, r) => r != null ? ut(t, (s, n) => {
|
|
1283
1248
|
const o = n.map((i) => i.isLast ? "last" : "other");
|
|
1284
1249
|
return y([
|
|
1285
1250
|
B(() => o.dispose()),
|
|
1286
|
-
|
|
1287
|
-
|
|
1251
|
+
c(e(s, n)),
|
|
1252
|
+
W(o, {
|
|
1288
1253
|
last: () => w,
|
|
1289
1254
|
other: () => r(n)
|
|
1290
1255
|
})
|
|
@@ -1292,18 +1257,18 @@ const ce = (t) => {
|
|
|
1292
1257
|
}) : (s) => {
|
|
1293
1258
|
const n = t.map((o) => o.length);
|
|
1294
1259
|
return ye(n, (o) => {
|
|
1295
|
-
const i =
|
|
1260
|
+
const i = j(
|
|
1296
1261
|
() => t.value[o.value.index],
|
|
1297
1262
|
[o, t]
|
|
1298
1263
|
);
|
|
1299
1264
|
return y(
|
|
1300
1265
|
B(() => i.dispose()),
|
|
1301
|
-
|
|
1266
|
+
c(e(i, o))
|
|
1302
1267
|
);
|
|
1303
1268
|
})(s);
|
|
1304
|
-
},
|
|
1269
|
+
}, Qt = (t, e) => (r) => {
|
|
1305
1270
|
r = r.makeRef();
|
|
1306
|
-
const s = t.map((i) =>
|
|
1271
|
+
const s = t.map((i) => c(e(i)));
|
|
1307
1272
|
let n = () => {
|
|
1308
1273
|
};
|
|
1309
1274
|
const o = s.on((i) => {
|
|
@@ -1312,56 +1277,56 @@ const ce = (t) => {
|
|
|
1312
1277
|
return (i) => {
|
|
1313
1278
|
o(), n(i);
|
|
1314
1279
|
};
|
|
1315
|
-
}, we = (t, e, r) =>
|
|
1280
|
+
}, we = (t, e, r) => lt(
|
|
1316
1281
|
t.map((s) => s ? !0 : null),
|
|
1317
1282
|
() => e,
|
|
1318
1283
|
r != null ? () => r : void 0
|
|
1319
|
-
),
|
|
1284
|
+
), Yt = (t, e, r) => we(
|
|
1320
1285
|
t.map((s) => !s),
|
|
1321
1286
|
e,
|
|
1322
1287
|
r
|
|
1323
|
-
),
|
|
1288
|
+
), Zt = (t, e, r = w) => we(
|
|
1324
1289
|
t.map((s) => s.length > 0),
|
|
1325
1290
|
e,
|
|
1326
1291
|
r
|
|
1327
|
-
),
|
|
1328
|
-
}),
|
|
1292
|
+
), Kt = (t) => (e) => t(e.element) ?? (() => {
|
|
1293
|
+
}), Se = (t, e) => {
|
|
1329
1294
|
const r = t(e);
|
|
1330
1295
|
return () => r(!0);
|
|
1331
|
-
},
|
|
1296
|
+
}, xt = (t, e, { doc: r, clear: s } = {}) => {
|
|
1332
1297
|
const n = typeof e == "string" ? (r ?? document).querySelector(e) : e;
|
|
1333
1298
|
if (n === null)
|
|
1334
|
-
throw new
|
|
1299
|
+
throw new at(
|
|
1335
1300
|
`Cannot find element by selector for render: ${e}`
|
|
1336
1301
|
);
|
|
1337
|
-
s !== !1 && (r ?? n.ownerDocument) != null &&
|
|
1338
|
-
const o =
|
|
1339
|
-
return
|
|
1302
|
+
s !== !1 && (r ?? n.ownerDocument) != null && xe(r ?? n.ownerDocument);
|
|
1303
|
+
const o = je(n), i = se(n) ? void 0 : n, a = v.of(o, i);
|
|
1304
|
+
return Se(t, a);
|
|
1340
1305
|
};
|
|
1341
|
-
class
|
|
1306
|
+
class at extends Error {
|
|
1342
1307
|
constructor(e) {
|
|
1343
1308
|
super(e);
|
|
1344
1309
|
}
|
|
1345
1310
|
}
|
|
1346
|
-
const
|
|
1311
|
+
const er = (t, e) => (r) => {
|
|
1347
1312
|
const s = r.document.querySelector(t);
|
|
1348
1313
|
if (s === null)
|
|
1349
1314
|
throw new Error(`Cannot find element by selector for portal: ${t}`);
|
|
1350
|
-
return
|
|
1351
|
-
|
|
1315
|
+
return Se(
|
|
1316
|
+
c(e),
|
|
1352
1317
|
r.withElement(s).withFirstLevel()
|
|
1353
1318
|
);
|
|
1354
|
-
},
|
|
1319
|
+
}, tr = (t) => Symbol(t), Ae = (t, e) => (r) => c(e)(r.withProviders(t)), rr = (...t) => t.length > 0 ? t.reduceRight((e, r) => (s) => e(r(s))) : c, sr = (t, e, r) => Ae({ [t]: e }, c(r)), nr = (t, e) => Ae(t, c(e)), ct = (t, e) => (r) => {
|
|
1355
1320
|
const s = r.element, n = s.style.getPropertyValue(t);
|
|
1356
1321
|
return s.style.setProperty(t, e), (o) => {
|
|
1357
1322
|
o && s.style.setProperty(t, n);
|
|
1358
1323
|
};
|
|
1359
|
-
},
|
|
1324
|
+
}, ft = (t, e) => (r) => {
|
|
1360
1325
|
const s = r.element, n = s.style.getPropertyValue(t);
|
|
1361
1326
|
return e.on((o) => s.style.setProperty(t, o)), (o) => {
|
|
1362
1327
|
o && s.style.setProperty(t, n);
|
|
1363
1328
|
};
|
|
1364
|
-
},
|
|
1329
|
+
}, or = new Proxy(
|
|
1365
1330
|
{},
|
|
1366
1331
|
{
|
|
1367
1332
|
/**
|
|
@@ -1372,60 +1337,60 @@ const sr = (t, e) => (r) => {
|
|
|
1372
1337
|
* @returns The renderable component for the specified attribute.
|
|
1373
1338
|
*
|
|
1374
1339
|
*/
|
|
1375
|
-
get: (t, e) => (r) => h.is(r) ?
|
|
1340
|
+
get: (t, e) => (r) => h.is(r) ? ft(e, r) : ct(e, r)
|
|
1376
1341
|
}
|
|
1377
1342
|
);
|
|
1378
1343
|
export {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1344
|
+
Nt as Async,
|
|
1345
|
+
It as BindChecked,
|
|
1346
|
+
$t as BindDate,
|
|
1347
|
+
Ft as BindDateTime,
|
|
1348
|
+
Vt as BindNumber,
|
|
1349
|
+
qt as BindText,
|
|
1350
|
+
E as Computed,
|
|
1351
|
+
Gt as Conjunction,
|
|
1387
1352
|
v as DOMContext,
|
|
1388
|
-
|
|
1353
|
+
zt as DOMNode,
|
|
1389
1354
|
ie as El,
|
|
1390
1355
|
le as ElNS,
|
|
1391
1356
|
ke as ElementPosition,
|
|
1392
1357
|
w as Empty,
|
|
1393
|
-
|
|
1394
|
-
|
|
1358
|
+
lt as Ensure,
|
|
1359
|
+
ut as ForEach,
|
|
1395
1360
|
y as Fragment,
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1361
|
+
Qt as MapSignal,
|
|
1362
|
+
Q as MemoryStore,
|
|
1363
|
+
Zt as NotEmpty,
|
|
1364
|
+
rt as OnChecked,
|
|
1365
|
+
Xt as OnCtx,
|
|
1366
|
+
Kt as OnMount,
|
|
1402
1367
|
B as OnUnmount,
|
|
1403
|
-
|
|
1368
|
+
J as OneOf,
|
|
1404
1369
|
_e as OneOfField,
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1370
|
+
Bt as OneOfKind,
|
|
1371
|
+
jt as OneOfTuple,
|
|
1372
|
+
Ut as OneOfType,
|
|
1373
|
+
W as OneOfValue,
|
|
1374
|
+
er as Portal,
|
|
1375
|
+
$ as Prop,
|
|
1376
|
+
rr as Provide,
|
|
1412
1377
|
Be as ProviderNotFoundError,
|
|
1413
|
-
|
|
1378
|
+
at as RenderingError,
|
|
1414
1379
|
ye as Repeat,
|
|
1415
1380
|
h as Signal,
|
|
1416
1381
|
me as Task,
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1382
|
+
yt as TextNode,
|
|
1383
|
+
Yt as Unless,
|
|
1384
|
+
Jt as Use,
|
|
1385
|
+
Wt as UseProvider,
|
|
1386
|
+
Ht as UseProviders,
|
|
1387
|
+
Ct as UseSSRDone,
|
|
1423
1388
|
we as When,
|
|
1424
|
-
|
|
1425
|
-
|
|
1389
|
+
sr as WithProvider,
|
|
1390
|
+
nr as WithProviders,
|
|
1426
1391
|
fe as _addNodeTracker,
|
|
1427
|
-
|
|
1428
|
-
|
|
1392
|
+
xe as _clearSSR,
|
|
1393
|
+
je as _getSelfOrParentElement,
|
|
1429
1394
|
se as _isElement,
|
|
1430
1395
|
re as _makeGetter,
|
|
1431
1396
|
te as _makeSetter,
|
|
@@ -1433,53 +1398,52 @@ export {
|
|
|
1433
1398
|
ce as _maybeAddClassTracker,
|
|
1434
1399
|
he as _maybeAddTextTracker,
|
|
1435
1400
|
g as _removeDOMNode,
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1401
|
+
Ie as _setAttribute,
|
|
1402
|
+
$e as _setBooleanProperty,
|
|
1403
|
+
Ve as _setDateProperty,
|
|
1404
|
+
Fe as _setNumberProperty,
|
|
1405
|
+
qe as _setStringProperty,
|
|
1441
1406
|
oe as _signalText,
|
|
1442
1407
|
ne as _staticText,
|
|
1443
|
-
|
|
1408
|
+
_t as animateSignal,
|
|
1444
1409
|
Me as animateSignals,
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1410
|
+
St as aria,
|
|
1411
|
+
P as attr,
|
|
1412
|
+
wt as dataAttr,
|
|
1413
|
+
Ot as emitChecked,
|
|
1414
|
+
kt as emitPreventDefault,
|
|
1415
|
+
Mt as emitStopImmediatePropagation,
|
|
1416
|
+
Rt as emitStopPropagation,
|
|
1417
|
+
st as emitValue,
|
|
1418
|
+
ot as emitValueAsDate,
|
|
1419
|
+
it as emitValueAsDateTime,
|
|
1420
|
+
nt as emitValueAsNumber,
|
|
1456
1421
|
Ne as endInterpolate,
|
|
1457
1422
|
Oe as guessInterpolate,
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
Le as interpolateDate,
|
|
1423
|
+
Pt as html,
|
|
1424
|
+
Dt as input,
|
|
1425
|
+
Ce as interpolateDate,
|
|
1462
1426
|
Te as interpolateNumber,
|
|
1463
|
-
|
|
1427
|
+
Le as interpolateString,
|
|
1464
1428
|
O as isSSR,
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1429
|
+
mt as localStorageProp,
|
|
1430
|
+
j as makeComputed,
|
|
1431
|
+
vt as makeComputedRecord,
|
|
1432
|
+
dt as makeEffect,
|
|
1433
|
+
L as makeProp,
|
|
1434
|
+
tr as makeProviderMark,
|
|
1435
|
+
pt as makeSignal,
|
|
1436
|
+
Tt as math,
|
|
1437
|
+
Et as mathAttr,
|
|
1438
|
+
V as on,
|
|
1439
|
+
Lt as prepareSSR,
|
|
1440
|
+
Ke as removeTextTrackers,
|
|
1441
|
+
xt as render,
|
|
1442
|
+
Se as renderWithContext,
|
|
1443
|
+
c as renderableOfTNode,
|
|
1444
|
+
gt as sessionStorageProp,
|
|
1445
|
+
Y as storedProp,
|
|
1446
|
+
or as style,
|
|
1447
|
+
bt as svg,
|
|
1448
|
+
At as svgAttr
|
|
1485
1449
|
};
|