@tempots/ui 3.0.0 → 4.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/index.cjs +1 -1
- package/index.js +185 -179
- package/package.json +1 -1
- package/renderables/appearance.d.ts +11 -0
- package/renderables/autofocus.d.ts +57 -3
- package/renderables/autoselect.d.ts +63 -3
- package/renderables/hidden-when-empty.d.ts +0 -1
- package/renderables/inviewport.d.ts +116 -10
- package/renderables/resource.d.ts +115 -8
- package/renderables/router/location.d.ts +71 -3
- package/renderables/router/router.d.ts +93 -4
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var ge = Object.defineProperty;
|
|
2
2
|
var ye = (t, e, n) => e in t ? ge(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
-
var
|
|
3
|
+
var mt = (t, e, n) => ye(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { getWindow as J, prop as W, makeProviderMark as _t, Signal as It, Use as jt, html as Yt, on as qt, Value as D, attr as Kt, Empty as yt, OneOfType as Xt, WithElement as G, OnDispose as F, Portal as Jt, Fragment as At, renderableOfTNode as Rt, When as Gt, WithBrowserCtx as Qt, OneOfTuple as we, computedOf as xe, Prop as ve } from "@tempots/dom";
|
|
5
5
|
import { delayed as Zt, AsyncResult as C, nearEquals as tt, interval as be } from "@tempots/std";
|
|
6
6
|
const Ae = (t) => {
|
|
@@ -127,16 +127,21 @@ const Ae = (t) => {
|
|
|
127
127
|
Kt.href(n),
|
|
128
128
|
...e
|
|
129
129
|
));
|
|
130
|
-
},
|
|
130
|
+
}, Mn = {
|
|
131
131
|
mark: _t("Appearance"),
|
|
132
132
|
create: () => {
|
|
133
|
-
const t =
|
|
134
|
-
return
|
|
135
|
-
value:
|
|
136
|
-
dispose:
|
|
133
|
+
const t = We();
|
|
134
|
+
return {
|
|
135
|
+
value: t,
|
|
136
|
+
dispose: t.dispose
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
}
|
|
139
|
+
};
|
|
140
|
+
function We() {
|
|
141
|
+
const t = J(), e = t != null && t.matchMedia != null ? t.matchMedia("(prefers-color-scheme: dark)") : void 0, n = (e == null ? void 0 : e.matches) ?? !1, o = W(n ? "dark" : "light"), s = (i) => o.set(i.matches ? "dark" : "light");
|
|
142
|
+
return e == null || e.addEventListener("change", s), o.onDispose(() => e == null ? void 0 : e.removeEventListener("change", s)), o;
|
|
143
|
+
}
|
|
144
|
+
const ne = (t, e) => {
|
|
140
145
|
if (typeof e == "function")
|
|
141
146
|
return ne(t, { success: e });
|
|
142
147
|
const n = e.failure ?? ((r) => r.map((c) => `Error: ${c}`)), o = e.success, s = e.loading ?? (() => yt), i = e.notAsked ?? (() => yt);
|
|
@@ -146,15 +151,15 @@ const Ae = (t) => {
|
|
|
146
151
|
Loading: (r) => s(r.map((c) => c.previousValue)),
|
|
147
152
|
NotAsked: i
|
|
148
153
|
});
|
|
149
|
-
},
|
|
154
|
+
}, Vn = (t = 10) => G((e) => F(Zt(() => e == null ? void 0 : e.focus(), t))), Nn = (t = 10) => G((e) => {
|
|
150
155
|
const n = Zt(() => e.select(), t);
|
|
151
156
|
return F(n);
|
|
152
|
-
}),
|
|
157
|
+
}), $n = G((t) => {
|
|
153
158
|
const e = t.style.getPropertyValue(":empty");
|
|
154
159
|
return t.style.setProperty(":empty", "display:none"), F((n) => {
|
|
155
160
|
n && t.style.setProperty(":empty", e);
|
|
156
161
|
});
|
|
157
|
-
}),
|
|
162
|
+
}), Bn = (t) => Jt("head > title", Kt.innerText(t)), Fe = {
|
|
158
163
|
partial: {
|
|
159
164
|
root: null,
|
|
160
165
|
rootMargin: "0px",
|
|
@@ -172,19 +177,19 @@ const Ae = (t) => {
|
|
|
172
177
|
partial: null,
|
|
173
178
|
full: null
|
|
174
179
|
};
|
|
175
|
-
function
|
|
180
|
+
function Me(t) {
|
|
176
181
|
return q[t] == null && (q[t] = new IntersectionObserver((e) => {
|
|
177
182
|
e.forEach((n) => {
|
|
178
183
|
const o = nt[t].get(n.target);
|
|
179
184
|
o == null || o.set(n.isIntersecting);
|
|
180
185
|
});
|
|
181
|
-
},
|
|
186
|
+
}, Fe[t])), q[t];
|
|
182
187
|
}
|
|
183
|
-
const
|
|
188
|
+
const Ve = ({ mode: t = "partial", once: e = !1 }, n) => {
|
|
184
189
|
const o = W(!1);
|
|
185
190
|
return At(
|
|
186
191
|
G((s) => {
|
|
187
|
-
const i = typeof IntersectionObserver < "u" ?
|
|
192
|
+
const i = typeof IntersectionObserver < "u" ? Me(t) : null;
|
|
188
193
|
nt[t].set(s, o), i == null || i.observe(s);
|
|
189
194
|
function r() {
|
|
190
195
|
var l;
|
|
@@ -199,15 +204,15 @@ const Me = ({ mode: t = "partial", once: e = !1 }, n) => {
|
|
|
199
204
|
}),
|
|
200
205
|
Rt(n(o))
|
|
201
206
|
);
|
|
202
|
-
},
|
|
207
|
+
}, Un = (t, e, n) => Ve(t, (o) => Gt(o, e, n ?? (() => yt))), ot = Math.min, V = Math.max, st = Math.round, et = Math.floor, L = (t) => ({
|
|
203
208
|
x: t,
|
|
204
209
|
y: t
|
|
205
|
-
}),
|
|
210
|
+
}), Ne = {
|
|
206
211
|
left: "right",
|
|
207
212
|
right: "left",
|
|
208
213
|
bottom: "top",
|
|
209
214
|
top: "bottom"
|
|
210
|
-
},
|
|
215
|
+
}, $e = {
|
|
211
216
|
start: "end",
|
|
212
217
|
end: "start"
|
|
213
218
|
};
|
|
@@ -235,20 +240,20 @@ function z(t) {
|
|
|
235
240
|
function ie(t) {
|
|
236
241
|
return oe(z(t));
|
|
237
242
|
}
|
|
238
|
-
function
|
|
243
|
+
function Be(t, e, n) {
|
|
239
244
|
n === void 0 && (n = !1);
|
|
240
245
|
const o = at(t), s = ie(t), i = se(s);
|
|
241
246
|
let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
242
247
|
return e.reference[i] > e.floating[i] && (r = it(r)), [r, it(r)];
|
|
243
248
|
}
|
|
244
|
-
function
|
|
249
|
+
function Ue(t) {
|
|
245
250
|
const e = it(t);
|
|
246
251
|
return [xt(t), e, xt(e)];
|
|
247
252
|
}
|
|
248
253
|
function xt(t) {
|
|
249
|
-
return t.replace(/start|end/g, (e) =>
|
|
254
|
+
return t.replace(/start|end/g, (e) => $e[e]);
|
|
250
255
|
}
|
|
251
|
-
function
|
|
256
|
+
function He(t, e, n) {
|
|
252
257
|
const o = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], r = ["bottom", "top"];
|
|
253
258
|
switch (t) {
|
|
254
259
|
case "top":
|
|
@@ -261,15 +266,15 @@ function Ue(t, e, n) {
|
|
|
261
266
|
return [];
|
|
262
267
|
}
|
|
263
268
|
}
|
|
264
|
-
function
|
|
269
|
+
function ze(t, e, n, o) {
|
|
265
270
|
const s = at(t);
|
|
266
|
-
let i =
|
|
271
|
+
let i = He(N(t), n === "start", o);
|
|
267
272
|
return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(xt)))), i;
|
|
268
273
|
}
|
|
269
274
|
function it(t) {
|
|
270
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
275
|
+
return t.replace(/left|right|bottom|top/g, (e) => Ne[e]);
|
|
271
276
|
}
|
|
272
|
-
function
|
|
277
|
+
function _e(t) {
|
|
273
278
|
return {
|
|
274
279
|
top: 0,
|
|
275
280
|
right: 0,
|
|
@@ -278,8 +283,8 @@ function ze(t) {
|
|
|
278
283
|
...t
|
|
279
284
|
};
|
|
280
285
|
}
|
|
281
|
-
function
|
|
282
|
-
return typeof t != "number" ?
|
|
286
|
+
function Ie(t) {
|
|
287
|
+
return typeof t != "number" ? _e(t) : {
|
|
283
288
|
top: t,
|
|
284
289
|
right: t,
|
|
285
290
|
bottom: t,
|
|
@@ -352,7 +357,7 @@ function Ft(t, e, n) {
|
|
|
352
357
|
}
|
|
353
358
|
return h;
|
|
354
359
|
}
|
|
355
|
-
const
|
|
360
|
+
const je = async (t, e, n) => {
|
|
356
361
|
const {
|
|
357
362
|
placement: o = "bottom",
|
|
358
363
|
strategy: s = "absolute",
|
|
@@ -366,17 +371,17 @@ const Ie = async (t, e, n) => {
|
|
|
366
371
|
}), {
|
|
367
372
|
x: f,
|
|
368
373
|
y: u
|
|
369
|
-
} = Ft(a, o, l), d = o, h = {},
|
|
374
|
+
} = Ft(a, o, l), d = o, h = {}, p = 0;
|
|
370
375
|
for (let g = 0; g < c.length; g++) {
|
|
371
376
|
const {
|
|
372
377
|
name: y,
|
|
373
|
-
fn:
|
|
378
|
+
fn: m
|
|
374
379
|
} = c[g], {
|
|
375
380
|
x: w,
|
|
376
381
|
y: x,
|
|
377
382
|
data: b,
|
|
378
383
|
reset: v
|
|
379
|
-
} = await
|
|
384
|
+
} = await m({
|
|
380
385
|
x: f,
|
|
381
386
|
y: u,
|
|
382
387
|
initialPlacement: o,
|
|
@@ -396,7 +401,7 @@ const Ie = async (t, e, n) => {
|
|
|
396
401
|
...h[y],
|
|
397
402
|
...b
|
|
398
403
|
}
|
|
399
|
-
}, v &&
|
|
404
|
+
}, v && p <= 50 && (p++, typeof v == "object" && (v.placement && (d = v.placement), v.rects && (a = v.rects === !0 ? await r.getElementRects({
|
|
400
405
|
reference: t,
|
|
401
406
|
floating: e,
|
|
402
407
|
strategy: s
|
|
@@ -429,7 +434,7 @@ async function re(t, e) {
|
|
|
429
434
|
elementContext: u = "floating",
|
|
430
435
|
altBoundary: d = !1,
|
|
431
436
|
padding: h = 0
|
|
432
|
-
} = lt(e, t),
|
|
437
|
+
} = lt(e, t), p = Ie(h), y = c[d ? u === "floating" ? "reference" : "floating" : u], m = rt(await i.getClippingRect({
|
|
433
438
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(c.floating)),
|
|
434
439
|
boundary: a,
|
|
435
440
|
rootBoundary: f,
|
|
@@ -452,13 +457,13 @@ async function re(t, e) {
|
|
|
452
457
|
strategy: l
|
|
453
458
|
}) : w);
|
|
454
459
|
return {
|
|
455
|
-
top: (
|
|
456
|
-
bottom: (v.bottom -
|
|
457
|
-
left: (
|
|
458
|
-
right: (v.right -
|
|
460
|
+
top: (m.top - v.top + p.top) / b.y,
|
|
461
|
+
bottom: (v.bottom - m.bottom + p.bottom) / b.y,
|
|
462
|
+
left: (m.left - v.left + p.left) / b.x,
|
|
463
|
+
right: (v.right - m.right + p.right) / b.x
|
|
459
464
|
};
|
|
460
465
|
}
|
|
461
|
-
const
|
|
466
|
+
const Ye = function(t) {
|
|
462
467
|
return t === void 0 && (t = {}), {
|
|
463
468
|
name: "flip",
|
|
464
469
|
options: t,
|
|
@@ -476,26 +481,26 @@ const je = function(t) {
|
|
|
476
481
|
crossAxis: u = !0,
|
|
477
482
|
fallbackPlacements: d,
|
|
478
483
|
fallbackStrategy: h = "bestFit",
|
|
479
|
-
fallbackAxisSideDirection:
|
|
484
|
+
fallbackAxisSideDirection: p = "none",
|
|
480
485
|
flipAlignment: g = !0,
|
|
481
486
|
...y
|
|
482
487
|
} = lt(t, e);
|
|
483
488
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
484
489
|
return {};
|
|
485
|
-
const
|
|
486
|
-
!d && B && v.push(...
|
|
487
|
-
const
|
|
490
|
+
const m = N(s), w = z(c), x = N(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = d || (x || !g ? [it(c)] : Ue(c)), B = p !== "none";
|
|
491
|
+
!d && B && v.push(...ze(c, g, p, b));
|
|
492
|
+
const pe = [c, ...v], pt = await re(e, y), Z = [];
|
|
488
493
|
let j = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
489
|
-
if (f && Z.push(
|
|
490
|
-
const M =
|
|
491
|
-
Z.push(
|
|
494
|
+
if (f && Z.push(pt[m]), u) {
|
|
495
|
+
const M = Be(s, r, b);
|
|
496
|
+
Z.push(pt[M[0]], pt[M[1]]);
|
|
492
497
|
}
|
|
493
498
|
if (j = [...j, {
|
|
494
499
|
placement: s,
|
|
495
500
|
overflows: Z
|
|
496
501
|
}], !Z.every((M) => M <= 0)) {
|
|
497
502
|
var St, kt;
|
|
498
|
-
const M = (((St = i.flip) == null ? void 0 : St.index) || 0) + 1, Dt =
|
|
503
|
+
const M = (((St = i.flip) == null ? void 0 : St.index) || 0) + 1, Dt = pe[M];
|
|
499
504
|
if (Dt)
|
|
500
505
|
return {
|
|
501
506
|
data: {
|
|
@@ -519,7 +524,7 @@ const je = function(t) {
|
|
|
519
524
|
k === "y";
|
|
520
525
|
}
|
|
521
526
|
return !0;
|
|
522
|
-
}).map((S) => [S.placement, S.overflows.filter((k) => k > 0).reduce((k,
|
|
527
|
+
}).map((S) => [S.placement, S.overflows.filter((k) => k > 0).reduce((k, me) => k + me, 0)]).sort((S, k) => S[1] - k[1])[0]) == null ? void 0 : Ct[0];
|
|
523
528
|
U && (Y = U);
|
|
524
529
|
break;
|
|
525
530
|
}
|
|
@@ -538,7 +543,7 @@ const je = function(t) {
|
|
|
538
543
|
}
|
|
539
544
|
};
|
|
540
545
|
};
|
|
541
|
-
async function
|
|
546
|
+
async function qe(t, e) {
|
|
542
547
|
const {
|
|
543
548
|
placement: n,
|
|
544
549
|
platform: o,
|
|
@@ -547,7 +552,7 @@ async function Ye(t, e) {
|
|
|
547
552
|
let {
|
|
548
553
|
mainAxis: d,
|
|
549
554
|
crossAxis: h,
|
|
550
|
-
alignmentAxis:
|
|
555
|
+
alignmentAxis: p
|
|
551
556
|
} = typeof u == "number" ? {
|
|
552
557
|
mainAxis: u,
|
|
553
558
|
crossAxis: 0,
|
|
@@ -557,7 +562,7 @@ async function Ye(t, e) {
|
|
|
557
562
|
crossAxis: u.crossAxis || 0,
|
|
558
563
|
alignmentAxis: u.alignmentAxis
|
|
559
564
|
};
|
|
560
|
-
return c && typeof
|
|
565
|
+
return c && typeof p == "number" && (h = c === "end" ? p * -1 : p), l ? {
|
|
561
566
|
x: h * f,
|
|
562
567
|
y: d * a
|
|
563
568
|
} : {
|
|
@@ -565,7 +570,7 @@ async function Ye(t, e) {
|
|
|
565
570
|
y: h * f
|
|
566
571
|
};
|
|
567
572
|
}
|
|
568
|
-
const
|
|
573
|
+
const Ke = function(t) {
|
|
569
574
|
return t === void 0 && (t = 0), {
|
|
570
575
|
name: "offset",
|
|
571
576
|
options: t,
|
|
@@ -576,7 +581,7 @@ const qe = function(t) {
|
|
|
576
581
|
y: i,
|
|
577
582
|
placement: r,
|
|
578
583
|
middlewareData: c
|
|
579
|
-
} = e, l = await
|
|
584
|
+
} = e, l = await qe(e, t);
|
|
580
585
|
return r === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
581
586
|
x: s + l.x,
|
|
582
587
|
y: i + l.y,
|
|
@@ -587,7 +592,7 @@ const qe = function(t) {
|
|
|
587
592
|
};
|
|
588
593
|
}
|
|
589
594
|
};
|
|
590
|
-
},
|
|
595
|
+
}, Xe = function(t) {
|
|
591
596
|
return t === void 0 && (t = {}), {
|
|
592
597
|
name: "shift",
|
|
593
598
|
options: t,
|
|
@@ -602,11 +607,11 @@ const qe = function(t) {
|
|
|
602
607
|
limiter: c = {
|
|
603
608
|
fn: (y) => {
|
|
604
609
|
let {
|
|
605
|
-
x:
|
|
610
|
+
x: m,
|
|
606
611
|
y: w
|
|
607
612
|
} = y;
|
|
608
613
|
return {
|
|
609
|
-
x:
|
|
614
|
+
x: m,
|
|
610
615
|
y: w
|
|
611
616
|
};
|
|
612
617
|
}
|
|
@@ -616,19 +621,19 @@ const qe = function(t) {
|
|
|
616
621
|
x: n,
|
|
617
622
|
y: o
|
|
618
623
|
}, f = await re(e, l), u = z(N(s)), d = oe(u);
|
|
619
|
-
let h = a[d],
|
|
624
|
+
let h = a[d], p = a[u];
|
|
620
625
|
if (i) {
|
|
621
|
-
const y = d === "y" ? "top" : "left",
|
|
626
|
+
const y = d === "y" ? "top" : "left", m = d === "y" ? "bottom" : "right", w = h + f[y], x = h - f[m];
|
|
622
627
|
h = Wt(w, h, x);
|
|
623
628
|
}
|
|
624
629
|
if (r) {
|
|
625
|
-
const y = u === "y" ? "top" : "left",
|
|
626
|
-
|
|
630
|
+
const y = u === "y" ? "top" : "left", m = u === "y" ? "bottom" : "right", w = p + f[y], x = p - f[m];
|
|
631
|
+
p = Wt(w, p, x);
|
|
627
632
|
}
|
|
628
633
|
const g = c.fn({
|
|
629
634
|
...e,
|
|
630
635
|
[d]: h,
|
|
631
|
-
[u]:
|
|
636
|
+
[u]: p
|
|
632
637
|
});
|
|
633
638
|
return {
|
|
634
639
|
...g,
|
|
@@ -679,7 +684,7 @@ function Q(t) {
|
|
|
679
684
|
} = E(t);
|
|
680
685
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(s);
|
|
681
686
|
}
|
|
682
|
-
function
|
|
687
|
+
function Je(t) {
|
|
683
688
|
return ["table", "td", "th"].includes(I(t));
|
|
684
689
|
}
|
|
685
690
|
function ft(t) {
|
|
@@ -695,7 +700,7 @@ function Et(t) {
|
|
|
695
700
|
const e = Lt(), n = R(t) ? E(t) : t;
|
|
696
701
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
|
|
697
702
|
}
|
|
698
|
-
function
|
|
703
|
+
function Ge(t) {
|
|
699
704
|
let e = P(t);
|
|
700
705
|
for (; O(e) && !_(e); ) {
|
|
701
706
|
if (Et(e))
|
|
@@ -781,15 +786,15 @@ function H(t) {
|
|
|
781
786
|
y: c
|
|
782
787
|
};
|
|
783
788
|
}
|
|
784
|
-
const
|
|
789
|
+
const Qe = /* @__PURE__ */ L(0);
|
|
785
790
|
function ue(t) {
|
|
786
791
|
const e = A(t);
|
|
787
|
-
return !Lt() || !e.visualViewport ?
|
|
792
|
+
return !Lt() || !e.visualViewport ? Qe : {
|
|
788
793
|
x: e.visualViewport.offsetLeft,
|
|
789
794
|
y: e.visualViewport.offsetTop
|
|
790
795
|
};
|
|
791
796
|
}
|
|
792
|
-
function
|
|
797
|
+
function Ze(t, e, n) {
|
|
793
798
|
return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
|
|
794
799
|
}
|
|
795
800
|
function $(t, e, n, o) {
|
|
@@ -797,14 +802,14 @@ function $(t, e, n, o) {
|
|
|
797
802
|
const s = t.getBoundingClientRect(), i = Ot(t);
|
|
798
803
|
let r = L(1);
|
|
799
804
|
e && (o ? R(o) && (r = H(o)) : r = H(t));
|
|
800
|
-
const c =
|
|
805
|
+
const c = Ze(i, n, o) ? ue(i) : L(0);
|
|
801
806
|
let l = (s.left + c.x) / r.x, a = (s.top + c.y) / r.y, f = s.width / r.x, u = s.height / r.y;
|
|
802
807
|
if (i) {
|
|
803
808
|
const d = A(i), h = o && R(o) ? A(o) : o;
|
|
804
|
-
let
|
|
805
|
-
for (; g && o && h !==
|
|
806
|
-
const y = H(g),
|
|
807
|
-
l *= y.x, a *= y.y, f *= y.x, u *= y.y, l += x, a += b,
|
|
809
|
+
let p = d, g = vt(p);
|
|
810
|
+
for (; g && o && h !== p; ) {
|
|
811
|
+
const y = H(g), m = g.getBoundingClientRect(), w = E(g), x = m.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, b = m.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
812
|
+
l *= y.x, a *= y.y, f *= y.x, u *= y.y, l += x, a += b, p = A(g), g = vt(p);
|
|
808
813
|
}
|
|
809
814
|
}
|
|
810
815
|
return rt({
|
|
@@ -829,7 +834,7 @@ function fe(t, e, n) {
|
|
|
829
834
|
y: i
|
|
830
835
|
};
|
|
831
836
|
}
|
|
832
|
-
function
|
|
837
|
+
function tn(t) {
|
|
833
838
|
let {
|
|
834
839
|
elements: e,
|
|
835
840
|
rect: n,
|
|
@@ -856,10 +861,10 @@ function Ze(t) {
|
|
|
856
861
|
y: n.y * a.y - l.scrollTop * a.y + f.y + d.y
|
|
857
862
|
};
|
|
858
863
|
}
|
|
859
|
-
function
|
|
864
|
+
function en(t) {
|
|
860
865
|
return Array.from(t.getClientRects());
|
|
861
866
|
}
|
|
862
|
-
function
|
|
867
|
+
function nn(t) {
|
|
863
868
|
const e = T(t), n = ht(t), o = t.ownerDocument.body, s = V(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = V(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
864
869
|
let r = -n.scrollLeft + Tt(t);
|
|
865
870
|
const c = -n.scrollTop;
|
|
@@ -870,7 +875,7 @@ function en(t) {
|
|
|
870
875
|
y: c
|
|
871
876
|
};
|
|
872
877
|
}
|
|
873
|
-
function
|
|
878
|
+
function on(t, e) {
|
|
874
879
|
const n = A(t), o = T(t), s = n.visualViewport;
|
|
875
880
|
let i = o.clientWidth, r = o.clientHeight, c = 0, l = 0;
|
|
876
881
|
if (s) {
|
|
@@ -885,7 +890,7 @@ function nn(t, e) {
|
|
|
885
890
|
y: l
|
|
886
891
|
};
|
|
887
892
|
}
|
|
888
|
-
function
|
|
893
|
+
function sn(t, e) {
|
|
889
894
|
const n = $(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = O(t) ? H(t) : L(1), r = t.clientWidth * i.x, c = t.clientHeight * i.y, l = s * i.x, a = o * i.y;
|
|
890
895
|
return {
|
|
891
896
|
width: r,
|
|
@@ -897,11 +902,11 @@ function on(t, e) {
|
|
|
897
902
|
function Vt(t, e, n) {
|
|
898
903
|
let o;
|
|
899
904
|
if (e === "viewport")
|
|
900
|
-
o =
|
|
905
|
+
o = on(t, n);
|
|
901
906
|
else if (e === "document")
|
|
902
|
-
o =
|
|
907
|
+
o = nn(T(t));
|
|
903
908
|
else if (R(e))
|
|
904
|
-
o =
|
|
909
|
+
o = sn(e, n);
|
|
905
910
|
else {
|
|
906
911
|
const s = ue(t);
|
|
907
912
|
o = {
|
|
@@ -917,7 +922,7 @@ function he(t, e) {
|
|
|
917
922
|
const n = P(t);
|
|
918
923
|
return n === e || !R(n) || _(n) ? !1 : E(n).position === "fixed" || he(n, e);
|
|
919
924
|
}
|
|
920
|
-
function
|
|
925
|
+
function rn(t, e) {
|
|
921
926
|
const n = e.get(t);
|
|
922
927
|
if (n)
|
|
923
928
|
return n;
|
|
@@ -930,14 +935,14 @@ function sn(t, e) {
|
|
|
930
935
|
}
|
|
931
936
|
return e.set(t, o), o;
|
|
932
937
|
}
|
|
933
|
-
function
|
|
938
|
+
function cn(t) {
|
|
934
939
|
let {
|
|
935
940
|
element: e,
|
|
936
941
|
boundary: n,
|
|
937
942
|
rootBoundary: o,
|
|
938
943
|
strategy: s
|
|
939
944
|
} = t;
|
|
940
|
-
const r = [...n === "clippingAncestors" ? ft(e) ? [] :
|
|
945
|
+
const r = [...n === "clippingAncestors" ? ft(e) ? [] : rn(e, this._c) : [].concat(n), o], c = r[0], l = r.reduce((a, f) => {
|
|
941
946
|
const u = Vt(e, f, s);
|
|
942
947
|
return a.top = V(u.top, a.top), a.right = ot(u.right, a.right), a.bottom = ot(u.bottom, a.bottom), a.left = V(u.left, a.left), a;
|
|
943
948
|
}, Vt(e, c, s));
|
|
@@ -948,7 +953,7 @@ function rn(t) {
|
|
|
948
953
|
y: l.top
|
|
949
954
|
};
|
|
950
955
|
}
|
|
951
|
-
function
|
|
956
|
+
function ln(t) {
|
|
952
957
|
const {
|
|
953
958
|
width: e,
|
|
954
959
|
height: n
|
|
@@ -958,7 +963,7 @@ function cn(t) {
|
|
|
958
963
|
height: n
|
|
959
964
|
};
|
|
960
965
|
}
|
|
961
|
-
function
|
|
966
|
+
function an(t, e, n) {
|
|
962
967
|
const o = O(e), s = T(e), i = n === "fixed", r = $(t, !0, i, e);
|
|
963
968
|
let c = {
|
|
964
969
|
scrollLeft: 0,
|
|
@@ -1003,14 +1008,14 @@ function de(t, e) {
|
|
|
1003
1008
|
return n;
|
|
1004
1009
|
}
|
|
1005
1010
|
let o = Nt(t, e);
|
|
1006
|
-
for (; o &&
|
|
1011
|
+
for (; o && Je(o) && gt(o); )
|
|
1007
1012
|
o = Nt(o, e);
|
|
1008
|
-
return o && _(o) && gt(o) && !Et(o) ? n : o ||
|
|
1013
|
+
return o && _(o) && gt(o) && !Et(o) ? n : o || Ge(t) || n;
|
|
1009
1014
|
}
|
|
1010
|
-
const
|
|
1015
|
+
const un = async function(t) {
|
|
1011
1016
|
const e = this.getOffsetParent || de, n = this.getDimensions, o = await n(t.floating);
|
|
1012
1017
|
return {
|
|
1013
|
-
reference:
|
|
1018
|
+
reference: an(t.reference, await e(t.floating), t.strategy),
|
|
1014
1019
|
floating: {
|
|
1015
1020
|
x: 0,
|
|
1016
1021
|
y: 0,
|
|
@@ -1019,22 +1024,22 @@ const an = async function(t) {
|
|
|
1019
1024
|
}
|
|
1020
1025
|
};
|
|
1021
1026
|
};
|
|
1022
|
-
function
|
|
1027
|
+
function fn(t) {
|
|
1023
1028
|
return E(t).direction === "rtl";
|
|
1024
1029
|
}
|
|
1025
|
-
const
|
|
1026
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1030
|
+
const hn = {
|
|
1031
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: tn,
|
|
1027
1032
|
getDocumentElement: T,
|
|
1028
|
-
getClippingRect:
|
|
1033
|
+
getClippingRect: cn,
|
|
1029
1034
|
getOffsetParent: de,
|
|
1030
|
-
getElementRects:
|
|
1031
|
-
getClientRects:
|
|
1032
|
-
getDimensions:
|
|
1035
|
+
getElementRects: un,
|
|
1036
|
+
getClientRects: en,
|
|
1037
|
+
getDimensions: ln,
|
|
1033
1038
|
getScale: H,
|
|
1034
1039
|
isElement: R,
|
|
1035
|
-
isRTL:
|
|
1040
|
+
isRTL: fn
|
|
1036
1041
|
};
|
|
1037
|
-
function
|
|
1042
|
+
function dn(t, e) {
|
|
1038
1043
|
let n = null, o;
|
|
1039
1044
|
const s = T(t);
|
|
1040
1045
|
function i() {
|
|
@@ -1051,8 +1056,8 @@ function hn(t, e) {
|
|
|
1051
1056
|
} = t.getBoundingClientRect();
|
|
1052
1057
|
if (c || e(), !u || !d)
|
|
1053
1058
|
return;
|
|
1054
|
-
const h = et(f),
|
|
1055
|
-
rootMargin: -h + "px " + -
|
|
1059
|
+
const h = et(f), p = et(s.clientWidth - (a + u)), g = et(s.clientHeight - (f + d)), y = et(a), w = {
|
|
1060
|
+
rootMargin: -h + "px " + -p + "px " + -g + "px " + -y + "px",
|
|
1056
1061
|
threshold: V(0, ot(1, l)) || 1
|
|
1057
1062
|
};
|
|
1058
1063
|
let x = !0;
|
|
@@ -1080,7 +1085,7 @@ function hn(t, e) {
|
|
|
1080
1085
|
}
|
|
1081
1086
|
return r(!0), i;
|
|
1082
1087
|
}
|
|
1083
|
-
function
|
|
1088
|
+
function pn(t, e, n, o) {
|
|
1084
1089
|
o === void 0 && (o = {});
|
|
1085
1090
|
const {
|
|
1086
1091
|
ancestorScroll: s = !0,
|
|
@@ -1089,46 +1094,46 @@ function dn(t, e, n, o) {
|
|
|
1089
1094
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1090
1095
|
animationFrame: l = !1
|
|
1091
1096
|
} = o, a = Ot(t), f = s || i ? [...a ? K(a) : [], ...K(e)] : [];
|
|
1092
|
-
f.forEach((
|
|
1093
|
-
s &&
|
|
1097
|
+
f.forEach((m) => {
|
|
1098
|
+
s && m.addEventListener("scroll", n, {
|
|
1094
1099
|
passive: !0
|
|
1095
|
-
}), i &&
|
|
1100
|
+
}), i && m.addEventListener("resize", n);
|
|
1096
1101
|
});
|
|
1097
|
-
const u = a && c ?
|
|
1102
|
+
const u = a && c ? dn(a, n) : null;
|
|
1098
1103
|
let d = -1, h = null;
|
|
1099
|
-
r && (h = new ResizeObserver((
|
|
1100
|
-
let [w] =
|
|
1104
|
+
r && (h = new ResizeObserver((m) => {
|
|
1105
|
+
let [w] = m;
|
|
1101
1106
|
w && w.target === a && h && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
1102
1107
|
var x;
|
|
1103
1108
|
(x = h) == null || x.observe(e);
|
|
1104
1109
|
})), n();
|
|
1105
1110
|
}), a && !l && h.observe(a), h.observe(e));
|
|
1106
|
-
let
|
|
1111
|
+
let p, g = l ? $(t) : null;
|
|
1107
1112
|
l && y();
|
|
1108
1113
|
function y() {
|
|
1109
|
-
const
|
|
1110
|
-
g && (
|
|
1114
|
+
const m = $(t);
|
|
1115
|
+
g && (m.x !== g.x || m.y !== g.y || m.width !== g.width || m.height !== g.height) && n(), g = m, p = requestAnimationFrame(y);
|
|
1111
1116
|
}
|
|
1112
1117
|
return n(), () => {
|
|
1113
|
-
var
|
|
1118
|
+
var m;
|
|
1114
1119
|
f.forEach((w) => {
|
|
1115
1120
|
s && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1116
|
-
}), u == null || u(), (
|
|
1121
|
+
}), u == null || u(), (m = h) == null || m.disconnect(), h = null, l && cancelAnimationFrame(p);
|
|
1117
1122
|
};
|
|
1118
1123
|
}
|
|
1119
|
-
const mn =
|
|
1124
|
+
const mn = Ke, gn = Xe, $t = Ye, yn = (t, e, n) => {
|
|
1120
1125
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
1121
|
-
platform:
|
|
1126
|
+
platform: hn,
|
|
1122
1127
|
...n
|
|
1123
1128
|
}, i = {
|
|
1124
1129
|
...s.platform,
|
|
1125
1130
|
_c: o
|
|
1126
1131
|
};
|
|
1127
|
-
return
|
|
1132
|
+
return je(t, e, {
|
|
1128
1133
|
...s,
|
|
1129
1134
|
platform: i
|
|
1130
1135
|
});
|
|
1131
|
-
},
|
|
1136
|
+
}, Hn = ({
|
|
1132
1137
|
content: t,
|
|
1133
1138
|
open: e,
|
|
1134
1139
|
placement: n,
|
|
@@ -1143,14 +1148,14 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1143
1148
|
G((l) => {
|
|
1144
1149
|
const a = l;
|
|
1145
1150
|
return a.style.position = "absolute", F(
|
|
1146
|
-
|
|
1147
|
-
const { x: f, y: u } = await
|
|
1151
|
+
pn(c, a, async () => {
|
|
1152
|
+
const { x: f, y: u } = await yn(c, a, {
|
|
1148
1153
|
placement: n,
|
|
1149
1154
|
strategy: "absolute",
|
|
1150
1155
|
middleware: [
|
|
1151
1156
|
$t(),
|
|
1152
1157
|
mn({ mainAxis: o, crossAxis: s }),
|
|
1153
|
-
|
|
1158
|
+
gn(),
|
|
1154
1159
|
$t()
|
|
1155
1160
|
]
|
|
1156
1161
|
});
|
|
@@ -1162,7 +1167,7 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1162
1167
|
)
|
|
1163
1168
|
)
|
|
1164
1169
|
);
|
|
1165
|
-
}),
|
|
1170
|
+
}), wn = (t, e, n) => {
|
|
1166
1171
|
const o = W(C.notAsked), s = o.map(
|
|
1167
1172
|
(u) => C.isSuccess(u) ? u.value : void 0
|
|
1168
1173
|
), i = o.map(
|
|
@@ -1174,10 +1179,10 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1174
1179
|
const d = c.signal, h = o.get();
|
|
1175
1180
|
o.set(C.loading(C.getOrUndefined(h)));
|
|
1176
1181
|
try {
|
|
1177
|
-
const
|
|
1178
|
-
await Promise.resolve(), c = void 0, o.set(C.success(
|
|
1179
|
-
} catch (
|
|
1180
|
-
c = void 0, o.set(C.failure(n(
|
|
1182
|
+
const p = await e({ request: u, abortSignal: d, previous: h });
|
|
1183
|
+
await Promise.resolve(), c = void 0, o.set(C.success(p));
|
|
1184
|
+
} catch (p) {
|
|
1185
|
+
c = void 0, o.set(C.failure(n(p)));
|
|
1181
1186
|
}
|
|
1182
1187
|
}, a = () => l(D.get(t)), f = () => {
|
|
1183
1188
|
c == null || c.abort(), c = void 0, o.dispose();
|
|
@@ -1190,7 +1195,7 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1190
1195
|
reload: a,
|
|
1191
1196
|
dispose: f
|
|
1192
1197
|
};
|
|
1193
|
-
},
|
|
1198
|
+
}, xn = (t, e) => {
|
|
1194
1199
|
const { status: n, dispose: o, reload: s } = t, { loading: i, failure: r, success: c } = e;
|
|
1195
1200
|
return At(
|
|
1196
1201
|
F(o),
|
|
@@ -1200,16 +1205,16 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1200
1205
|
success: (l) => c(l, s)
|
|
1201
1206
|
})
|
|
1202
1207
|
);
|
|
1203
|
-
},
|
|
1208
|
+
}, zn = ({
|
|
1204
1209
|
request: t,
|
|
1205
1210
|
load: e,
|
|
1206
1211
|
mapError: n = (o) => o
|
|
1207
1212
|
}) => {
|
|
1208
|
-
const o =
|
|
1209
|
-
return (s) =>
|
|
1210
|
-
},
|
|
1213
|
+
const o = wn(t, e, n);
|
|
1214
|
+
return (s) => xn(o, s);
|
|
1215
|
+
}, vn = (t, e) => {
|
|
1211
1216
|
if (typeof e == "function")
|
|
1212
|
-
return
|
|
1217
|
+
return vn(t, { success: e });
|
|
1213
1218
|
const n = e.failure ?? ((s) => At(
|
|
1214
1219
|
F(s.on(console.error)),
|
|
1215
1220
|
s.map((i) => `Error: ${i}`)
|
|
@@ -1218,7 +1223,7 @@ const mn = qe, pn = Ke, $t = je, gn = (t, e, n) => {
|
|
|
1218
1223
|
Success: (s) => o(s.$.value),
|
|
1219
1224
|
Failure: (s) => n(s.$.error)
|
|
1220
1225
|
});
|
|
1221
|
-
},
|
|
1226
|
+
}, _n = () => qt.focus((t) => {
|
|
1222
1227
|
var e;
|
|
1223
1228
|
return (e = t.target) == null ? void 0 : e.select();
|
|
1224
1229
|
});
|
|
@@ -1261,7 +1266,7 @@ class dt {
|
|
|
1261
1266
|
* console.log(rect1.equals(rect3)); // true (within tolerance)
|
|
1262
1267
|
* ```
|
|
1263
1268
|
*/
|
|
1264
|
-
|
|
1269
|
+
mt(this, "equals", (e) => tt(this.left, e.left) && tt(this.top, e.top) && tt(this.width, e.width) && tt(this.height, e.height));
|
|
1265
1270
|
this.left = e, this.top = n, this.width = o, this.height = s;
|
|
1266
1271
|
}
|
|
1267
1272
|
/**
|
|
@@ -1370,7 +1375,7 @@ function Bt(t) {
|
|
|
1370
1375
|
height: e.height
|
|
1371
1376
|
});
|
|
1372
1377
|
}
|
|
1373
|
-
const
|
|
1378
|
+
const bn = (t) => Qt((e) => {
|
|
1374
1379
|
const { element: n } = e, o = W(Bt(n)), s = Rt(t(o))(e), i = () => {
|
|
1375
1380
|
o.set(dt.of(Bt(n)));
|
|
1376
1381
|
};
|
|
@@ -1378,7 +1383,7 @@ const vn = (t) => Qt((e) => {
|
|
|
1378
1383
|
return typeof ResizeObserver == "function" && (r = new ResizeObserver(i), r.observe(n)), F((c) => {
|
|
1379
1384
|
r == null || r.disconnect(), s(c);
|
|
1380
1385
|
});
|
|
1381
|
-
}),
|
|
1386
|
+
}), In = (t) => bn(t), jn = (t) => (e) => {
|
|
1382
1387
|
const n = J(), o = W({
|
|
1383
1388
|
width: (n == null ? void 0 : n.innerWidth) ?? 0,
|
|
1384
1389
|
height: (n == null ? void 0 : n.innerHeight) ?? 0
|
|
@@ -1391,7 +1396,7 @@ const vn = (t) => Qt((e) => {
|
|
|
1391
1396
|
return n == null || n.addEventListener("resize", i), (r) => {
|
|
1392
1397
|
n == null || n.removeEventListener("resize", i), s(r);
|
|
1393
1398
|
};
|
|
1394
|
-
},
|
|
1399
|
+
}, An = (t, e) => {
|
|
1395
1400
|
const n = e.split("/").filter((s) => s !== ""), o = {};
|
|
1396
1401
|
for (let s = 0; s < t.length; s++) {
|
|
1397
1402
|
const i = t[s], r = n[s];
|
|
@@ -1406,21 +1411,21 @@ const vn = (t) => Qt((e) => {
|
|
|
1406
1411
|
return { params: o, path: e };
|
|
1407
1412
|
}
|
|
1408
1413
|
return n.length !== t.length ? null : { params: o, path: e };
|
|
1409
|
-
},
|
|
1414
|
+
}, Rn = (t) => t.split("/").map((e) => e.startsWith(":") ? { type: "param", name: e.slice(1) } : e === "*" ? { type: "catch-all" } : { type: "literal", value: e }).filter((e) => e.type !== "literal" || e.value !== ""), En = (t) => {
|
|
1410
1415
|
const e = t.map((n) => {
|
|
1411
|
-
const o =
|
|
1416
|
+
const o = Rn(n);
|
|
1412
1417
|
return { route: n, segments: o };
|
|
1413
1418
|
});
|
|
1414
1419
|
return function(o) {
|
|
1415
1420
|
for (const { segments: s, route: i } of e) {
|
|
1416
|
-
const r =
|
|
1421
|
+
const r = An(s, o);
|
|
1417
1422
|
if (r)
|
|
1418
1423
|
return { ...r, route: i };
|
|
1419
1424
|
}
|
|
1420
1425
|
return null;
|
|
1421
1426
|
};
|
|
1422
|
-
},
|
|
1423
|
-
const e =
|
|
1427
|
+
}, Yn = (t) => {
|
|
1428
|
+
const e = En(Object.keys(t));
|
|
1424
1429
|
return jt(ee, (n) => {
|
|
1425
1430
|
const o = n.map((s) => {
|
|
1426
1431
|
const i = e(s.pathname);
|
|
@@ -1440,7 +1445,7 @@ const vn = (t) => Qt((e) => {
|
|
|
1440
1445
|
t
|
|
1441
1446
|
);
|
|
1442
1447
|
});
|
|
1443
|
-
}, ct = 60 * 1e3, bt = 60 * ct, X = 24 * bt, Ut = 7 * X, Ht = 30 * X,
|
|
1448
|
+
}, ct = 60 * 1e3, bt = 60 * ct, X = 24 * bt, Ut = 7 * X, Ht = 30 * X, Ln = 365 * X, On = [
|
|
1444
1449
|
{
|
|
1445
1450
|
max: ct * 90,
|
|
1446
1451
|
value: ct,
|
|
@@ -1478,7 +1483,7 @@ const vn = (t) => Qt((e) => {
|
|
|
1478
1483
|
},
|
|
1479
1484
|
{
|
|
1480
1485
|
max: 1 / 0,
|
|
1481
|
-
value:
|
|
1486
|
+
value: Ln,
|
|
1482
1487
|
name: "year",
|
|
1483
1488
|
past: { singular: "last year", plural: "{} years ago" },
|
|
1484
1489
|
future: { singular: "in a year", plural: "in {} years" }
|
|
@@ -1494,76 +1499,77 @@ function zt(t, e, n, o) {
|
|
|
1494
1499
|
})
|
|
1495
1500
|
);
|
|
1496
1501
|
}
|
|
1497
|
-
const
|
|
1502
|
+
const Tn = (t = 1e3) => {
|
|
1498
1503
|
const e = W(/* @__PURE__ */ new Date()), n = be(() => e.set(/* @__PURE__ */ new Date()), t);
|
|
1499
1504
|
return e.onDispose(n), e;
|
|
1500
|
-
},
|
|
1505
|
+
}, Sn = (t) => {
|
|
1501
1506
|
const e = Math.abs(t);
|
|
1502
1507
|
if (e < ct)
|
|
1503
1508
|
return t < 0 ? "just now" : "in a moment";
|
|
1504
|
-
for (const n of
|
|
1509
|
+
for (const n of On)
|
|
1505
1510
|
if (e < n.max)
|
|
1506
1511
|
return t < 0 ? zt(e, n.value, n.past.singular, n.past.plural) : zt(e, n.value, n.future.singular, n.future.plural);
|
|
1507
1512
|
throw new Error("unreachable");
|
|
1508
|
-
},
|
|
1509
|
-
const o = e != null ? It.is(e) ? e.derive() : W(e) :
|
|
1513
|
+
}, kn = (t, { now: e, frequency: n = 1e4 } = {}) => {
|
|
1514
|
+
const o = e != null ? It.is(e) ? e.derive() : W(e) : Tn(n), s = xe(
|
|
1510
1515
|
t,
|
|
1511
1516
|
o
|
|
1512
1517
|
)((i, r) => i.getTime() - r.getTime());
|
|
1513
1518
|
return s.onDispose(() => D.dispose(o)), s;
|
|
1514
|
-
},
|
|
1515
|
-
const n =
|
|
1519
|
+
}, Cn = (t, e = {}) => {
|
|
1520
|
+
const n = kn(t, e), o = n.map(Sn);
|
|
1516
1521
|
return o.onDispose(n.dispose), o;
|
|
1517
|
-
},
|
|
1518
|
-
class
|
|
1522
|
+
}, qn = (t, e = {}) => Cn(t, e);
|
|
1523
|
+
class Dn extends ve {
|
|
1519
1524
|
constructor() {
|
|
1520
1525
|
super(...arguments);
|
|
1521
1526
|
/**
|
|
1522
1527
|
* Triggers an update of the Ticker by incrementing its internal value.
|
|
1523
1528
|
* @returns void
|
|
1524
1529
|
*/
|
|
1525
|
-
|
|
1530
|
+
mt(this, "tick", () => this.update((n) => n + 1));
|
|
1526
1531
|
}
|
|
1527
1532
|
}
|
|
1528
|
-
const
|
|
1533
|
+
const Kn = (t = 0) => new Dn(t, (e, n) => e === n);
|
|
1529
1534
|
export {
|
|
1530
1535
|
Pe as Anchor,
|
|
1531
|
-
|
|
1536
|
+
Mn as Appearance,
|
|
1532
1537
|
ne as AsyncResultView,
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1538
|
+
Vn as AutoFocus,
|
|
1539
|
+
Nn as AutoSelect,
|
|
1540
|
+
bn as ElementRect,
|
|
1541
|
+
In as ElementSize,
|
|
1542
|
+
Bn as HTMLTitle,
|
|
1543
|
+
$n as HiddenWhenEmpty,
|
|
1544
|
+
Ve as InViewport,
|
|
1540
1545
|
ee as Location,
|
|
1541
|
-
|
|
1546
|
+
Hn as PopOver,
|
|
1542
1547
|
dt as Rect,
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1548
|
+
zn as Resource,
|
|
1549
|
+
xn as ResourceDisplay,
|
|
1550
|
+
vn as ResultView,
|
|
1551
|
+
Yn as Router,
|
|
1552
|
+
_n as SelectOnFocus,
|
|
1553
|
+
Dn as Ticker,
|
|
1554
|
+
Un as WhenInViewport,
|
|
1555
|
+
jn as WindowSize,
|
|
1551
1556
|
Re as _checkExtensionCondition,
|
|
1552
1557
|
Ae as _getExtension,
|
|
1553
|
-
|
|
1554
|
-
|
|
1558
|
+
En as _makeRouteMatcher,
|
|
1559
|
+
Rn as _parseRouteSegments,
|
|
1555
1560
|
Oe as areLocationsEqual,
|
|
1556
1561
|
Bt as getAbsoluteRect,
|
|
1557
1562
|
Le as handleAnchorClick,
|
|
1558
1563
|
te as locationFromURL,
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1564
|
+
wn as makeResource,
|
|
1565
|
+
An as matchesRoute,
|
|
1566
|
+
Tn as nowSignal,
|
|
1567
|
+
qn as relativeTime,
|
|
1568
|
+
kn as relativeTimeMillisSignal,
|
|
1569
|
+
Cn as relativeTimeSignal,
|
|
1565
1570
|
Pt as setLocationFromUrl,
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
wt as urlFromLocation
|
|
1571
|
+
Kn as ticker,
|
|
1572
|
+
Sn as timeDiffToString,
|
|
1573
|
+
wt as urlFromLocation,
|
|
1574
|
+
We as useAppearance
|
|
1569
1575
|
};
|