@tempots/ui 2.5.5 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +1 -1
- package/index.js +323 -315
- package/package.json +1 -1
- package/renderables/anchor.d.ts +4 -0
- package/utils/view-transition.d.ts +1 -0
package/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var kt = (t, e, n) =>
|
|
4
|
-
import { getWindow as
|
|
5
|
-
import { delayed as
|
|
1
|
+
var he = Object.defineProperty;
|
|
2
|
+
var me = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var kt = (t, e, n) => me(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
+
import { getWindow as J, prop as W, makeProviderMark as Ut, Signal as Bt, Use as zt, html as _t, on as It, Value as B, attr as jt, Empty as mt, OneOfType as Yt, WithElement as G, OnDispose as P, Portal as Kt, Fragment as xt, renderableOfTNode as vt, When as qt, WithBrowserCtx as Xt, OneOfTuple as pe, computedOf as ge, Prop as ye } from "@tempots/dom";
|
|
5
|
+
import { delayed as Jt, AsyncResult as C, interval as we } from "@tempots/std";
|
|
6
6
|
const xe = (t) => {
|
|
7
7
|
const e = t.split("/").pop();
|
|
8
8
|
if (e == null || e.startsWith(".")) return;
|
|
9
9
|
const n = e.split(".") || [];
|
|
10
10
|
return n.length > 1 ? "." + n.pop() : void 0;
|
|
11
|
-
},
|
|
11
|
+
}, ve = (t, e) => {
|
|
12
12
|
const n = xe(e);
|
|
13
13
|
return n != null && (t.length === 0 || !t.some((o) => n == o));
|
|
14
|
-
},
|
|
14
|
+
}, be = (t, e, n, o) => {
|
|
15
15
|
let s = t.target;
|
|
16
16
|
for (; s != null && !(s instanceof HTMLAnchorElement); )
|
|
17
17
|
s = s.parentElement;
|
|
@@ -26,8 +26,8 @@ const xe = (t) => {
|
|
|
26
26
|
if (!(f != null && f.startsWith("#")) && f !== a)
|
|
27
27
|
return !0;
|
|
28
28
|
}
|
|
29
|
-
return e ? !1 :
|
|
30
|
-
},
|
|
29
|
+
return e ? !1 : ve(n, i);
|
|
30
|
+
}, Ae = (t, e = {
|
|
31
31
|
ignoreUrlWithExtension: !0,
|
|
32
32
|
allowedExtensions: [],
|
|
33
33
|
ignoreExternalUrl: !0
|
|
@@ -36,31 +36,31 @@ const xe = (t) => {
|
|
|
36
36
|
(o) => o.startsWith(".") ? o : "." + o
|
|
37
37
|
) : [];
|
|
38
38
|
return (o) => {
|
|
39
|
-
|
|
39
|
+
be(
|
|
40
40
|
o,
|
|
41
41
|
e.ignoreUrlWithExtension ?? !0,
|
|
42
42
|
n,
|
|
43
43
|
e.ignoreExternalUrl ?? !0
|
|
44
44
|
) || t() && o.preventDefault();
|
|
45
45
|
};
|
|
46
|
-
},
|
|
46
|
+
}, Re = (t, e) => t.pathname === e.pathname && JSON.stringify(t.search) === JSON.stringify(e.search) && t.hash === e.hash, Gt = (t, e) => {
|
|
47
47
|
var r;
|
|
48
|
-
const n = new URL(t, e ?? ((r =
|
|
48
|
+
const n = new URL(t, e ?? ((r = J()) == null ? void 0 : r.location.toString())), o = Object.fromEntries(n.searchParams.entries());
|
|
49
49
|
let s = n.hash;
|
|
50
50
|
return s.startsWith("#") && (s = s.substring(1)), {
|
|
51
51
|
pathname: n.pathname,
|
|
52
52
|
search: o,
|
|
53
53
|
hash: s === "" ? void 0 : s
|
|
54
54
|
};
|
|
55
|
-
},
|
|
56
|
-
const n =
|
|
55
|
+
}, Ct = (t, e) => {
|
|
56
|
+
const n = Gt(e);
|
|
57
57
|
return t.set(n), t;
|
|
58
58
|
}, pt = (t) => {
|
|
59
59
|
const n = new URLSearchParams(t.search).toString(), o = t.hash;
|
|
60
60
|
return `${t.pathname}${n ? `?${n}` : ""}${o ? `#${o}` : ""}`;
|
|
61
61
|
}, Ee = (t) => t.startsWith("http://") || t.startsWith("https://") || t.startsWith("//"), Le = (t) => {
|
|
62
62
|
const e = t.container.currentURL, n = e.iso(
|
|
63
|
-
(o) =>
|
|
63
|
+
(o) => Gt(o),
|
|
64
64
|
(o) => {
|
|
65
65
|
if (Ee(o.pathname))
|
|
66
66
|
return pt(o);
|
|
@@ -70,7 +70,7 @@ const xe = (t) => {
|
|
|
70
70
|
);
|
|
71
71
|
return { value: n, dispose: n.dispose };
|
|
72
72
|
}, Oe = () => {
|
|
73
|
-
const t =
|
|
73
|
+
const t = J(), e = (t == null ? void 0 : t.location.hash) === "" ? void 0 : (t == null ? void 0 : t.location.hash.substring(1)) ?? void 0;
|
|
74
74
|
return {
|
|
75
75
|
pathname: (t == null ? void 0 : t.location.pathname) ?? "",
|
|
76
76
|
search: Object.fromEntries(
|
|
@@ -78,8 +78,8 @@ const xe = (t) => {
|
|
|
78
78
|
),
|
|
79
79
|
hash: e
|
|
80
80
|
};
|
|
81
|
-
},
|
|
82
|
-
const t = W(Oe(),
|
|
81
|
+
}, Te = () => {
|
|
82
|
+
const t = W(Oe(), Re), e = J(), n = () => {
|
|
83
83
|
let o = (e == null ? void 0 : e.location.hash) ?? "";
|
|
84
84
|
o.startsWith("#") && (o = o.substring(1));
|
|
85
85
|
const s = {
|
|
@@ -99,54 +99,62 @@ const xe = (t) => {
|
|
|
99
99
|
value: t,
|
|
100
100
|
dispose: t.dispose
|
|
101
101
|
};
|
|
102
|
-
},
|
|
103
|
-
mark:
|
|
102
|
+
}, Qt = {
|
|
103
|
+
mark: Ut("LocationProvider"),
|
|
104
104
|
create: (t, e) => {
|
|
105
105
|
if (e.isBrowser())
|
|
106
|
-
return
|
|
106
|
+
return Te();
|
|
107
107
|
if (e.isHeadless())
|
|
108
108
|
return Le(e);
|
|
109
109
|
throw new Error("Unknown context");
|
|
110
110
|
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
}, Se = (t) => {
|
|
112
|
+
document.startViewTransition ? document.startViewTransition(t) : t();
|
|
113
|
+
}, ke = (t, ...e) => {
|
|
114
|
+
if (typeof t == "string" || Bt.is(t))
|
|
115
|
+
return ke({ href: t }, ...e);
|
|
116
|
+
const {
|
|
117
|
+
href: n,
|
|
118
|
+
withViewTransition: o,
|
|
119
|
+
...s
|
|
120
|
+
} = t;
|
|
121
|
+
return zt(Qt, (r) => _t.a(
|
|
122
|
+
It.click(
|
|
123
|
+
Ae(() => (o == !0 ? Se(() => {
|
|
124
|
+
Ct(r, B.get(n));
|
|
125
|
+
}) : Ct(r, B.get(n)), !0), s)
|
|
118
126
|
),
|
|
119
|
-
|
|
127
|
+
jt.href(n),
|
|
120
128
|
...e
|
|
121
129
|
));
|
|
122
|
-
},
|
|
123
|
-
mark:
|
|
130
|
+
}, Cn = {
|
|
131
|
+
mark: Ut("Appearance"),
|
|
124
132
|
create: () => {
|
|
125
|
-
const t =
|
|
133
|
+
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 = (r) => o.set(r.matches ? "dark" : "light");
|
|
126
134
|
return e == null || e.addEventListener("change", s), {
|
|
127
135
|
value: o,
|
|
128
136
|
dispose: () => e == null ? void 0 : e.removeEventListener("change", s)
|
|
129
137
|
};
|
|
130
138
|
}
|
|
131
|
-
},
|
|
139
|
+
}, Zt = (t, e) => {
|
|
132
140
|
if (typeof e == "function")
|
|
133
|
-
return
|
|
141
|
+
return Zt(t, { success: e });
|
|
134
142
|
const n = e.failure ?? ((i) => i.map((c) => `Error: ${c}`)), o = e.success, s = e.loading ?? (() => mt), r = e.notAsked ?? (() => mt);
|
|
135
|
-
return
|
|
143
|
+
return Yt(B.toSignal(t), {
|
|
136
144
|
AsyncSuccess: (i) => o(i.$.value),
|
|
137
145
|
AsyncFailure: (i) => n(i.$.error),
|
|
138
146
|
Loading: (i) => s(i.map((c) => c.previousValue)),
|
|
139
147
|
NotAsked: r
|
|
140
148
|
});
|
|
141
|
-
},
|
|
142
|
-
const n =
|
|
149
|
+
}, Dn = (t = 10) => G((e) => P(Jt(() => e == null ? void 0 : e.focus(), t))), Wn = (t = 10) => G((e) => {
|
|
150
|
+
const n = Jt(() => e.select(), t);
|
|
143
151
|
return P(n);
|
|
144
|
-
}),
|
|
152
|
+
}), Pn = G((t) => {
|
|
145
153
|
const e = t.style.getPropertyValue(":empty");
|
|
146
154
|
return t.style.setProperty(":empty", "display:none"), P((n) => {
|
|
147
155
|
n && t.style.setProperty(":empty", e);
|
|
148
156
|
});
|
|
149
|
-
}),
|
|
157
|
+
}), Fn = (t) => Kt("head > title", jt.innerText(t)), Ce = {
|
|
150
158
|
partial: {
|
|
151
159
|
root: null,
|
|
152
160
|
rootMargin: "0px",
|
|
@@ -160,78 +168,78 @@ const xe = (t) => {
|
|
|
160
168
|
}, et = {
|
|
161
169
|
partial: /* @__PURE__ */ new Map(),
|
|
162
170
|
full: /* @__PURE__ */ new Map()
|
|
163
|
-
},
|
|
171
|
+
}, K = {
|
|
164
172
|
partial: null,
|
|
165
173
|
full: null
|
|
166
174
|
};
|
|
167
|
-
function
|
|
168
|
-
return
|
|
175
|
+
function De(t) {
|
|
176
|
+
return K[t] == null && (K[t] = new IntersectionObserver((e) => {
|
|
169
177
|
e.forEach((n) => {
|
|
170
178
|
const o = et[t].get(n.target);
|
|
171
179
|
o == null || o.set(n.isIntersecting);
|
|
172
180
|
});
|
|
173
|
-
},
|
|
181
|
+
}, Ce[t])), K[t];
|
|
174
182
|
}
|
|
175
|
-
const
|
|
183
|
+
const We = (t, e) => {
|
|
176
184
|
const n = W(!1);
|
|
177
|
-
return
|
|
185
|
+
return xt(
|
|
178
186
|
G((o) => {
|
|
179
|
-
const s = typeof IntersectionObserver < "u" ?
|
|
187
|
+
const s = typeof IntersectionObserver < "u" ? De(t) : null;
|
|
180
188
|
return et[t].set(o, n), s == null || s.observe(o), P(() => {
|
|
181
189
|
var r;
|
|
182
|
-
n.dispose(), s == null || s.unobserve(o), et[t].delete(o), et[t].size === 0 && ((r =
|
|
190
|
+
n.dispose(), s == null || s.unobserve(o), et[t].delete(o), et[t].size === 0 && ((r = K[t]) == null || r.disconnect(), K[t] = null);
|
|
183
191
|
});
|
|
184
192
|
}),
|
|
185
193
|
vt(e(n))
|
|
186
194
|
);
|
|
187
|
-
},
|
|
195
|
+
}, Mn = (t, e, n) => We(t, (o) => qt(o, e, n ?? (() => mt))), nt = Math.min, M = Math.max, ot = Math.round, tt = Math.floor, L = (t) => ({
|
|
188
196
|
x: t,
|
|
189
197
|
y: t
|
|
190
|
-
}),
|
|
198
|
+
}), Pe = {
|
|
191
199
|
left: "right",
|
|
192
200
|
right: "left",
|
|
193
201
|
bottom: "top",
|
|
194
202
|
top: "bottom"
|
|
195
|
-
},
|
|
203
|
+
}, Fe = {
|
|
196
204
|
start: "end",
|
|
197
205
|
end: "start"
|
|
198
206
|
};
|
|
199
|
-
function
|
|
207
|
+
function Dt(t, e, n) {
|
|
200
208
|
return M(t, nt(e, n));
|
|
201
209
|
}
|
|
202
210
|
function ct(t, e) {
|
|
203
211
|
return typeof t == "function" ? t(e) : t;
|
|
204
212
|
}
|
|
205
|
-
function
|
|
213
|
+
function V(t) {
|
|
206
214
|
return t.split("-")[0];
|
|
207
215
|
}
|
|
208
216
|
function lt(t) {
|
|
209
217
|
return t.split("-")[1];
|
|
210
218
|
}
|
|
211
|
-
function
|
|
219
|
+
function te(t) {
|
|
212
220
|
return t === "x" ? "y" : "x";
|
|
213
221
|
}
|
|
214
|
-
function
|
|
222
|
+
function ee(t) {
|
|
215
223
|
return t === "y" ? "height" : "width";
|
|
216
224
|
}
|
|
217
|
-
function
|
|
218
|
-
return ["top", "bottom"].includes(
|
|
225
|
+
function z(t) {
|
|
226
|
+
return ["top", "bottom"].includes(V(t)) ? "y" : "x";
|
|
219
227
|
}
|
|
220
|
-
function
|
|
221
|
-
return
|
|
228
|
+
function ne(t) {
|
|
229
|
+
return te(z(t));
|
|
222
230
|
}
|
|
223
|
-
function
|
|
231
|
+
function Me(t, e, n) {
|
|
224
232
|
n === void 0 && (n = !1);
|
|
225
|
-
const o = lt(t), s =
|
|
233
|
+
const o = lt(t), s = ne(t), r = ee(s);
|
|
226
234
|
let i = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
227
235
|
return e.reference[r] > e.floating[r] && (i = st(i)), [i, st(i)];
|
|
228
236
|
}
|
|
229
|
-
function
|
|
237
|
+
function Ve(t) {
|
|
230
238
|
const e = st(t);
|
|
231
239
|
return [gt(t), e, gt(e)];
|
|
232
240
|
}
|
|
233
241
|
function gt(t) {
|
|
234
|
-
return t.replace(/start|end/g, (e) =>
|
|
242
|
+
return t.replace(/start|end/g, (e) => Fe[e]);
|
|
235
243
|
}
|
|
236
244
|
function Ne(t, e, n) {
|
|
237
245
|
const o = ["left", "right"], s = ["right", "left"], r = ["top", "bottom"], i = ["bottom", "top"];
|
|
@@ -246,15 +254,15 @@ function Ne(t, e, n) {
|
|
|
246
254
|
return [];
|
|
247
255
|
}
|
|
248
256
|
}
|
|
249
|
-
function
|
|
257
|
+
function $e(t, e, n, o) {
|
|
250
258
|
const s = lt(t);
|
|
251
|
-
let r = Ne(
|
|
259
|
+
let r = Ne(V(t), n === "start", o);
|
|
252
260
|
return s && (r = r.map((i) => i + "-" + s), e && (r = r.concat(r.map(gt)))), r;
|
|
253
261
|
}
|
|
254
262
|
function st(t) {
|
|
255
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
263
|
+
return t.replace(/left|right|bottom|top/g, (e) => Pe[e]);
|
|
256
264
|
}
|
|
257
|
-
function
|
|
265
|
+
function He(t) {
|
|
258
266
|
return {
|
|
259
267
|
top: 0,
|
|
260
268
|
right: 0,
|
|
@@ -263,8 +271,8 @@ function $e(t) {
|
|
|
263
271
|
...t
|
|
264
272
|
};
|
|
265
273
|
}
|
|
266
|
-
function
|
|
267
|
-
return typeof t != "number" ?
|
|
274
|
+
function Ue(t) {
|
|
275
|
+
return typeof t != "number" ? He(t) : {
|
|
268
276
|
top: t,
|
|
269
277
|
right: t,
|
|
270
278
|
bottom: t,
|
|
@@ -289,12 +297,12 @@ function rt(t) {
|
|
|
289
297
|
y: n
|
|
290
298
|
};
|
|
291
299
|
}
|
|
292
|
-
function
|
|
300
|
+
function Wt(t, e, n) {
|
|
293
301
|
let {
|
|
294
302
|
reference: o,
|
|
295
303
|
floating: s
|
|
296
304
|
} = t;
|
|
297
|
-
const r =
|
|
305
|
+
const r = z(e), i = ne(e), c = ee(i), l = V(e), a = r === "y", f = o.x + o.width / 2 - s.width / 2, u = o.y + o.height / 2 - s.height / 2, h = o[c] / 2 - s[c] / 2;
|
|
298
306
|
let d;
|
|
299
307
|
switch (l) {
|
|
300
308
|
case "top":
|
|
@@ -337,7 +345,7 @@ function Dt(t, e, n) {
|
|
|
337
345
|
}
|
|
338
346
|
return d;
|
|
339
347
|
}
|
|
340
|
-
const
|
|
348
|
+
const Be = async (t, e, n) => {
|
|
341
349
|
const {
|
|
342
350
|
placement: o = "bottom",
|
|
343
351
|
strategy: s = "absolute",
|
|
@@ -351,14 +359,14 @@ const Ue = async (t, e, n) => {
|
|
|
351
359
|
}), {
|
|
352
360
|
x: f,
|
|
353
361
|
y: u
|
|
354
|
-
} =
|
|
362
|
+
} = Wt(a, o, l), h = o, d = {}, m = 0;
|
|
355
363
|
for (let g = 0; g < c.length; g++) {
|
|
356
364
|
const {
|
|
357
365
|
name: y,
|
|
358
366
|
fn: p
|
|
359
367
|
} = c[g], {
|
|
360
|
-
x,
|
|
361
|
-
y:
|
|
368
|
+
x: w,
|
|
369
|
+
y: x,
|
|
362
370
|
data: b,
|
|
363
371
|
reset: v
|
|
364
372
|
} = await p({
|
|
@@ -375,7 +383,7 @@ const Ue = async (t, e, n) => {
|
|
|
375
383
|
floating: e
|
|
376
384
|
}
|
|
377
385
|
});
|
|
378
|
-
f =
|
|
386
|
+
f = w ?? f, u = x ?? u, d = {
|
|
379
387
|
...d,
|
|
380
388
|
[y]: {
|
|
381
389
|
...d[y],
|
|
@@ -388,7 +396,7 @@ const Ue = async (t, e, n) => {
|
|
|
388
396
|
}) : v.rects), {
|
|
389
397
|
x: f,
|
|
390
398
|
y: u
|
|
391
|
-
} =
|
|
399
|
+
} = Wt(a, h, l)), g = -1);
|
|
392
400
|
}
|
|
393
401
|
return {
|
|
394
402
|
x: f,
|
|
@@ -398,7 +406,7 @@ const Ue = async (t, e, n) => {
|
|
|
398
406
|
middlewareData: d
|
|
399
407
|
};
|
|
400
408
|
};
|
|
401
|
-
async function
|
|
409
|
+
async function oe(t, e) {
|
|
402
410
|
var n;
|
|
403
411
|
e === void 0 && (e = {});
|
|
404
412
|
const {
|
|
@@ -414,17 +422,17 @@ async function ne(t, e) {
|
|
|
414
422
|
elementContext: u = "floating",
|
|
415
423
|
altBoundary: h = !1,
|
|
416
424
|
padding: d = 0
|
|
417
|
-
} = ct(e, t), m =
|
|
425
|
+
} = ct(e, t), m = Ue(d), y = c[h ? u === "floating" ? "reference" : "floating" : u], p = rt(await r.getClippingRect({
|
|
418
426
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(y))) == null || n ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
|
|
419
427
|
boundary: a,
|
|
420
428
|
rootBoundary: f,
|
|
421
429
|
strategy: l
|
|
422
|
-
})),
|
|
430
|
+
})), w = u === "floating" ? {
|
|
423
431
|
x: o,
|
|
424
432
|
y: s,
|
|
425
433
|
width: i.floating.width,
|
|
426
434
|
height: i.floating.height
|
|
427
|
-
} : i.reference,
|
|
435
|
+
} : i.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c.floating)), b = await (r.isElement == null ? void 0 : r.isElement(x)) ? await (r.getScale == null ? void 0 : r.getScale(x)) || {
|
|
428
436
|
x: 1,
|
|
429
437
|
y: 1
|
|
430
438
|
} : {
|
|
@@ -432,10 +440,10 @@ async function ne(t, e) {
|
|
|
432
440
|
y: 1
|
|
433
441
|
}, v = rt(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
434
442
|
elements: c,
|
|
435
|
-
rect:
|
|
436
|
-
offsetParent:
|
|
443
|
+
rect: w,
|
|
444
|
+
offsetParent: x,
|
|
437
445
|
strategy: l
|
|
438
|
-
}) :
|
|
446
|
+
}) : w);
|
|
439
447
|
return {
|
|
440
448
|
top: (p.top - v.top + m.top) / b.y,
|
|
441
449
|
bottom: (v.bottom - p.bottom + m.bottom) / b.y,
|
|
@@ -443,7 +451,7 @@ async function ne(t, e) {
|
|
|
443
451
|
right: (v.right - p.right + m.right) / b.x
|
|
444
452
|
};
|
|
445
453
|
}
|
|
446
|
-
const
|
|
454
|
+
const ze = function(t) {
|
|
447
455
|
return t === void 0 && (t = {}), {
|
|
448
456
|
name: "flip",
|
|
449
457
|
options: t,
|
|
@@ -467,55 +475,55 @@ const Be = function(t) {
|
|
|
467
475
|
} = ct(t, e);
|
|
468
476
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
469
477
|
return {};
|
|
470
|
-
const p =
|
|
471
|
-
!h && $ && v.push(
|
|
472
|
-
const
|
|
473
|
-
let
|
|
478
|
+
const p = V(s), w = z(c), x = V(c) === c, b = await (l.isRTL == null ? void 0 : l.isRTL(a.floating)), v = h || (x || !g ? [st(c)] : Ve(c)), $ = m !== "none";
|
|
479
|
+
!h && $ && v.push(...$e(c, g, m, b));
|
|
480
|
+
const fe = [c, ...v], dt = await oe(e, y), Z = [];
|
|
481
|
+
let j = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
474
482
|
if (f && Z.push(dt[p]), u) {
|
|
475
|
-
const F =
|
|
483
|
+
const F = Me(s, i, b);
|
|
476
484
|
Z.push(dt[F[0]], dt[F[1]]);
|
|
477
485
|
}
|
|
478
|
-
if (
|
|
486
|
+
if (j = [...j, {
|
|
479
487
|
placement: s,
|
|
480
488
|
overflows: Z
|
|
481
489
|
}], !Z.every((F) => F <= 0)) {
|
|
482
490
|
var Lt, Ot;
|
|
483
|
-
const F = (((Lt = r.flip) == null ? void 0 : Lt.index) || 0) + 1,
|
|
484
|
-
if (
|
|
491
|
+
const F = (((Lt = r.flip) == null ? void 0 : Lt.index) || 0) + 1, St = fe[F];
|
|
492
|
+
if (St)
|
|
485
493
|
return {
|
|
486
494
|
data: {
|
|
487
495
|
index: F,
|
|
488
|
-
overflows:
|
|
496
|
+
overflows: j
|
|
489
497
|
},
|
|
490
498
|
reset: {
|
|
491
|
-
placement:
|
|
499
|
+
placement: St
|
|
492
500
|
}
|
|
493
501
|
};
|
|
494
|
-
let
|
|
495
|
-
if (!
|
|
502
|
+
let Y = (Ot = j.filter((H) => H.overflows[0] <= 0).sort((H, S) => H.overflows[1] - S.overflows[1])[0]) == null ? void 0 : Ot.placement;
|
|
503
|
+
if (!Y)
|
|
496
504
|
switch (d) {
|
|
497
505
|
case "bestFit": {
|
|
498
|
-
var
|
|
499
|
-
const H = (
|
|
506
|
+
var Tt;
|
|
507
|
+
const H = (Tt = j.filter((S) => {
|
|
500
508
|
if ($) {
|
|
501
|
-
const k =
|
|
502
|
-
return k ===
|
|
509
|
+
const k = z(S.placement);
|
|
510
|
+
return k === w || // Create a bias to the `y` side axis due to horizontal
|
|
503
511
|
// reading directions favoring greater width.
|
|
504
512
|
k === "y";
|
|
505
513
|
}
|
|
506
514
|
return !0;
|
|
507
|
-
}).map((
|
|
508
|
-
H && (
|
|
515
|
+
}).map((S) => [S.placement, S.overflows.filter((k) => k > 0).reduce((k, de) => k + de, 0)]).sort((S, k) => S[1] - k[1])[0]) == null ? void 0 : Tt[0];
|
|
516
|
+
H && (Y = H);
|
|
509
517
|
break;
|
|
510
518
|
}
|
|
511
519
|
case "initialPlacement":
|
|
512
|
-
|
|
520
|
+
Y = c;
|
|
513
521
|
break;
|
|
514
522
|
}
|
|
515
|
-
if (s !==
|
|
523
|
+
if (s !== Y)
|
|
516
524
|
return {
|
|
517
525
|
reset: {
|
|
518
|
-
placement:
|
|
526
|
+
placement: Y
|
|
519
527
|
}
|
|
520
528
|
};
|
|
521
529
|
}
|
|
@@ -523,12 +531,12 @@ const Be = function(t) {
|
|
|
523
531
|
}
|
|
524
532
|
};
|
|
525
533
|
};
|
|
526
|
-
async function
|
|
534
|
+
async function _e(t, e) {
|
|
527
535
|
const {
|
|
528
536
|
placement: n,
|
|
529
537
|
platform: o,
|
|
530
538
|
elements: s
|
|
531
|
-
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), i =
|
|
539
|
+
} = t, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), i = V(n), c = lt(n), l = z(n) === "y", a = ["left", "top"].includes(i) ? -1 : 1, f = r && l ? -1 : 1, u = ct(e, t);
|
|
532
540
|
let {
|
|
533
541
|
mainAxis: h,
|
|
534
542
|
crossAxis: d,
|
|
@@ -550,7 +558,7 @@ async function ze(t, e) {
|
|
|
550
558
|
y: d * f
|
|
551
559
|
};
|
|
552
560
|
}
|
|
553
|
-
const
|
|
561
|
+
const Ie = function(t) {
|
|
554
562
|
return t === void 0 && (t = 0), {
|
|
555
563
|
name: "offset",
|
|
556
564
|
options: t,
|
|
@@ -561,7 +569,7 @@ const _e = function(t) {
|
|
|
561
569
|
y: r,
|
|
562
570
|
placement: i,
|
|
563
571
|
middlewareData: c
|
|
564
|
-
} = e, l = await
|
|
572
|
+
} = e, l = await _e(e, t);
|
|
565
573
|
return i === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
566
574
|
x: s + l.x,
|
|
567
575
|
y: r + l.y,
|
|
@@ -572,7 +580,7 @@ const _e = function(t) {
|
|
|
572
580
|
};
|
|
573
581
|
}
|
|
574
582
|
};
|
|
575
|
-
},
|
|
583
|
+
}, je = function(t) {
|
|
576
584
|
return t === void 0 && (t = {}), {
|
|
577
585
|
name: "shift",
|
|
578
586
|
options: t,
|
|
@@ -588,11 +596,11 @@ const _e = function(t) {
|
|
|
588
596
|
fn: (y) => {
|
|
589
597
|
let {
|
|
590
598
|
x: p,
|
|
591
|
-
y:
|
|
599
|
+
y: w
|
|
592
600
|
} = y;
|
|
593
601
|
return {
|
|
594
602
|
x: p,
|
|
595
|
-
y:
|
|
603
|
+
y: w
|
|
596
604
|
};
|
|
597
605
|
}
|
|
598
606
|
},
|
|
@@ -600,15 +608,15 @@ const _e = function(t) {
|
|
|
600
608
|
} = ct(t, e), a = {
|
|
601
609
|
x: n,
|
|
602
610
|
y: o
|
|
603
|
-
}, f = await
|
|
611
|
+
}, f = await oe(e, l), u = z(V(s)), h = te(u);
|
|
604
612
|
let d = a[h], m = a[u];
|
|
605
613
|
if (r) {
|
|
606
|
-
const y = h === "y" ? "top" : "left", p = h === "y" ? "bottom" : "right",
|
|
607
|
-
d =
|
|
614
|
+
const y = h === "y" ? "top" : "left", p = h === "y" ? "bottom" : "right", w = d + f[y], x = d - f[p];
|
|
615
|
+
d = Dt(w, d, x);
|
|
608
616
|
}
|
|
609
617
|
if (i) {
|
|
610
|
-
const y = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right",
|
|
611
|
-
m =
|
|
618
|
+
const y = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", w = m + f[y], x = m - f[p];
|
|
619
|
+
m = Dt(w, m, x);
|
|
612
620
|
}
|
|
613
621
|
const g = c.fn({
|
|
614
622
|
...e,
|
|
@@ -632,18 +640,18 @@ const _e = function(t) {
|
|
|
632
640
|
function at() {
|
|
633
641
|
return typeof window < "u";
|
|
634
642
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
643
|
+
function I(t) {
|
|
644
|
+
return se(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
637
645
|
}
|
|
638
646
|
function A(t) {
|
|
639
647
|
var e;
|
|
640
648
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
641
649
|
}
|
|
642
|
-
function
|
|
650
|
+
function T(t) {
|
|
643
651
|
var e;
|
|
644
|
-
return (e = (
|
|
652
|
+
return (e = (se(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
645
653
|
}
|
|
646
|
-
function
|
|
654
|
+
function se(t) {
|
|
647
655
|
return at() ? t instanceof Node || t instanceof A(t).Node : !1;
|
|
648
656
|
}
|
|
649
657
|
function R(t) {
|
|
@@ -652,7 +660,7 @@ function R(t) {
|
|
|
652
660
|
function O(t) {
|
|
653
661
|
return at() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
|
|
654
662
|
}
|
|
655
|
-
function
|
|
663
|
+
function Pt(t) {
|
|
656
664
|
return !at() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
|
|
657
665
|
}
|
|
658
666
|
function Q(t) {
|
|
@@ -664,8 +672,8 @@ function Q(t) {
|
|
|
664
672
|
} = E(t);
|
|
665
673
|
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(s);
|
|
666
674
|
}
|
|
667
|
-
function
|
|
668
|
-
return ["table", "td", "th"].includes(
|
|
675
|
+
function Ye(t) {
|
|
676
|
+
return ["table", "td", "th"].includes(I(t));
|
|
669
677
|
}
|
|
670
678
|
function ut(t) {
|
|
671
679
|
return [":popover-open", ":modal"].some((e) => {
|
|
@@ -680,9 +688,9 @@ function bt(t) {
|
|
|
680
688
|
const e = At(), n = R(t) ? E(t) : t;
|
|
681
689
|
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));
|
|
682
690
|
}
|
|
683
|
-
function
|
|
691
|
+
function Ke(t) {
|
|
684
692
|
let e = D(t);
|
|
685
|
-
for (; O(e) && !
|
|
693
|
+
for (; O(e) && !_(e); ) {
|
|
686
694
|
if (bt(e))
|
|
687
695
|
return e;
|
|
688
696
|
if (ut(e))
|
|
@@ -694,8 +702,8 @@ function Ye(t) {
|
|
|
694
702
|
function At() {
|
|
695
703
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
696
704
|
}
|
|
697
|
-
function
|
|
698
|
-
return ["html", "body", "#document"].includes(
|
|
705
|
+
function _(t) {
|
|
706
|
+
return ["html", "body", "#document"].includes(I(t));
|
|
699
707
|
}
|
|
700
708
|
function E(t) {
|
|
701
709
|
return A(t).getComputedStyle(t);
|
|
@@ -710,35 +718,35 @@ function ft(t) {
|
|
|
710
718
|
};
|
|
711
719
|
}
|
|
712
720
|
function D(t) {
|
|
713
|
-
if (
|
|
721
|
+
if (I(t) === "html")
|
|
714
722
|
return t;
|
|
715
723
|
const e = (
|
|
716
724
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
717
725
|
t.assignedSlot || // DOM Element detected.
|
|
718
726
|
t.parentNode || // ShadowRoot detected.
|
|
719
|
-
|
|
720
|
-
|
|
727
|
+
Pt(t) && t.host || // Fallback.
|
|
728
|
+
T(t)
|
|
721
729
|
);
|
|
722
|
-
return
|
|
730
|
+
return Pt(e) ? e.host : e;
|
|
723
731
|
}
|
|
724
|
-
function
|
|
732
|
+
function re(t) {
|
|
725
733
|
const e = D(t);
|
|
726
|
-
return
|
|
734
|
+
return _(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : O(e) && Q(e) ? e : re(e);
|
|
727
735
|
}
|
|
728
|
-
function
|
|
736
|
+
function q(t, e, n) {
|
|
729
737
|
var o;
|
|
730
738
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
731
|
-
const s =
|
|
739
|
+
const s = re(t), r = s === ((o = t.ownerDocument) == null ? void 0 : o.body), i = A(s);
|
|
732
740
|
if (r) {
|
|
733
741
|
const c = yt(i);
|
|
734
|
-
return e.concat(i, i.visualViewport || [], Q(s) ? s : [], c && n ?
|
|
742
|
+
return e.concat(i, i.visualViewport || [], Q(s) ? s : [], c && n ? q(c) : []);
|
|
735
743
|
}
|
|
736
|
-
return e.concat(s,
|
|
744
|
+
return e.concat(s, q(s, [], n));
|
|
737
745
|
}
|
|
738
746
|
function yt(t) {
|
|
739
747
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
740
748
|
}
|
|
741
|
-
function
|
|
749
|
+
function ie(t) {
|
|
742
750
|
const e = E(t);
|
|
743
751
|
let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
|
|
744
752
|
const s = O(t), r = s ? t.offsetWidth : n, i = s ? t.offsetHeight : o, c = ot(n) !== r || ot(o) !== i;
|
|
@@ -759,37 +767,37 @@ function U(t) {
|
|
|
759
767
|
width: o,
|
|
760
768
|
height: s,
|
|
761
769
|
$: r
|
|
762
|
-
} =
|
|
770
|
+
} = ie(e);
|
|
763
771
|
let i = (r ? ot(n.width) : n.width) / o, c = (r ? ot(n.height) : n.height) / s;
|
|
764
772
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
765
773
|
x: i,
|
|
766
774
|
y: c
|
|
767
775
|
};
|
|
768
776
|
}
|
|
769
|
-
const
|
|
770
|
-
function
|
|
777
|
+
const qe = /* @__PURE__ */ L(0);
|
|
778
|
+
function ce(t) {
|
|
771
779
|
const e = A(t);
|
|
772
|
-
return !At() || !e.visualViewport ?
|
|
780
|
+
return !At() || !e.visualViewport ? qe : {
|
|
773
781
|
x: e.visualViewport.offsetLeft,
|
|
774
782
|
y: e.visualViewport.offsetTop
|
|
775
783
|
};
|
|
776
784
|
}
|
|
777
|
-
function
|
|
785
|
+
function Xe(t, e, n) {
|
|
778
786
|
return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
|
|
779
787
|
}
|
|
780
|
-
function
|
|
788
|
+
function N(t, e, n, o) {
|
|
781
789
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
782
790
|
const s = t.getBoundingClientRect(), r = Rt(t);
|
|
783
791
|
let i = L(1);
|
|
784
792
|
e && (o ? R(o) && (i = U(o)) : i = U(t));
|
|
785
|
-
const c =
|
|
793
|
+
const c = Xe(r, n, o) ? ce(r) : L(0);
|
|
786
794
|
let l = (s.left + c.x) / i.x, a = (s.top + c.y) / i.y, f = s.width / i.x, u = s.height / i.y;
|
|
787
795
|
if (r) {
|
|
788
796
|
const h = A(r), d = o && R(o) ? A(o) : o;
|
|
789
797
|
let m = h, g = yt(m);
|
|
790
798
|
for (; g && o && d !== m; ) {
|
|
791
|
-
const y = U(g), p = g.getBoundingClientRect(),
|
|
792
|
-
l *= y.x, a *= y.y, f *= y.x, u *= y.y, l +=
|
|
799
|
+
const y = U(g), p = g.getBoundingClientRect(), w = E(g), x = p.left + (g.clientLeft + parseFloat(w.paddingLeft)) * y.x, b = p.top + (g.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
800
|
+
l *= y.x, a *= y.y, f *= y.x, u *= y.y, l += x, a += b, m = A(g), g = yt(m);
|
|
793
801
|
}
|
|
794
802
|
}
|
|
795
803
|
return rt({
|
|
@@ -801,9 +809,9 @@ function V(t, e, n, o) {
|
|
|
801
809
|
}
|
|
802
810
|
function Et(t, e) {
|
|
803
811
|
const n = ft(t).scrollLeft;
|
|
804
|
-
return e ? e.left + n :
|
|
812
|
+
return e ? e.left + n : N(T(t)).left + n;
|
|
805
813
|
}
|
|
806
|
-
function
|
|
814
|
+
function le(t, e, n) {
|
|
807
815
|
n === void 0 && (n = !1);
|
|
808
816
|
const o = t.getBoundingClientRect(), s = o.left + e.scrollLeft - (n ? 0 : (
|
|
809
817
|
// RTL <body> scrollbar.
|
|
@@ -814,14 +822,14 @@ function ce(t, e, n) {
|
|
|
814
822
|
y: r
|
|
815
823
|
};
|
|
816
824
|
}
|
|
817
|
-
function
|
|
825
|
+
function Je(t) {
|
|
818
826
|
let {
|
|
819
827
|
elements: e,
|
|
820
828
|
rect: n,
|
|
821
829
|
offsetParent: o,
|
|
822
830
|
strategy: s
|
|
823
831
|
} = t;
|
|
824
|
-
const r = s === "fixed", i =
|
|
832
|
+
const r = s === "fixed", i = T(o), c = e ? ut(e.floating) : !1;
|
|
825
833
|
if (o === i || c && r)
|
|
826
834
|
return n;
|
|
827
835
|
let l = {
|
|
@@ -829,11 +837,11 @@ function Xe(t) {
|
|
|
829
837
|
scrollTop: 0
|
|
830
838
|
}, a = L(1);
|
|
831
839
|
const f = L(0), u = O(o);
|
|
832
|
-
if ((u || !u && !r) && ((
|
|
833
|
-
const d =
|
|
840
|
+
if ((u || !u && !r) && ((I(o) !== "body" || Q(i)) && (l = ft(o)), O(o))) {
|
|
841
|
+
const d = N(o);
|
|
834
842
|
a = U(o), f.x = d.x + o.clientLeft, f.y = d.y + o.clientTop;
|
|
835
843
|
}
|
|
836
|
-
const h = i && !u && !r ?
|
|
844
|
+
const h = i && !u && !r ? le(i, l, !0) : L(0);
|
|
837
845
|
return {
|
|
838
846
|
width: n.width * a.x,
|
|
839
847
|
height: n.height * a.y,
|
|
@@ -841,11 +849,11 @@ function Xe(t) {
|
|
|
841
849
|
y: n.y * a.y - l.scrollTop * a.y + f.y + h.y
|
|
842
850
|
};
|
|
843
851
|
}
|
|
844
|
-
function
|
|
852
|
+
function Ge(t) {
|
|
845
853
|
return Array.from(t.getClientRects());
|
|
846
854
|
}
|
|
847
|
-
function
|
|
848
|
-
const e =
|
|
855
|
+
function Qe(t) {
|
|
856
|
+
const e = T(t), n = ft(t), o = t.ownerDocument.body, s = M(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), r = M(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
|
|
849
857
|
let i = -n.scrollLeft + Et(t);
|
|
850
858
|
const c = -n.scrollTop;
|
|
851
859
|
return E(o).direction === "rtl" && (i += M(e.clientWidth, o.clientWidth) - s), {
|
|
@@ -855,8 +863,8 @@ function Ge(t) {
|
|
|
855
863
|
y: c
|
|
856
864
|
};
|
|
857
865
|
}
|
|
858
|
-
function
|
|
859
|
-
const n = A(t), o =
|
|
866
|
+
function Ze(t, e) {
|
|
867
|
+
const n = A(t), o = T(t), s = n.visualViewport;
|
|
860
868
|
let r = o.clientWidth, i = o.clientHeight, c = 0, l = 0;
|
|
861
869
|
if (s) {
|
|
862
870
|
r = s.width, i = s.height;
|
|
@@ -870,8 +878,8 @@ function Qe(t, e) {
|
|
|
870
878
|
y: l
|
|
871
879
|
};
|
|
872
880
|
}
|
|
873
|
-
function
|
|
874
|
-
const n =
|
|
881
|
+
function tn(t, e) {
|
|
882
|
+
const n = N(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, r = O(t) ? U(t) : L(1), i = t.clientWidth * r.x, c = t.clientHeight * r.y, l = s * r.x, a = o * r.y;
|
|
875
883
|
return {
|
|
876
884
|
width: i,
|
|
877
885
|
height: c,
|
|
@@ -879,16 +887,16 @@ function Ze(t, e) {
|
|
|
879
887
|
y: a
|
|
880
888
|
};
|
|
881
889
|
}
|
|
882
|
-
function
|
|
890
|
+
function Ft(t, e, n) {
|
|
883
891
|
let o;
|
|
884
892
|
if (e === "viewport")
|
|
885
|
-
o =
|
|
893
|
+
o = Ze(t, n);
|
|
886
894
|
else if (e === "document")
|
|
887
|
-
o =
|
|
895
|
+
o = Qe(T(t));
|
|
888
896
|
else if (R(e))
|
|
889
|
-
o =
|
|
897
|
+
o = tn(e, n);
|
|
890
898
|
else {
|
|
891
|
-
const s =
|
|
899
|
+
const s = ce(t);
|
|
892
900
|
o = {
|
|
893
901
|
x: e.x - s.x,
|
|
894
902
|
y: e.y - s.y,
|
|
@@ -898,34 +906,34 @@ function Pt(t, e, n) {
|
|
|
898
906
|
}
|
|
899
907
|
return rt(o);
|
|
900
908
|
}
|
|
901
|
-
function
|
|
909
|
+
function ae(t, e) {
|
|
902
910
|
const n = D(t);
|
|
903
|
-
return n === e || !R(n) ||
|
|
911
|
+
return n === e || !R(n) || _(n) ? !1 : E(n).position === "fixed" || ae(n, e);
|
|
904
912
|
}
|
|
905
|
-
function
|
|
913
|
+
function en(t, e) {
|
|
906
914
|
const n = e.get(t);
|
|
907
915
|
if (n)
|
|
908
916
|
return n;
|
|
909
|
-
let o =
|
|
917
|
+
let o = q(t, [], !1).filter((c) => R(c) && I(c) !== "body"), s = null;
|
|
910
918
|
const r = E(t).position === "fixed";
|
|
911
919
|
let i = r ? D(t) : t;
|
|
912
|
-
for (; R(i) && !
|
|
920
|
+
for (; R(i) && !_(i); ) {
|
|
913
921
|
const c = E(i), l = bt(i);
|
|
914
|
-
!l && c.position === "fixed" && (s = null), (r ? !l && !s : !l && c.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || Q(i) && !l &&
|
|
922
|
+
!l && c.position === "fixed" && (s = null), (r ? !l && !s : !l && c.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || Q(i) && !l && ae(t, i)) ? o = o.filter((f) => f !== i) : s = c, i = D(i);
|
|
915
923
|
}
|
|
916
924
|
return e.set(t, o), o;
|
|
917
925
|
}
|
|
918
|
-
function
|
|
926
|
+
function nn(t) {
|
|
919
927
|
let {
|
|
920
928
|
element: e,
|
|
921
929
|
boundary: n,
|
|
922
930
|
rootBoundary: o,
|
|
923
931
|
strategy: s
|
|
924
932
|
} = t;
|
|
925
|
-
const i = [...n === "clippingAncestors" ? ut(e) ? [] :
|
|
926
|
-
const u =
|
|
933
|
+
const i = [...n === "clippingAncestors" ? ut(e) ? [] : en(e, this._c) : [].concat(n), o], c = i[0], l = i.reduce((a, f) => {
|
|
934
|
+
const u = Ft(e, f, s);
|
|
927
935
|
return a.top = M(u.top, a.top), a.right = nt(u.right, a.right), a.bottom = nt(u.bottom, a.bottom), a.left = M(u.left, a.left), a;
|
|
928
|
-
},
|
|
936
|
+
}, Ft(e, c, s));
|
|
929
937
|
return {
|
|
930
938
|
width: l.right - l.left,
|
|
931
939
|
height: l.bottom - l.top,
|
|
@@ -933,29 +941,29 @@ function en(t) {
|
|
|
933
941
|
y: l.top
|
|
934
942
|
};
|
|
935
943
|
}
|
|
936
|
-
function
|
|
944
|
+
function on(t) {
|
|
937
945
|
const {
|
|
938
946
|
width: e,
|
|
939
947
|
height: n
|
|
940
|
-
} =
|
|
948
|
+
} = ie(t);
|
|
941
949
|
return {
|
|
942
950
|
width: e,
|
|
943
951
|
height: n
|
|
944
952
|
};
|
|
945
953
|
}
|
|
946
|
-
function
|
|
947
|
-
const o = O(e), s =
|
|
954
|
+
function sn(t, e, n) {
|
|
955
|
+
const o = O(e), s = T(e), r = n === "fixed", i = N(t, !0, r, e);
|
|
948
956
|
let c = {
|
|
949
957
|
scrollLeft: 0,
|
|
950
958
|
scrollTop: 0
|
|
951
959
|
};
|
|
952
960
|
const l = L(0);
|
|
953
961
|
if (o || !o && !r)
|
|
954
|
-
if ((
|
|
955
|
-
const h =
|
|
962
|
+
if ((I(e) !== "body" || Q(s)) && (c = ft(e)), o) {
|
|
963
|
+
const h = N(e, !0, r, e);
|
|
956
964
|
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
957
965
|
} else s && (l.x = Et(s));
|
|
958
|
-
const a = s && !o && !r ?
|
|
966
|
+
const a = s && !o && !r ? le(s, c) : L(0), f = i.left + c.scrollLeft - l.x - a.x, u = i.top + c.scrollTop - l.y - a.y;
|
|
959
967
|
return {
|
|
960
968
|
x: f,
|
|
961
969
|
y: u,
|
|
@@ -966,36 +974,36 @@ function on(t, e, n) {
|
|
|
966
974
|
function ht(t) {
|
|
967
975
|
return E(t).position === "static";
|
|
968
976
|
}
|
|
969
|
-
function
|
|
977
|
+
function Mt(t, e) {
|
|
970
978
|
if (!O(t) || E(t).position === "fixed")
|
|
971
979
|
return null;
|
|
972
980
|
if (e)
|
|
973
981
|
return e(t);
|
|
974
982
|
let n = t.offsetParent;
|
|
975
|
-
return
|
|
983
|
+
return T(t) === n && (n = n.ownerDocument.body), n;
|
|
976
984
|
}
|
|
977
|
-
function
|
|
985
|
+
function ue(t, e) {
|
|
978
986
|
const n = A(t);
|
|
979
987
|
if (ut(t))
|
|
980
988
|
return n;
|
|
981
989
|
if (!O(t)) {
|
|
982
990
|
let s = D(t);
|
|
983
|
-
for (; s && !
|
|
991
|
+
for (; s && !_(s); ) {
|
|
984
992
|
if (R(s) && !ht(s))
|
|
985
993
|
return s;
|
|
986
994
|
s = D(s);
|
|
987
995
|
}
|
|
988
996
|
return n;
|
|
989
997
|
}
|
|
990
|
-
let o =
|
|
991
|
-
for (; o &&
|
|
992
|
-
o =
|
|
993
|
-
return o &&
|
|
998
|
+
let o = Mt(t, e);
|
|
999
|
+
for (; o && Ye(o) && ht(o); )
|
|
1000
|
+
o = Mt(o, e);
|
|
1001
|
+
return o && _(o) && ht(o) && !bt(o) ? n : o || Ke(t) || n;
|
|
994
1002
|
}
|
|
995
|
-
const
|
|
996
|
-
const e = this.getOffsetParent ||
|
|
1003
|
+
const rn = async function(t) {
|
|
1004
|
+
const e = this.getOffsetParent || ue, n = this.getDimensions, o = await n(t.floating);
|
|
997
1005
|
return {
|
|
998
|
-
reference:
|
|
1006
|
+
reference: sn(t.reference, await e(t.floating), t.strategy),
|
|
999
1007
|
floating: {
|
|
1000
1008
|
x: 0,
|
|
1001
1009
|
y: 0,
|
|
@@ -1004,24 +1012,24 @@ const sn = async function(t) {
|
|
|
1004
1012
|
}
|
|
1005
1013
|
};
|
|
1006
1014
|
};
|
|
1007
|
-
function
|
|
1015
|
+
function cn(t) {
|
|
1008
1016
|
return E(t).direction === "rtl";
|
|
1009
1017
|
}
|
|
1010
|
-
const
|
|
1011
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1012
|
-
getDocumentElement:
|
|
1013
|
-
getClippingRect:
|
|
1014
|
-
getOffsetParent:
|
|
1015
|
-
getElementRects:
|
|
1016
|
-
getClientRects:
|
|
1017
|
-
getDimensions:
|
|
1018
|
+
const ln = {
|
|
1019
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Je,
|
|
1020
|
+
getDocumentElement: T,
|
|
1021
|
+
getClippingRect: nn,
|
|
1022
|
+
getOffsetParent: ue,
|
|
1023
|
+
getElementRects: rn,
|
|
1024
|
+
getClientRects: Ge,
|
|
1025
|
+
getDimensions: on,
|
|
1018
1026
|
getScale: U,
|
|
1019
1027
|
isElement: R,
|
|
1020
|
-
isRTL:
|
|
1028
|
+
isRTL: cn
|
|
1021
1029
|
};
|
|
1022
|
-
function
|
|
1030
|
+
function an(t, e) {
|
|
1023
1031
|
let n = null, o;
|
|
1024
|
-
const s =
|
|
1032
|
+
const s = T(t);
|
|
1025
1033
|
function r() {
|
|
1026
1034
|
var c;
|
|
1027
1035
|
clearTimeout(o), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -1036,36 +1044,36 @@ function ln(t, e) {
|
|
|
1036
1044
|
} = t.getBoundingClientRect();
|
|
1037
1045
|
if (c || e(), !u || !h)
|
|
1038
1046
|
return;
|
|
1039
|
-
const d = tt(f), m = tt(s.clientWidth - (a + u)), g = tt(s.clientHeight - (f + h)), y = tt(a),
|
|
1047
|
+
const d = tt(f), m = tt(s.clientWidth - (a + u)), g = tt(s.clientHeight - (f + h)), y = tt(a), w = {
|
|
1040
1048
|
rootMargin: -d + "px " + -m + "px " + -g + "px " + -y + "px",
|
|
1041
1049
|
threshold: M(0, nt(1, l)) || 1
|
|
1042
1050
|
};
|
|
1043
|
-
let
|
|
1051
|
+
let x = !0;
|
|
1044
1052
|
function b(v) {
|
|
1045
1053
|
const $ = v[0].intersectionRatio;
|
|
1046
1054
|
if ($ !== l) {
|
|
1047
|
-
if (!
|
|
1055
|
+
if (!x)
|
|
1048
1056
|
return i();
|
|
1049
1057
|
$ ? i(!1, $) : o = setTimeout(() => {
|
|
1050
1058
|
i(!1, 1e-7);
|
|
1051
1059
|
}, 1e3);
|
|
1052
1060
|
}
|
|
1053
|
-
|
|
1061
|
+
x = !1;
|
|
1054
1062
|
}
|
|
1055
1063
|
try {
|
|
1056
1064
|
n = new IntersectionObserver(b, {
|
|
1057
|
-
...
|
|
1065
|
+
...w,
|
|
1058
1066
|
// Handle <iframe>s
|
|
1059
1067
|
root: s.ownerDocument
|
|
1060
1068
|
});
|
|
1061
1069
|
} catch {
|
|
1062
|
-
n = new IntersectionObserver(b,
|
|
1070
|
+
n = new IntersectionObserver(b, w);
|
|
1063
1071
|
}
|
|
1064
1072
|
n.observe(t);
|
|
1065
1073
|
}
|
|
1066
1074
|
return i(!0), r;
|
|
1067
1075
|
}
|
|
1068
|
-
function
|
|
1076
|
+
function un(t, e, n, o) {
|
|
1069
1077
|
o === void 0 && (o = {});
|
|
1070
1078
|
const {
|
|
1071
1079
|
ancestorScroll: s = !0,
|
|
@@ -1073,70 +1081,70 @@ function an(t, e, n, o) {
|
|
|
1073
1081
|
elementResize: i = typeof ResizeObserver == "function",
|
|
1074
1082
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1075
1083
|
animationFrame: l = !1
|
|
1076
|
-
} = o, a = Rt(t), f = s || r ? [...a ?
|
|
1084
|
+
} = o, a = Rt(t), f = s || r ? [...a ? q(a) : [], ...q(e)] : [];
|
|
1077
1085
|
f.forEach((p) => {
|
|
1078
1086
|
s && p.addEventListener("scroll", n, {
|
|
1079
1087
|
passive: !0
|
|
1080
1088
|
}), r && p.addEventListener("resize", n);
|
|
1081
1089
|
});
|
|
1082
|
-
const u = a && c ?
|
|
1090
|
+
const u = a && c ? an(a, n) : null;
|
|
1083
1091
|
let h = -1, d = null;
|
|
1084
1092
|
i && (d = new ResizeObserver((p) => {
|
|
1085
|
-
let [
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1088
|
-
(
|
|
1093
|
+
let [w] = p;
|
|
1094
|
+
w && w.target === a && d && (d.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
1095
|
+
var x;
|
|
1096
|
+
(x = d) == null || x.observe(e);
|
|
1089
1097
|
})), n();
|
|
1090
1098
|
}), a && !l && d.observe(a), d.observe(e));
|
|
1091
|
-
let m, g = l ?
|
|
1099
|
+
let m, g = l ? N(t) : null;
|
|
1092
1100
|
l && y();
|
|
1093
1101
|
function y() {
|
|
1094
|
-
const p =
|
|
1102
|
+
const p = N(t);
|
|
1095
1103
|
g && (p.x !== g.x || p.y !== g.y || p.width !== g.width || p.height !== g.height) && n(), g = p, m = requestAnimationFrame(y);
|
|
1096
1104
|
}
|
|
1097
1105
|
return n(), () => {
|
|
1098
1106
|
var p;
|
|
1099
|
-
f.forEach((
|
|
1100
|
-
s &&
|
|
1107
|
+
f.forEach((w) => {
|
|
1108
|
+
s && w.removeEventListener("scroll", n), r && w.removeEventListener("resize", n);
|
|
1101
1109
|
}), u == null || u(), (p = d) == null || p.disconnect(), d = null, l && cancelAnimationFrame(m);
|
|
1102
1110
|
};
|
|
1103
1111
|
}
|
|
1104
|
-
const
|
|
1112
|
+
const fn = Ie, dn = je, Vt = ze, hn = (t, e, n) => {
|
|
1105
1113
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
1106
|
-
platform:
|
|
1114
|
+
platform: ln,
|
|
1107
1115
|
...n
|
|
1108
1116
|
}, r = {
|
|
1109
1117
|
...s.platform,
|
|
1110
1118
|
_c: o
|
|
1111
1119
|
};
|
|
1112
|
-
return
|
|
1120
|
+
return Be(t, e, {
|
|
1113
1121
|
...s,
|
|
1114
1122
|
platform: r
|
|
1115
1123
|
});
|
|
1116
|
-
},
|
|
1124
|
+
}, Vn = ({
|
|
1117
1125
|
content: t,
|
|
1118
1126
|
open: e,
|
|
1119
1127
|
placement: n,
|
|
1120
1128
|
offset: { mainAxis: o, crossAxis: s } = { mainAxis: 0, crossAxis: 0 }
|
|
1121
|
-
}) =>
|
|
1122
|
-
const i =
|
|
1123
|
-
return
|
|
1129
|
+
}) => Xt((r) => {
|
|
1130
|
+
const i = B.toSignal(e), c = r.element;
|
|
1131
|
+
return qt(
|
|
1124
1132
|
i,
|
|
1125
|
-
() =>
|
|
1133
|
+
() => Kt(
|
|
1126
1134
|
"body",
|
|
1127
|
-
|
|
1135
|
+
_t.div(
|
|
1128
1136
|
G((l) => {
|
|
1129
1137
|
const a = l;
|
|
1130
1138
|
return a.style.position = "absolute", P(
|
|
1131
|
-
|
|
1132
|
-
const { x: f, y: u } = await
|
|
1139
|
+
un(c, a, async () => {
|
|
1140
|
+
const { x: f, y: u } = await hn(c, a, {
|
|
1133
1141
|
placement: n,
|
|
1134
1142
|
strategy: "absolute",
|
|
1135
1143
|
middleware: [
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1144
|
+
Vt(),
|
|
1145
|
+
fn({ mainAxis: o, crossAxis: s }),
|
|
1146
|
+
dn(),
|
|
1147
|
+
Vt()
|
|
1140
1148
|
]
|
|
1141
1149
|
});
|
|
1142
1150
|
a.style.top = `${u}px`, a.style.left = `${f}px`;
|
|
@@ -1147,7 +1155,7 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1147
1155
|
)
|
|
1148
1156
|
)
|
|
1149
1157
|
);
|
|
1150
|
-
}),
|
|
1158
|
+
}), mn = (t, e, n) => {
|
|
1151
1159
|
const o = W(C.notAsked), s = o.map(
|
|
1152
1160
|
(u) => C.isSuccess(u) ? u.value : void 0
|
|
1153
1161
|
), r = o.map(
|
|
@@ -1175,11 +1183,11 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1175
1183
|
reload: a,
|
|
1176
1184
|
dispose: f
|
|
1177
1185
|
};
|
|
1178
|
-
},
|
|
1186
|
+
}, pn = (t, e) => {
|
|
1179
1187
|
const { status: n, dispose: o, reload: s } = t, { loading: r, failure: i, success: c } = e;
|
|
1180
|
-
return
|
|
1188
|
+
return xt(
|
|
1181
1189
|
P(o),
|
|
1182
|
-
|
|
1190
|
+
Zt(n, {
|
|
1183
1191
|
loading: r != null ? (l) => r(l, s) : void 0,
|
|
1184
1192
|
failure: i != null ? (l) => i(l, s) : void 0,
|
|
1185
1193
|
success: (l) => c(l, s)
|
|
@@ -1190,23 +1198,23 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1190
1198
|
load: e,
|
|
1191
1199
|
mapError: n = (o) => o
|
|
1192
1200
|
}) => {
|
|
1193
|
-
const o =
|
|
1194
|
-
return (s) =>
|
|
1195
|
-
},
|
|
1201
|
+
const o = mn(t, e, n);
|
|
1202
|
+
return (s) => pn(o, s);
|
|
1203
|
+
}, gn = (t, e) => {
|
|
1196
1204
|
if (typeof e == "function")
|
|
1197
|
-
return
|
|
1198
|
-
const n = e.failure ?? ((s) =>
|
|
1205
|
+
return gn(t, { success: e });
|
|
1206
|
+
const n = e.failure ?? ((s) => xt(
|
|
1199
1207
|
P(s.on(console.error)),
|
|
1200
1208
|
s.map((r) => `Error: ${r}`)
|
|
1201
1209
|
)), o = e.success;
|
|
1202
|
-
return
|
|
1210
|
+
return Yt(B.toSignal(t), {
|
|
1203
1211
|
Success: (s) => o(s.$.value),
|
|
1204
1212
|
Failure: (s) => n(s.$.error)
|
|
1205
1213
|
});
|
|
1206
|
-
},
|
|
1214
|
+
}, $n = () => It.focus((t) => {
|
|
1207
1215
|
var e;
|
|
1208
1216
|
return (e = t.target) == null ? void 0 : e.select();
|
|
1209
|
-
}),
|
|
1217
|
+
}), Hn = (t) => Xt((e) => {
|
|
1210
1218
|
const { element: n } = e, o = W({
|
|
1211
1219
|
width: n.clientWidth,
|
|
1212
1220
|
height: n.clientHeight
|
|
@@ -1217,8 +1225,8 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1217
1225
|
return typeof ResizeObserver == "function" && (i = new ResizeObserver(r), i.observe(n)), P((c) => {
|
|
1218
1226
|
i == null || i.disconnect(), s(c);
|
|
1219
1227
|
});
|
|
1220
|
-
}),
|
|
1221
|
-
const n =
|
|
1228
|
+
}), Un = (t) => (e) => {
|
|
1229
|
+
const n = J(), o = W({
|
|
1222
1230
|
width: (n == null ? void 0 : n.innerWidth) ?? 0,
|
|
1223
1231
|
height: (n == null ? void 0 : n.innerHeight) ?? 0
|
|
1224
1232
|
}), s = vt(t(o))(e), r = () => {
|
|
@@ -1230,7 +1238,7 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1230
1238
|
return n == null || n.addEventListener("resize", r), (i) => {
|
|
1231
1239
|
n == null || n.removeEventListener("resize", r), s(i);
|
|
1232
1240
|
};
|
|
1233
|
-
},
|
|
1241
|
+
}, yn = (t, e) => {
|
|
1234
1242
|
const n = e.split("/").filter((s) => s !== ""), o = {};
|
|
1235
1243
|
for (let s = 0; s < t.length; s++) {
|
|
1236
1244
|
const r = t[s], i = n[s];
|
|
@@ -1245,22 +1253,22 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1245
1253
|
return { params: o, path: e };
|
|
1246
1254
|
}
|
|
1247
1255
|
return n.length !== t.length ? null : { params: o, path: e };
|
|
1248
|
-
},
|
|
1256
|
+
}, wn = (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 !== ""), xn = (t) => {
|
|
1249
1257
|
const e = t.map((n) => {
|
|
1250
|
-
const o =
|
|
1258
|
+
const o = wn(n);
|
|
1251
1259
|
return { route: n, segments: o };
|
|
1252
1260
|
});
|
|
1253
1261
|
return function(o) {
|
|
1254
1262
|
for (const { segments: s, route: r } of e) {
|
|
1255
|
-
const i =
|
|
1263
|
+
const i = yn(s, o);
|
|
1256
1264
|
if (i)
|
|
1257
1265
|
return { ...i, route: r };
|
|
1258
1266
|
}
|
|
1259
1267
|
return null;
|
|
1260
1268
|
};
|
|
1261
|
-
},
|
|
1269
|
+
}, Bn = (t) => {
|
|
1262
1270
|
const e = xn(Object.keys(t));
|
|
1263
|
-
return
|
|
1271
|
+
return zt(Qt, (n) => {
|
|
1264
1272
|
const o = n.map((s) => {
|
|
1265
1273
|
const r = e(s.pathname);
|
|
1266
1274
|
if (r == null)
|
|
@@ -1273,13 +1281,13 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1273
1281
|
hash: s.hash
|
|
1274
1282
|
};
|
|
1275
1283
|
});
|
|
1276
|
-
return
|
|
1284
|
+
return pe(
|
|
1277
1285
|
o.map((s) => [s.route, s]),
|
|
1278
1286
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1279
1287
|
t
|
|
1280
1288
|
);
|
|
1281
1289
|
});
|
|
1282
|
-
}, it = 60 * 1e3,
|
|
1290
|
+
}, it = 60 * 1e3, wt = 60 * it, X = 24 * wt, Nt = 7 * X, $t = 30 * X, vn = 365 * X, bn = [
|
|
1283
1291
|
{
|
|
1284
1292
|
max: it * 90,
|
|
1285
1293
|
value: it,
|
|
@@ -1288,15 +1296,15 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1288
1296
|
future: { singular: "in a minute", plural: "in {} minutes" }
|
|
1289
1297
|
},
|
|
1290
1298
|
{
|
|
1291
|
-
max:
|
|
1292
|
-
value:
|
|
1299
|
+
max: wt * 36,
|
|
1300
|
+
value: wt,
|
|
1293
1301
|
name: "hour",
|
|
1294
1302
|
past: { singular: "an hour ago", plural: "{} hours ago" },
|
|
1295
1303
|
future: { singular: "in an hour", plural: "in {} hours" }
|
|
1296
1304
|
},
|
|
1297
1305
|
{
|
|
1298
|
-
max:
|
|
1299
|
-
value:
|
|
1306
|
+
max: X * 10,
|
|
1307
|
+
value: X,
|
|
1300
1308
|
name: "day",
|
|
1301
1309
|
past: { singular: "yesterday", plural: "{} days ago" },
|
|
1302
1310
|
future: { singular: "tomorrow", plural: "in {} days" }
|
|
@@ -1309,21 +1317,21 @@ const un = _e, fn = Ie, Mt = Be, dn = (t, e, n) => {
|
|
|
1309
1317
|
future: { singular: "in a week", plural: "in {} weeks" }
|
|
1310
1318
|
},
|
|
1311
1319
|
{
|
|
1312
|
-
max:
|
|
1313
|
-
value:
|
|
1320
|
+
max: $t * 18,
|
|
1321
|
+
value: $t,
|
|
1314
1322
|
name: "month",
|
|
1315
1323
|
past: { singular: "last month", plural: "{} months ago" },
|
|
1316
1324
|
future: { singular: "in a month", plural: "in {} months" }
|
|
1317
1325
|
},
|
|
1318
1326
|
{
|
|
1319
1327
|
max: 1 / 0,
|
|
1320
|
-
value:
|
|
1328
|
+
value: vn,
|
|
1321
1329
|
name: "year",
|
|
1322
1330
|
past: { singular: "last year", plural: "{} years ago" },
|
|
1323
1331
|
future: { singular: "in a year", plural: "in {} years" }
|
|
1324
1332
|
}
|
|
1325
1333
|
];
|
|
1326
|
-
function
|
|
1334
|
+
function Ht(t, e, n, o) {
|
|
1327
1335
|
const s = Math.round(t / e);
|
|
1328
1336
|
return s <= 1 ? n : o.replace(
|
|
1329
1337
|
"{}",
|
|
@@ -1333,28 +1341,28 @@ function $t(t, e, n, o) {
|
|
|
1333
1341
|
})
|
|
1334
1342
|
);
|
|
1335
1343
|
}
|
|
1336
|
-
const
|
|
1337
|
-
const e = W(/* @__PURE__ */ new Date()), n =
|
|
1344
|
+
const An = (t = 1e3) => {
|
|
1345
|
+
const e = W(/* @__PURE__ */ new Date()), n = we(() => e.set(/* @__PURE__ */ new Date()), t);
|
|
1338
1346
|
return e.onDispose(n), e;
|
|
1339
|
-
},
|
|
1347
|
+
}, Rn = (t) => {
|
|
1340
1348
|
const e = Math.abs(t);
|
|
1341
1349
|
if (e < it)
|
|
1342
1350
|
return t < 0 ? "just now" : "in a moment";
|
|
1343
|
-
for (const n of
|
|
1351
|
+
for (const n of bn)
|
|
1344
1352
|
if (e < n.max)
|
|
1345
|
-
return t < 0 ?
|
|
1353
|
+
return t < 0 ? Ht(e, n.value, n.past.singular, n.past.plural) : Ht(e, n.value, n.future.singular, n.future.plural);
|
|
1346
1354
|
throw new Error("unreachable");
|
|
1347
|
-
},
|
|
1348
|
-
const o = e != null ?
|
|
1355
|
+
}, En = (t, { now: e, frequency: n = 1e4 } = {}) => {
|
|
1356
|
+
const o = e != null ? Bt.is(e) ? e.derive() : W(e) : An(n), s = ge(
|
|
1349
1357
|
t,
|
|
1350
1358
|
o
|
|
1351
1359
|
)((r, i) => r.getTime() - i.getTime());
|
|
1352
|
-
return s.onDispose(() =>
|
|
1353
|
-
},
|
|
1354
|
-
const n =
|
|
1360
|
+
return s.onDispose(() => B.dispose(o)), s;
|
|
1361
|
+
}, Ln = (t, e = {}) => {
|
|
1362
|
+
const n = En(t, e), o = n.map(Rn);
|
|
1355
1363
|
return o.onDispose(n.dispose), o;
|
|
1356
|
-
},
|
|
1357
|
-
class
|
|
1364
|
+
}, zn = (t, e = {}) => Ln(t, e);
|
|
1365
|
+
class On extends ye {
|
|
1358
1366
|
constructor() {
|
|
1359
1367
|
super(...arguments);
|
|
1360
1368
|
/**
|
|
@@ -1364,42 +1372,42 @@ class Ln extends ge {
|
|
|
1364
1372
|
kt(this, "tick", () => this.update((n) => n + 1));
|
|
1365
1373
|
}
|
|
1366
1374
|
}
|
|
1367
|
-
const
|
|
1375
|
+
const _n = (t = 0) => new On(t, (e, n) => e === n);
|
|
1368
1376
|
export {
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1377
|
+
ke as Anchor,
|
|
1378
|
+
Cn as Appearance,
|
|
1379
|
+
Zt as AsyncResultView,
|
|
1380
|
+
Dn as AutoFocus,
|
|
1381
|
+
Wn as AutoSelect,
|
|
1382
|
+
Hn as ElementSize,
|
|
1383
|
+
Fn as HTMLTitle,
|
|
1384
|
+
Pn as HiddenWhenEmpty,
|
|
1385
|
+
We as InViewport,
|
|
1386
|
+
Qt as Location,
|
|
1387
|
+
Vn as PopOver,
|
|
1380
1388
|
Nn as Resource,
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
+
pn as ResourceDisplay,
|
|
1390
|
+
gn as ResultView,
|
|
1391
|
+
Bn as Router,
|
|
1392
|
+
$n as SelectOnFocus,
|
|
1393
|
+
On as Ticker,
|
|
1394
|
+
Mn as WhenInViewport,
|
|
1395
|
+
Un as WindowSize,
|
|
1396
|
+
ve as _checkExtensionCondition,
|
|
1389
1397
|
xe as _getExtension,
|
|
1390
1398
|
xn as _makeRouteMatcher,
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1399
|
+
wn as _parseRouteSegments,
|
|
1400
|
+
Re as areLocationsEqual,
|
|
1401
|
+
Ae as handleAnchorClick,
|
|
1402
|
+
Gt as locationFromURL,
|
|
1403
|
+
mn as makeResource,
|
|
1404
|
+
yn as matchesRoute,
|
|
1405
|
+
An as nowSignal,
|
|
1406
|
+
zn as relativeTime,
|
|
1407
|
+
En as relativeTimeMillisSignal,
|
|
1408
|
+
Ln as relativeTimeSignal,
|
|
1409
|
+
Ct as setLocationFromUrl,
|
|
1410
|
+
_n as ticker,
|
|
1411
|
+
Rn as timeDiffToString,
|
|
1404
1412
|
pt as urlFromLocation
|
|
1405
1413
|
};
|