@tempots/ui 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,5 +1,45 @@
1
- import { makeProviderMark as Et, makeProp as B, Fragment as X, OnUnmount as q, WithProvider as Lt, UseProvider as St, renderableOfTNode as nt, html as Tt, on as Ct, handleAnchorClick as Gt, Signal as ot, attr as kt, Empty as ft, OneOfType as Pt, makeSignal as Qt, Portal as Ft, isSSR as Zt, OnMount as Mt, When as Dt, OneOfTuple as te } from "@tempots/dom";
2
- const Wt = Et("LocationProvider"), ee = () => {
1
+ import { makeProviderMark as Ot, makeProp as H, Fragment as X, OnUnmount as q, WithProvider as Lt, UseProvider as St, renderableOfTNode as nt, html as Tt, on as Ct, Signal as ot, attr as kt, Empty as ut, OneOfType as Pt, makeSignal as Gt, Portal as Wt, isSSR as Qt, OnMount as Mt, When as Ft, OneOfTuple as Zt } from "@tempots/dom";
2
+ const te = (t) => {
3
+ const e = t.split("/").pop();
4
+ if (e == null || e.startsWith(".")) return;
5
+ const o = e.split(".") || [];
6
+ return o.length > 1 ? "." + o.pop() : void 0;
7
+ }, ee = (t, e) => {
8
+ const o = te(e);
9
+ return o != null && (t.length === 0 || !t.some((n) => o == n));
10
+ }, ne = (t, e, o, n) => {
11
+ let i = t.target;
12
+ for (; i != null && !(i instanceof HTMLAnchorElement); )
13
+ i = i.parentElement;
14
+ if (i == null)
15
+ return !0;
16
+ const r = i;
17
+ if (t.button !== 0 || t.ctrlKey || t.metaKey || r.target !== "_self" && r.target !== "" || r.getAttribute("download") != null)
18
+ return !0;
19
+ const { pathname: s, search: c, hash: a } = r;
20
+ if (n) {
21
+ const l = s + c + a, u = r.getAttribute("href");
22
+ if (!(u != null && u.startsWith("#")) && u !== l)
23
+ return !0;
24
+ }
25
+ return e ? !1 : ee(o, s);
26
+ }, oe = (t, e = {
27
+ ignoreUrlWithExtension: !0,
28
+ allowedExtensions: [],
29
+ ignoreExternalUrl: !0
30
+ }) => {
31
+ const o = e.ignoreUrlWithExtension === !0 && Array.isArray(e.allowedExtensions) ? e.allowedExtensions.map(
32
+ (n) => n.startsWith(".") ? n : "." + n
33
+ ) : [];
34
+ return (n) => {
35
+ ne(
36
+ n,
37
+ e.ignoreUrlWithExtension ?? !0,
38
+ o,
39
+ e.ignoreExternalUrl ?? !0
40
+ ) || t() && n.preventDefault();
41
+ };
42
+ }, Dt = Ot("LocationProvider"), ie = () => {
3
43
  const t = (window == null ? void 0 : window.location.hash) === "" ? void 0 : (window == null ? void 0 : window.location.hash.substring(1)) ?? void 0;
4
44
  return {
5
45
  pathname: (window == null ? void 0 : window.location.pathname) ?? "",
@@ -8,7 +48,7 @@ const Wt = Et("LocationProvider"), ee = () => {
8
48
  ),
9
49
  hash: t
10
50
  };
11
- }, ne = (t, e) => t.pathname === e.pathname && JSON.stringify(t.search) === JSON.stringify(e.search) && t.hash === e.hash, oe = (t) => {
51
+ }, re = (t, e) => t.pathname === e.pathname && JSON.stringify(t.search) === JSON.stringify(e.search) && t.hash === e.hash, se = (t) => {
12
52
  const e = new URL(t, (window == null ? void 0 : window.location.toString()) ?? ""), o = Object.fromEntries(e.searchParams.entries());
13
53
  let n = e.hash;
14
54
  return n.startsWith("#") && (n = n.substring(1)), {
@@ -16,14 +56,14 @@ const Wt = Et("LocationProvider"), ee = () => {
16
56
  search: o,
17
57
  hash: n === "" ? void 0 : n
18
58
  };
19
- }, ie = (t, e) => {
20
- const o = oe(e);
59
+ }, ce = (t, e) => {
60
+ const o = se(e);
21
61
  return t.set(o), t;
22
- }, re = (t) => {
62
+ }, le = (t) => {
23
63
  const o = new URLSearchParams(t.search).toString(), n = t.hash;
24
64
  return `${t.pathname}${o ? `?${o}` : ""}${n ? `#${n}` : ""}`;
25
- }, se = () => {
26
- const t = B(ee(), ne), e = () => {
65
+ }, ae = () => {
66
+ const t = H(ie(), re), e = () => {
27
67
  let o = (window == null ? void 0 : window.location.hash) ?? "";
28
68
  o.startsWith("#") && (o = o.substring(1));
29
69
  const n = {
@@ -38,55 +78,55 @@ const Wt = Et("LocationProvider"), ee = () => {
38
78
  return window == null || window.addEventListener("popstate", e), t.onDispose(() => {
39
79
  window == null || window.removeEventListener("popstate", e);
40
80
  }), t.on((o) => {
41
- window == null || window.history.pushState({}, "", re(o));
81
+ window == null || window.history.pushState({}, "", le(o));
42
82
  }), t;
43
- }, Ke = (t) => {
44
- const e = se();
83
+ }, Ze = (t) => {
84
+ const e = ae();
45
85
  return X(
46
86
  q(e.dispose),
47
- Lt(Wt, e, t)
87
+ Lt(Dt, e, t)
48
88
  );
49
- }, Nt = (t) => St(Wt, (e) => (o) => {
50
- const n = B(e.value, e.equals);
89
+ }, Nt = (t) => St(Dt, (e) => (o) => {
90
+ const n = H(e.value, e.equals);
51
91
  e.feedProp(n), n.on(e.set);
52
92
  const i = nt(t(n))(o);
53
93
  return (r) => {
54
94
  n.dispose(), i(r);
55
95
  };
56
- }), Ge = (t, ...e) => Nt((o) => Tt.a(
96
+ }), tn = (t, ...e) => Nt((o) => Tt.a(
57
97
  Ct.click(
58
- Gt(() => (ie(o, ot.unwrap(t)), !0))
98
+ oe(() => (ce(o, ot.unwrap(t)), !0))
59
99
  ),
60
100
  kt.href(t),
61
101
  ...e
62
- )), $t = Et("Appearance"), Qe = (t) => {
63
- const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, o = B(e ? "dark" : "light"), n = (r) => {
102
+ )), $t = Ot("Appearance"), en = (t) => {
103
+ const e = window.matchMedia != null && window.matchMedia("(prefers-color-scheme: dark)").matches, o = H(e ? "dark" : "light"), n = (r) => {
64
104
  o.set(r.matches ? "dark" : "light");
65
105
  }, i = window.matchMedia != null ? window.matchMedia("(prefers-color-scheme: dark)") : void 0;
66
106
  return i == null || i.addEventListener("change", n), X(
67
107
  Lt($t, o, t),
68
108
  q(() => i == null ? void 0 : i.removeEventListener("change", n))
69
109
  );
70
- }, Ze = (t) => St($t, t), ce = (t, e) => {
110
+ }, nn = (t) => St($t, t), ue = (t, e) => {
71
111
  if (typeof e == "function")
72
- return ce(t, { success: e });
112
+ return ue(t, { success: e });
73
113
  const o = e.failure ?? ((s) => X(
74
114
  q(s.on(console.error)),
75
115
  s.map((c) => `Error: ${c}`)
76
- )), n = e.success, i = e.loading ?? (() => ft), r = e.notAsked ?? (() => ft);
116
+ )), n = e.success, i = e.loading ?? (() => ut), r = e.notAsked ?? (() => ut);
77
117
  return Pt(ot.wrap(t), {
78
118
  AsyncSuccess: (s) => n(s.$.value),
79
119
  AsyncFailure: (s) => o(s.$.error),
80
- Loading: (s) => i(s.$.previousValue ?? Qt(void 0)),
120
+ Loading: (s) => i(s.$.previousValue ?? Gt(void 0)),
81
121
  NotAsked: r
82
122
  });
83
- }, tn = (t = 10) => (e) => {
123
+ }, on = (t = 10) => (e) => {
84
124
  const o = setTimeout(() => {
85
125
  var n;
86
126
  (n = e.element) == null || n.focus();
87
127
  }, t);
88
128
  return (n) => clearTimeout(o);
89
- }, en = (t = 10) => (e) => {
129
+ }, rn = (t = 10) => (e) => {
90
130
  const o = setTimeout(() => {
91
131
  var n;
92
132
  (n = e.element) == null || n.select();
@@ -94,12 +134,12 @@ const Wt = Et("LocationProvider"), ee = () => {
94
134
  return (n) => {
95
135
  clearTimeout(o);
96
136
  };
97
- }, nn = (t) => {
137
+ }, sn = (t) => {
98
138
  const e = t.element, o = e.style.getPropertyValue(":empty");
99
139
  return e.style.setProperty(":empty", "display:none"), (n) => {
100
140
  n && e.style.setProperty(":empty", o);
101
141
  };
102
- }, on = (t) => Ft("head > title", kt.innerText(t)), le = {
142
+ }, cn = (t) => Wt("head > title", kt.innerText(t)), fe = {
103
143
  partial: {
104
144
  root: null,
105
145
  rootMargin: "0px",
@@ -113,45 +153,45 @@ const Wt = Et("LocationProvider"), ee = () => {
113
153
  }, G = {
114
154
  partial: /* @__PURE__ */ new Map(),
115
155
  full: /* @__PURE__ */ new Map()
116
- }, U = {
156
+ }, I = {
117
157
  partial: null,
118
158
  full: null
119
159
  };
120
- function ae(t) {
121
- return U[t] == null && (U[t] = new IntersectionObserver((e) => {
160
+ function he(t) {
161
+ return I[t] == null && (I[t] = new IntersectionObserver((e) => {
122
162
  e.forEach((o) => {
123
163
  const n = G[t].get(o.target);
124
164
  n == null || n.set(o.isIntersecting);
125
165
  });
126
- }, le[t])), U[t];
166
+ }, fe[t])), I[t];
127
167
  }
128
- const fe = (t, e) => {
129
- const o = B(Zt());
168
+ const de = (t, e) => {
169
+ const o = H(Qt());
130
170
  return X(
131
171
  Mt((n) => {
132
- const i = typeof IntersectionObserver < "u" ? ae(t) : null;
172
+ const i = typeof IntersectionObserver < "u" ? he(t) : null;
133
173
  return G[t].set(n, o), i == null || i.observe(n), () => {
134
174
  var r;
135
- i == null || i.unobserve(n), G[t].delete(n), G[t].size === 0 && ((r = U[t]) == null || r.disconnect(), U[t] = null);
175
+ i == null || i.unobserve(n), G[t].delete(n), G[t].size === 0 && ((r = I[t]) == null || r.disconnect(), I[t] = null);
136
176
  };
137
177
  }),
138
178
  q(o.dispose),
139
179
  nt(e(o))
140
180
  );
141
- }, rn = (t, e, o) => fe(t, (n) => Dt(n, e, o ?? ft)), Q = Math.min, F = Math.max, Z = Math.round, K = Math.floor, C = (t) => ({
181
+ }, ln = (t, e, o) => de(t, (n) => Ft(n, e, o ?? ut)), Q = Math.min, W = Math.max, Z = Math.round, J = Math.floor, C = (t) => ({
142
182
  x: t,
143
183
  y: t
144
- }), ue = {
184
+ }), me = {
145
185
  left: "right",
146
186
  right: "left",
147
187
  bottom: "top",
148
188
  top: "bottom"
149
- }, he = {
189
+ }, pe = {
150
190
  start: "end",
151
191
  end: "start"
152
192
  };
153
193
  function xt(t, e, o) {
154
- return F(t, Q(e, o));
194
+ return W(t, Q(e, o));
155
195
  }
156
196
  function it(t, e) {
157
197
  return typeof t == "function" ? t(e) : t;
@@ -171,23 +211,23 @@ function zt(t) {
171
211
  function V(t) {
172
212
  return ["top", "bottom"].includes(M(t)) ? "y" : "x";
173
213
  }
174
- function Bt(t) {
214
+ function Ht(t) {
175
215
  return Vt(V(t));
176
216
  }
177
- function de(t, e, o) {
217
+ function ge(t, e, o) {
178
218
  o === void 0 && (o = !1);
179
- const n = rt(t), i = Bt(t), r = zt(i);
219
+ const n = rt(t), i = Ht(t), r = zt(i);
180
220
  let s = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
181
221
  return e.reference[r] > e.floating[r] && (s = tt(s)), [s, tt(s)];
182
222
  }
183
- function me(t) {
223
+ function we(t) {
184
224
  const e = tt(t);
185
- return [ut(t), e, ut(e)];
225
+ return [ft(t), e, ft(e)];
186
226
  }
187
- function ut(t) {
188
- return t.replace(/start|end/g, (e) => he[e]);
227
+ function ft(t) {
228
+ return t.replace(/start|end/g, (e) => pe[e]);
189
229
  }
190
- function pe(t, e, o) {
230
+ function ye(t, e, o) {
191
231
  const n = ["left", "right"], i = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
192
232
  switch (t) {
193
233
  case "top":
@@ -200,15 +240,15 @@ function pe(t, e, o) {
200
240
  return [];
201
241
  }
202
242
  }
203
- function ge(t, e, o, n) {
243
+ function xe(t, e, o, n) {
204
244
  const i = rt(t);
205
- let r = pe(M(t), o === "start", n);
206
- return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ut)))), r;
245
+ let r = ye(M(t), o === "start", n);
246
+ return i && (r = r.map((s) => s + "-" + i), e && (r = r.concat(r.map(ft)))), r;
207
247
  }
208
248
  function tt(t) {
209
- return t.replace(/left|right|bottom|top/g, (e) => ue[e]);
249
+ return t.replace(/left|right|bottom|top/g, (e) => me[e]);
210
250
  }
211
- function we(t) {
251
+ function ve(t) {
212
252
  return {
213
253
  top: 0,
214
254
  right: 0,
@@ -217,8 +257,8 @@ function we(t) {
217
257
  ...t
218
258
  };
219
259
  }
220
- function ye(t) {
221
- return typeof t != "number" ? we(t) : {
260
+ function be(t) {
261
+ return typeof t != "number" ? ve(t) : {
222
262
  top: t,
223
263
  right: t,
224
264
  bottom: t,
@@ -248,7 +288,7 @@ function vt(t, e, o) {
248
288
  reference: n,
249
289
  floating: i
250
290
  } = t;
251
- const r = V(e), s = Bt(e), c = zt(s), a = M(e), l = r === "y", u = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
291
+ const r = V(e), s = Ht(e), c = zt(s), a = M(e), l = r === "y", u = n.x + n.width / 2 - i.width / 2, f = n.y + n.height / 2 - i.height / 2, m = n[c] / 2 - i[c] / 2;
252
292
  let h;
253
293
  switch (a) {
254
294
  case "top":
@@ -291,7 +331,7 @@ function vt(t, e, o) {
291
331
  }
292
332
  return h;
293
333
  }
294
- const xe = async (t, e, o) => {
334
+ const Ae = async (t, e, o) => {
295
335
  const {
296
336
  placement: n = "bottom",
297
337
  strategy: i = "absolute",
@@ -352,7 +392,7 @@ const xe = async (t, e, o) => {
352
392
  middlewareData: h
353
393
  };
354
394
  };
355
- async function Ht(t, e) {
395
+ async function _t(t, e) {
356
396
  var o;
357
397
  e === void 0 && (e = {});
358
398
  const {
@@ -368,7 +408,7 @@ async function Ht(t, e) {
368
408
  elementContext: f = "floating",
369
409
  altBoundary: m = !1,
370
410
  padding: h = 0
371
- } = it(e, t), p = ye(h), w = c[m ? f === "floating" ? "reference" : "floating" : f], d = et(await r.getClippingRect({
411
+ } = it(e, t), p = be(h), w = c[m ? f === "floating" ? "reference" : "floating" : f], d = et(await r.getClippingRect({
372
412
  element: (o = await (r.isElement == null ? void 0 : r.isElement(w))) == null || o ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(c.floating)),
373
413
  boundary: l,
374
414
  rootBoundary: u,
@@ -397,7 +437,7 @@ async function Ht(t, e) {
397
437
  right: (v.right - d.right + p.right) / b.x
398
438
  };
399
439
  }
400
- const ve = function(t) {
440
+ const Ee = function(t) {
401
441
  return t === void 0 && (t = {}), {
402
442
  name: "flip",
403
443
  options: t,
@@ -421,55 +461,55 @@ const ve = function(t) {
421
461
  } = it(t, e);
422
462
  if ((o = r.arrow) != null && o.alignmentOffset)
423
463
  return {};
424
- const d = M(i), y = V(c), x = M(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = m || (x || !g ? [tt(c)] : me(c)), W = p !== "none";
425
- !m && W && v.push(...ge(c, g, p, b));
426
- const Jt = [c, ...v], lt = await Ht(e, w), J = [];
427
- let _ = ((n = r.flip) == null ? void 0 : n.overflows) || [];
428
- if (u && J.push(lt[d]), f) {
429
- const P = de(i, s, b);
430
- J.push(lt[P[0]], lt[P[1]]);
464
+ const d = M(i), y = V(c), x = M(c) === c, b = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), v = m || (x || !g ? [tt(c)] : we(c)), D = p !== "none";
465
+ !m && D && v.push(...xe(c, g, p, b));
466
+ const Kt = [c, ...v], lt = await _t(e, w), K = [];
467
+ let B = ((n = r.flip) == null ? void 0 : n.overflows) || [];
468
+ if (u && K.push(lt[d]), f) {
469
+ const P = ge(i, s, b);
470
+ K.push(lt[P[0]], lt[P[1]]);
431
471
  }
432
- if (_ = [..._, {
472
+ if (B = [...B, {
433
473
  placement: i,
434
- overflows: J
435
- }], !J.every((P) => P <= 0)) {
474
+ overflows: K
475
+ }], !K.every((P) => P <= 0)) {
436
476
  var pt, gt;
437
- const P = (((pt = r.flip) == null ? void 0 : pt.index) || 0) + 1, yt = Jt[P];
477
+ const P = (((pt = r.flip) == null ? void 0 : pt.index) || 0) + 1, yt = Kt[P];
438
478
  if (yt)
439
479
  return {
440
480
  data: {
441
481
  index: P,
442
- overflows: _
482
+ overflows: B
443
483
  },
444
484
  reset: {
445
485
  placement: yt
446
486
  }
447
487
  };
448
- let I = (gt = _.filter((N) => N.overflows[0] <= 0).sort((N, S) => N.overflows[1] - S.overflows[1])[0]) == null ? void 0 : gt.placement;
449
- if (!I)
488
+ let U = (gt = B.filter((N) => N.overflows[0] <= 0).sort((N, S) => N.overflows[1] - S.overflows[1])[0]) == null ? void 0 : gt.placement;
489
+ if (!U)
450
490
  switch (h) {
451
491
  case "bestFit": {
452
492
  var wt;
453
- const N = (wt = _.filter((S) => {
454
- if (W) {
493
+ const N = (wt = B.filter((S) => {
494
+ if (D) {
455
495
  const T = V(S.placement);
456
496
  return T === y || // Create a bias to the `y` side axis due to horizontal
457
497
  // reading directions favoring greater width.
458
498
  T === "y";
459
499
  }
460
500
  return !0;
461
- }).map((S) => [S.placement, S.overflows.filter((T) => T > 0).reduce((T, Kt) => T + Kt, 0)]).sort((S, T) => S[1] - T[1])[0]) == null ? void 0 : wt[0];
462
- N && (I = N);
501
+ }).map((S) => [S.placement, S.overflows.filter((T) => T > 0).reduce((T, Jt) => T + Jt, 0)]).sort((S, T) => S[1] - T[1])[0]) == null ? void 0 : wt[0];
502
+ N && (U = N);
463
503
  break;
464
504
  }
465
505
  case "initialPlacement":
466
- I = c;
506
+ U = c;
467
507
  break;
468
508
  }
469
- if (i !== I)
509
+ if (i !== U)
470
510
  return {
471
511
  reset: {
472
- placement: I
512
+ placement: U
473
513
  }
474
514
  };
475
515
  }
@@ -477,7 +517,7 @@ const ve = function(t) {
477
517
  }
478
518
  };
479
519
  };
480
- async function be(t, e) {
520
+ async function Re(t, e) {
481
521
  const {
482
522
  placement: o,
483
523
  platform: n,
@@ -505,7 +545,7 @@ async function be(t, e) {
505
545
  y: h * u
506
546
  };
507
547
  }
508
- const Ae = function(t) {
548
+ const Oe = function(t) {
509
549
  return t === void 0 && (t = 0), {
510
550
  name: "offset",
511
551
  options: t,
@@ -516,7 +556,7 @@ const Ae = function(t) {
516
556
  y: r,
517
557
  placement: s,
518
558
  middlewareData: c
519
- } = e, a = await be(e, t);
559
+ } = e, a = await Re(e, t);
520
560
  return s === ((o = c.offset) == null ? void 0 : o.placement) && (n = c.arrow) != null && n.alignmentOffset ? {} : {
521
561
  x: i + a.x,
522
562
  y: r + a.y,
@@ -527,7 +567,7 @@ const Ae = function(t) {
527
567
  };
528
568
  }
529
569
  };
530
- }, Re = function(t) {
570
+ }, Le = function(t) {
531
571
  return t === void 0 && (t = {}), {
532
572
  name: "shift",
533
573
  options: t,
@@ -555,7 +595,7 @@ const Ae = function(t) {
555
595
  } = it(t, e), l = {
556
596
  x: o,
557
597
  y: n
558
- }, u = await Ht(e, a), f = V(M(i)), m = Vt(f);
598
+ }, u = await _t(e, a), f = V(M(i)), m = Vt(f);
559
599
  let h = l[m], p = l[f];
560
600
  if (r) {
561
601
  const w = m === "y" ? "top" : "left", d = m === "y" ? "bottom" : "right", y = h + u[w], x = h - u[d];
@@ -580,8 +620,8 @@ const Ae = function(t) {
580
620
  }
581
621
  };
582
622
  };
583
- function H(t) {
584
- return _t(t) ? (t.nodeName || "").toLowerCase() : "#document";
623
+ function _(t) {
624
+ return Bt(t) ? (t.nodeName || "").toLowerCase() : "#document";
585
625
  }
586
626
  function A(t) {
587
627
  var e;
@@ -589,15 +629,15 @@ function A(t) {
589
629
  }
590
630
  function L(t) {
591
631
  var e;
592
- return (e = (_t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
632
+ return (e = (Bt(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
593
633
  }
594
- function _t(t) {
634
+ function Bt(t) {
595
635
  return t instanceof Node || t instanceof A(t).Node;
596
636
  }
597
- function O(t) {
637
+ function R(t) {
598
638
  return t instanceof Element || t instanceof A(t).Element;
599
639
  }
600
- function E(t) {
640
+ function O(t) {
601
641
  return t instanceof HTMLElement || t instanceof A(t).HTMLElement;
602
642
  }
603
643
  function bt(t) {
@@ -609,11 +649,11 @@ function Y(t) {
609
649
  overflowX: o,
610
650
  overflowY: n,
611
651
  display: i
612
- } = R(t);
652
+ } = E(t);
613
653
  return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !["inline", "contents"].includes(i);
614
654
  }
615
- function Oe(t) {
616
- return ["table", "td", "th"].includes(H(t));
655
+ function Se(t) {
656
+ return ["table", "td", "th"].includes(_(t));
617
657
  }
618
658
  function st(t) {
619
659
  return [":popover-open", ":modal"].some((e) => {
@@ -625,12 +665,12 @@ function st(t) {
625
665
  });
626
666
  }
627
667
  function ht(t) {
628
- const e = dt(), o = R(t);
668
+ const e = dt(), o = E(t);
629
669
  return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((n) => (o.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (o.contain || "").includes(n));
630
670
  }
631
- function Ee(t) {
671
+ function Te(t) {
632
672
  let e = k(t);
633
- for (; E(e) && !z(e); ) {
673
+ for (; O(e) && !z(e); ) {
634
674
  if (st(e))
635
675
  return null;
636
676
  if (ht(e))
@@ -643,13 +683,13 @@ function dt() {
643
683
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
644
684
  }
645
685
  function z(t) {
646
- return ["html", "body", "#document"].includes(H(t));
686
+ return ["html", "body", "#document"].includes(_(t));
647
687
  }
648
- function R(t) {
688
+ function E(t) {
649
689
  return A(t).getComputedStyle(t);
650
690
  }
651
691
  function ct(t) {
652
- return O(t) ? {
692
+ return R(t) ? {
653
693
  scrollLeft: t.scrollLeft,
654
694
  scrollTop: t.scrollTop
655
695
  } : {
@@ -658,7 +698,7 @@ function ct(t) {
658
698
  };
659
699
  }
660
700
  function k(t) {
661
- if (H(t) === "html")
701
+ if (_(t) === "html")
662
702
  return t;
663
703
  const e = (
664
704
  // Step into the shadow DOM of the parent of a slotted node.
@@ -669,20 +709,20 @@ function k(t) {
669
709
  );
670
710
  return bt(e) ? e.host : e;
671
711
  }
672
- function It(t) {
712
+ function Ut(t) {
673
713
  const e = k(t);
674
- return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : E(e) && Y(e) ? e : It(e);
714
+ return z(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : O(e) && Y(e) ? e : Ut(e);
675
715
  }
676
716
  function j(t, e, o) {
677
717
  var n;
678
718
  e === void 0 && (e = []), o === void 0 && (o = !0);
679
- const i = It(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = A(i);
719
+ const i = Ut(t), r = i === ((n = t.ownerDocument) == null ? void 0 : n.body), s = A(i);
680
720
  return r ? e.concat(s, s.visualViewport || [], Y(i) ? i : [], s.frameElement && o ? j(s.frameElement) : []) : e.concat(i, j(i, [], o));
681
721
  }
682
- function Ut(t) {
683
- const e = R(t);
722
+ function It(t) {
723
+ const e = E(t);
684
724
  let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
685
- const i = E(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = Z(o) !== r || Z(n) !== s;
725
+ const i = O(t), r = i ? t.offsetWidth : o, s = i ? t.offsetHeight : n, c = Z(o) !== r || Z(n) !== s;
686
726
  return c && (o = r, n = s), {
687
727
  width: o,
688
728
  height: n,
@@ -690,46 +730,46 @@ function Ut(t) {
690
730
  };
691
731
  }
692
732
  function mt(t) {
693
- return O(t) ? t : t.contextElement;
733
+ return R(t) ? t : t.contextElement;
694
734
  }
695
735
  function $(t) {
696
736
  const e = mt(t);
697
- if (!E(e))
737
+ if (!O(e))
698
738
  return C(1);
699
739
  const o = e.getBoundingClientRect(), {
700
740
  width: n,
701
741
  height: i,
702
742
  $: r
703
- } = Ut(e);
743
+ } = It(e);
704
744
  let s = (r ? Z(o.width) : o.width) / n, c = (r ? Z(o.height) : o.height) / i;
705
745
  return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
706
746
  x: s,
707
747
  y: c
708
748
  };
709
749
  }
710
- const Le = /* @__PURE__ */ C(0);
750
+ const Ce = /* @__PURE__ */ C(0);
711
751
  function jt(t) {
712
752
  const e = A(t);
713
- return !dt() || !e.visualViewport ? Le : {
753
+ return !dt() || !e.visualViewport ? Ce : {
714
754
  x: e.visualViewport.offsetLeft,
715
755
  y: e.visualViewport.offsetTop
716
756
  };
717
757
  }
718
- function Se(t, e, o) {
758
+ function ke(t, e, o) {
719
759
  return e === void 0 && (e = !1), !o || e && o !== A(t) ? !1 : e;
720
760
  }
721
- function D(t, e, o, n) {
761
+ function F(t, e, o, n) {
722
762
  e === void 0 && (e = !1), o === void 0 && (o = !1);
723
763
  const i = t.getBoundingClientRect(), r = mt(t);
724
764
  let s = C(1);
725
- e && (n ? O(n) && (s = $(n)) : s = $(t));
726
- const c = Se(r, o, n) ? jt(r) : C(0);
765
+ e && (n ? R(n) && (s = $(n)) : s = $(t));
766
+ const c = ke(r, o, n) ? jt(r) : C(0);
727
767
  let a = (i.left + c.x) / s.x, l = (i.top + c.y) / s.y, u = i.width / s.x, f = i.height / s.y;
728
768
  if (r) {
729
- const m = A(r), h = n && O(n) ? A(n) : n;
769
+ const m = A(r), h = n && R(n) ? A(n) : n;
730
770
  let p = m, g = p.frameElement;
731
771
  for (; g && n && h !== p; ) {
732
- const w = $(g), d = g.getBoundingClientRect(), y = R(g), x = d.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, b = d.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
772
+ const w = $(g), d = g.getBoundingClientRect(), y = E(g), x = d.left + (g.clientLeft + parseFloat(y.paddingLeft)) * w.x, b = d.top + (g.clientTop + parseFloat(y.paddingTop)) * w.y;
733
773
  a *= w.x, l *= w.y, u *= w.x, f *= w.y, a += x, l += b, p = A(g), g = p.frameElement;
734
774
  }
735
775
  }
@@ -740,7 +780,7 @@ function D(t, e, o, n) {
740
780
  y: l
741
781
  });
742
782
  }
743
- function Te(t) {
783
+ function Pe(t) {
744
784
  let {
745
785
  elements: e,
746
786
  rect: o,
@@ -754,9 +794,9 @@ function Te(t) {
754
794
  scrollLeft: 0,
755
795
  scrollTop: 0
756
796
  }, l = C(1);
757
- const u = C(0), f = E(n);
758
- if ((f || !f && !r) && ((H(n) !== "body" || Y(s)) && (a = ct(n)), E(n))) {
759
- const m = D(n);
797
+ const u = C(0), f = O(n);
798
+ if ((f || !f && !r) && ((_(n) !== "body" || Y(s)) && (a = ct(n)), O(n))) {
799
+ const m = F(n);
760
800
  l = $(n), u.x = m.x + n.clientLeft, u.y = m.y + n.clientTop;
761
801
  }
762
802
  return {
@@ -766,24 +806,24 @@ function Te(t) {
766
806
  y: o.y * l.y - a.scrollTop * l.y + u.y
767
807
  };
768
808
  }
769
- function Ce(t) {
809
+ function We(t) {
770
810
  return Array.from(t.getClientRects());
771
811
  }
772
812
  function Xt(t) {
773
- return D(L(t)).left + ct(t).scrollLeft;
813
+ return F(L(t)).left + ct(t).scrollLeft;
774
814
  }
775
- function ke(t) {
776
- const e = L(t), o = ct(t), n = t.ownerDocument.body, i = F(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = F(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
815
+ function Me(t) {
816
+ const e = L(t), o = ct(t), n = t.ownerDocument.body, i = W(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), r = W(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
777
817
  let s = -o.scrollLeft + Xt(t);
778
818
  const c = -o.scrollTop;
779
- return R(n).direction === "rtl" && (s += F(e.clientWidth, n.clientWidth) - i), {
819
+ return E(n).direction === "rtl" && (s += W(e.clientWidth, n.clientWidth) - i), {
780
820
  width: i,
781
821
  height: r,
782
822
  x: s,
783
823
  y: c
784
824
  };
785
825
  }
786
- function Pe(t, e) {
826
+ function Fe(t, e) {
787
827
  const o = A(t), n = L(t), i = o.visualViewport;
788
828
  let r = n.clientWidth, s = n.clientHeight, c = 0, a = 0;
789
829
  if (i) {
@@ -798,8 +838,8 @@ function Pe(t, e) {
798
838
  y: a
799
839
  };
800
840
  }
801
- function Fe(t, e) {
802
- const o = D(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = E(t) ? $(t) : C(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, a = i * r.x, l = n * r.y;
841
+ function De(t, e) {
842
+ const o = F(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, r = O(t) ? $(t) : C(1), s = t.clientWidth * r.x, c = t.clientHeight * r.y, a = i * r.x, l = n * r.y;
803
843
  return {
804
844
  width: s,
805
845
  height: c,
@@ -810,11 +850,11 @@ function Fe(t, e) {
810
850
  function At(t, e, o) {
811
851
  let n;
812
852
  if (e === "viewport")
813
- n = Pe(t, o);
853
+ n = Fe(t, o);
814
854
  else if (e === "document")
815
- n = ke(L(t));
816
- else if (O(e))
817
- n = Fe(e, o);
855
+ n = Me(L(t));
856
+ else if (R(e))
857
+ n = De(e, o);
818
858
  else {
819
859
  const i = jt(t);
820
860
  n = {
@@ -827,31 +867,31 @@ function At(t, e, o) {
827
867
  }
828
868
  function qt(t, e) {
829
869
  const o = k(t);
830
- return o === e || !O(o) || z(o) ? !1 : R(o).position === "fixed" || qt(o, e);
870
+ return o === e || !R(o) || z(o) ? !1 : E(o).position === "fixed" || qt(o, e);
831
871
  }
832
- function Me(t, e) {
872
+ function Ne(t, e) {
833
873
  const o = e.get(t);
834
874
  if (o)
835
875
  return o;
836
- let n = j(t, [], !1).filter((c) => O(c) && H(c) !== "body"), i = null;
837
- const r = R(t).position === "fixed";
876
+ let n = j(t, [], !1).filter((c) => R(c) && _(c) !== "body"), i = null;
877
+ const r = E(t).position === "fixed";
838
878
  let s = r ? k(t) : t;
839
- for (; O(s) && !z(s); ) {
840
- const c = R(s), a = ht(s);
879
+ for (; R(s) && !z(s); ) {
880
+ const c = E(s), a = ht(s);
841
881
  !a && c.position === "fixed" && (i = null), (r ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Y(s) && !a && qt(t, s)) ? n = n.filter((u) => u !== s) : i = c, s = k(s);
842
882
  }
843
883
  return e.set(t, n), n;
844
884
  }
845
- function De(t) {
885
+ function $e(t) {
846
886
  let {
847
887
  element: e,
848
888
  boundary: o,
849
889
  rootBoundary: n,
850
890
  strategy: i
851
891
  } = t;
852
- const s = [...o === "clippingAncestors" ? st(e) ? [] : Me(e, this._c) : [].concat(o), n], c = s[0], a = s.reduce((l, u) => {
892
+ const s = [...o === "clippingAncestors" ? st(e) ? [] : Ne(e, this._c) : [].concat(o), n], c = s[0], a = s.reduce((l, u) => {
853
893
  const f = At(e, u, i);
854
- return l.top = F(f.top, l.top), l.right = Q(f.right, l.right), l.bottom = Q(f.bottom, l.bottom), l.left = F(f.left, l.left), l;
894
+ return l.top = W(f.top, l.top), l.right = Q(f.right, l.right), l.bottom = Q(f.bottom, l.bottom), l.left = W(f.left, l.left), l;
855
895
  }, At(e, c, i));
856
896
  return {
857
897
  width: a.right - a.left,
@@ -860,26 +900,26 @@ function De(t) {
860
900
  y: a.top
861
901
  };
862
902
  }
863
- function We(t) {
903
+ function Ve(t) {
864
904
  const {
865
905
  width: e,
866
906
  height: o
867
- } = Ut(t);
907
+ } = It(t);
868
908
  return {
869
909
  width: e,
870
910
  height: o
871
911
  };
872
912
  }
873
- function Ne(t, e, o) {
874
- const n = E(e), i = L(e), r = o === "fixed", s = D(t, !0, r, e);
913
+ function ze(t, e, o) {
914
+ const n = O(e), i = L(e), r = o === "fixed", s = F(t, !0, r, e);
875
915
  let c = {
876
916
  scrollLeft: 0,
877
917
  scrollTop: 0
878
918
  };
879
919
  const a = C(0);
880
920
  if (n || !n && !r)
881
- if ((H(e) !== "body" || Y(i)) && (c = ct(e)), n) {
882
- const f = D(e, !0, r, e);
921
+ if ((_(e) !== "body" || Y(i)) && (c = ct(e)), n) {
922
+ const f = F(e, !0, r, e);
883
923
  a.x = f.x + e.clientLeft, a.y = f.y + e.clientTop;
884
924
  } else i && (a.x = Xt(i));
885
925
  const l = s.left + c.scrollLeft - a.x, u = s.top + c.scrollTop - a.y;
@@ -891,33 +931,33 @@ function Ne(t, e, o) {
891
931
  };
892
932
  }
893
933
  function at(t) {
894
- return R(t).position === "static";
934
+ return E(t).position === "static";
895
935
  }
896
- function Rt(t, e) {
897
- return !E(t) || R(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
936
+ function Et(t, e) {
937
+ return !O(t) || E(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
898
938
  }
899
939
  function Yt(t, e) {
900
940
  const o = A(t);
901
941
  if (st(t))
902
942
  return o;
903
- if (!E(t)) {
943
+ if (!O(t)) {
904
944
  let i = k(t);
905
945
  for (; i && !z(i); ) {
906
- if (O(i) && !at(i))
946
+ if (R(i) && !at(i))
907
947
  return i;
908
948
  i = k(i);
909
949
  }
910
950
  return o;
911
951
  }
912
- let n = Rt(t, e);
913
- for (; n && Oe(n) && at(n); )
914
- n = Rt(n, e);
915
- return n && z(n) && at(n) && !ht(n) ? o : n || Ee(t) || o;
952
+ let n = Et(t, e);
953
+ for (; n && Se(n) && at(n); )
954
+ n = Et(n, e);
955
+ return n && z(n) && at(n) && !ht(n) ? o : n || Te(t) || o;
916
956
  }
917
- const $e = async function(t) {
957
+ const He = async function(t) {
918
958
  const e = this.getOffsetParent || Yt, o = this.getDimensions, n = await o(t.floating);
919
959
  return {
920
- reference: Ne(t.reference, await e(t.floating), t.strategy),
960
+ reference: ze(t.reference, await e(t.floating), t.strategy),
921
961
  floating: {
922
962
  x: 0,
923
963
  y: 0,
@@ -926,22 +966,22 @@ const $e = async function(t) {
926
966
  }
927
967
  };
928
968
  };
929
- function Ve(t) {
930
- return R(t).direction === "rtl";
969
+ function _e(t) {
970
+ return E(t).direction === "rtl";
931
971
  }
932
- const ze = {
933
- convertOffsetParentRelativeRectToViewportRelativeRect: Te,
972
+ const Be = {
973
+ convertOffsetParentRelativeRectToViewportRelativeRect: Pe,
934
974
  getDocumentElement: L,
935
- getClippingRect: De,
975
+ getClippingRect: $e,
936
976
  getOffsetParent: Yt,
937
- getElementRects: $e,
938
- getClientRects: Ce,
939
- getDimensions: We,
977
+ getElementRects: He,
978
+ getClientRects: We,
979
+ getDimensions: Ve,
940
980
  getScale: $,
941
- isElement: O,
942
- isRTL: Ve
981
+ isElement: R,
982
+ isRTL: _e
943
983
  };
944
- function Be(t, e) {
984
+ function Ue(t, e) {
945
985
  let o = null, n;
946
986
  const i = L(t);
947
987
  function r() {
@@ -958,17 +998,17 @@ function Be(t, e) {
958
998
  } = t.getBoundingClientRect();
959
999
  if (c || e(), !f || !m)
960
1000
  return;
961
- const h = K(u), p = K(i.clientWidth - (l + f)), g = K(i.clientHeight - (u + m)), w = K(l), y = {
1001
+ const h = J(u), p = J(i.clientWidth - (l + f)), g = J(i.clientHeight - (u + m)), w = J(l), y = {
962
1002
  rootMargin: -h + "px " + -p + "px " + -g + "px " + -w + "px",
963
- threshold: F(0, Q(1, a)) || 1
1003
+ threshold: W(0, Q(1, a)) || 1
964
1004
  };
965
1005
  let x = !0;
966
1006
  function b(v) {
967
- const W = v[0].intersectionRatio;
968
- if (W !== a) {
1007
+ const D = v[0].intersectionRatio;
1008
+ if (D !== a) {
969
1009
  if (!x)
970
1010
  return s();
971
- W ? s(!1, W) : n = setTimeout(() => {
1011
+ D ? s(!1, D) : n = setTimeout(() => {
972
1012
  s(!1, 1e-7);
973
1013
  }, 1e3);
974
1014
  }
@@ -987,7 +1027,7 @@ function Be(t, e) {
987
1027
  }
988
1028
  return s(!0), r;
989
1029
  }
990
- function He(t, e, o, n) {
1030
+ function Ie(t, e, o, n) {
991
1031
  n === void 0 && (n = {});
992
1032
  const {
993
1033
  ancestorScroll: i = !0,
@@ -1001,7 +1041,7 @@ function He(t, e, o, n) {
1001
1041
  passive: !0
1002
1042
  }), r && d.addEventListener("resize", o);
1003
1043
  });
1004
- const f = l && c ? Be(l, o) : null;
1044
+ const f = l && c ? Ue(l, o) : null;
1005
1045
  let m = -1, h = null;
1006
1046
  s && (h = new ResizeObserver((d) => {
1007
1047
  let [y] = d;
@@ -1010,10 +1050,10 @@ function He(t, e, o, n) {
1010
1050
  (x = h) == null || x.observe(e);
1011
1051
  })), o();
1012
1052
  }), l && !a && h.observe(l), h.observe(e));
1013
- let p, g = a ? D(t) : null;
1053
+ let p, g = a ? F(t) : null;
1014
1054
  a && w();
1015
1055
  function w() {
1016
- const d = D(t);
1056
+ const d = F(t);
1017
1057
  g && (d.x !== g.x || d.y !== g.y || d.width !== g.width || d.height !== g.height) && o(), g = d, p = requestAnimationFrame(w);
1018
1058
  }
1019
1059
  return o(), () => {
@@ -1023,41 +1063,41 @@ function He(t, e, o, n) {
1023
1063
  }), f == null || f(), (d = h) == null || d.disconnect(), h = null, a && cancelAnimationFrame(p);
1024
1064
  };
1025
1065
  }
1026
- const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1066
+ const je = Oe, Xe = Le, Rt = Ee, qe = (t, e, o) => {
1027
1067
  const n = /* @__PURE__ */ new Map(), i = {
1028
- platform: ze,
1068
+ platform: Be,
1029
1069
  ...o
1030
1070
  }, r = {
1031
1071
  ...i.platform,
1032
1072
  _c: n
1033
1073
  };
1034
- return xe(t, e, {
1074
+ return Ae(t, e, {
1035
1075
  ...i,
1036
1076
  platform: r
1037
1077
  });
1038
- }, sn = ({
1078
+ }, an = ({
1039
1079
  content: t,
1040
1080
  open: e,
1041
1081
  placement: o,
1042
1082
  offset: { mainAxis: n, crossAxis: i } = { mainAxis: 0, crossAxis: 0 }
1043
1083
  }) => (r) => {
1044
1084
  const s = r.element, c = ot.wrap(e);
1045
- return Dt(
1085
+ return Ft(
1046
1086
  c,
1047
- Ft(
1087
+ Wt(
1048
1088
  "body",
1049
1089
  Tt.div(
1050
1090
  Mt((a) => {
1051
1091
  const l = a;
1052
- return l.style.position = "absolute", He(s, l, () => {
1053
- Ue(s, l, {
1092
+ return l.style.position = "absolute", Ie(s, l, () => {
1093
+ qe(s, l, {
1054
1094
  placement: o,
1055
1095
  strategy: "absolute",
1056
1096
  middleware: [
1057
- Ot(),
1058
- _e({ mainAxis: n, crossAxis: i }),
1059
- Ie(),
1060
- Ot()
1097
+ Rt(),
1098
+ je({ mainAxis: n, crossAxis: i }),
1099
+ Xe(),
1100
+ Rt()
1061
1101
  ]
1062
1102
  }).then(({ x: u, y: f }) => {
1063
1103
  l.style.top = `${f}px`, l.style.left = `${u}px`;
@@ -1068,9 +1108,9 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1068
1108
  )
1069
1109
  )
1070
1110
  )(r);
1071
- }, je = (t, e) => {
1111
+ }, Ye = (t, e) => {
1072
1112
  if (typeof e == "function")
1073
- return je(t, { success: e });
1113
+ return Ye(t, { success: e });
1074
1114
  const o = e.failure ?? ((i) => X(
1075
1115
  q(i.on(console.error)),
1076
1116
  i.map((r) => `Error: ${r}`)
@@ -1079,19 +1119,19 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1079
1119
  Success: (i) => n(i.$.value),
1080
1120
  Failure: (i) => o(i.$.error)
1081
1121
  });
1082
- }, cn = () => Ct.focus((t) => {
1122
+ }, un = () => Ct.focus((t) => {
1083
1123
  var e;
1084
1124
  return (e = t.target) == null ? void 0 : e.select();
1085
- }), ln = (t) => (e) => {
1086
- const o = e.element, n = B({ width: o.clientWidth, height: o.clientHeight }), i = nt(t(n))(e), r = () => {
1125
+ }), fn = (t) => (e) => {
1126
+ const o = e.element, n = H({ width: o.clientWidth, height: o.clientHeight }), i = nt(t(n))(e), r = () => {
1087
1127
  n.set({ width: o.clientWidth, height: o.clientHeight });
1088
1128
  };
1089
1129
  let s;
1090
1130
  return typeof ResizeObserver == "function" && (s = new ResizeObserver(r), s.observe(o)), (c) => {
1091
1131
  s == null || s.disconnect(), i(c);
1092
1132
  };
1093
- }, an = (t) => (e) => {
1094
- const o = B({
1133
+ }, hn = (t) => (e) => {
1134
+ const o = H({
1095
1135
  width: (window == null ? void 0 : window.innerWidth) ?? 0,
1096
1136
  height: (window == null ? void 0 : window.innerHeight) ?? 0
1097
1137
  }), n = nt(t(o))(e), i = () => {
@@ -1103,7 +1143,7 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1103
1143
  return window == null || window.addEventListener("resize", i), (r) => {
1104
1144
  window == null || window.removeEventListener("resize", i), n(r);
1105
1145
  };
1106
- }, Xe = (t, e) => {
1146
+ }, Ke = (t, e) => {
1107
1147
  const o = e.split("/").filter((i) => i !== ""), n = {};
1108
1148
  for (let i = 0; i < t.length; i++) {
1109
1149
  const r = t[i], s = o[i];
@@ -1118,21 +1158,21 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1118
1158
  return { params: n, path: e };
1119
1159
  }
1120
1160
  return o.length !== t.length ? null : { params: n, path: e };
1121
- }, qe = (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 !== ""), Ye = (t) => {
1161
+ }, Je = (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 !== ""), Ge = (t) => {
1122
1162
  const e = t.map((o) => {
1123
- const n = qe(o);
1163
+ const n = Je(o);
1124
1164
  return { route: o, segments: n };
1125
1165
  });
1126
1166
  return function(n) {
1127
1167
  for (const { segments: i, route: r } of e) {
1128
- const s = Xe(i, n);
1168
+ const s = Ke(i, n);
1129
1169
  if (s)
1130
1170
  return { ...s, route: r };
1131
1171
  }
1132
1172
  return null;
1133
1173
  };
1134
- }, fn = (t) => {
1135
- const e = Ye(Object.keys(t));
1174
+ }, dn = (t) => {
1175
+ const e = Ge(Object.keys(t));
1136
1176
  return Nt((o) => {
1137
1177
  const n = o.map((i) => {
1138
1178
  const r = e(i.pathname);
@@ -1146,7 +1186,7 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1146
1186
  hash: i.hash
1147
1187
  };
1148
1188
  });
1149
- return te(
1189
+ return Zt(
1150
1190
  n.map((i) => [i.route, i]),
1151
1191
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1152
1192
  t
@@ -1154,33 +1194,36 @@ const _e = Ae, Ie = Re, Ot = ve, Ue = (t, e, o) => {
1154
1194
  });
1155
1195
  };
1156
1196
  export {
1157
- Ge as Anchor,
1158
- ce as AsyncResultView,
1159
- tn as AutoFocus,
1160
- en as AutoSelect,
1161
- ln as ElementSize,
1162
- on as HTMLTitle,
1163
- nn as HiddenWhenEmpty,
1164
- fe as InViewport,
1165
- Wt as LocationProviderMarker,
1166
- sn as PopOver,
1167
- Qe as ProvideAppearance,
1168
- Ke as ProvideLocation,
1169
- je as ResultView,
1170
- fn as Router,
1171
- cn as SelectOnFocus,
1172
- Ze as UseAppearance,
1197
+ tn as Anchor,
1198
+ ue as AsyncResultView,
1199
+ on as AutoFocus,
1200
+ rn as AutoSelect,
1201
+ fn as ElementSize,
1202
+ cn as HTMLTitle,
1203
+ sn as HiddenWhenEmpty,
1204
+ de as InViewport,
1205
+ Dt as LocationProviderMarker,
1206
+ an as PopOver,
1207
+ en as ProvideAppearance,
1208
+ Ze as ProvideLocation,
1209
+ Ye as ResultView,
1210
+ dn as Router,
1211
+ un as SelectOnFocus,
1212
+ nn as UseAppearance,
1173
1213
  Nt as UseLocation,
1174
- rn as WhenInViewport,
1175
- an as WindowSize,
1176
- ee as _makeLocation,
1177
- se as _makeLocationProp,
1178
- Ye as _makeRouteMatcher,
1179
- qe as _parseRouteSegments,
1214
+ ln as WhenInViewport,
1215
+ hn as WindowSize,
1216
+ ee as _checkExtensionCondition,
1217
+ te as _getExtension,
1218
+ ie as _makeLocation,
1219
+ ae as _makeLocationProp,
1220
+ Ge as _makeRouteMatcher,
1221
+ Je as _parseRouteSegments,
1180
1222
  $t as appearanceMarker,
1181
- ne as areLocationsEqual,
1182
- oe as locationFromURL,
1183
- Xe as matchesRoute,
1184
- ie as setLocationFromUrl,
1185
- re as urlFromLocation
1223
+ re as areLocationsEqual,
1224
+ oe as handleAnchorClick,
1225
+ se as locationFromURL,
1226
+ Ke as matchesRoute,
1227
+ ce as setLocationFromUrl,
1228
+ le as urlFromLocation
1186
1229
  };