@cocoar/vue-ui 1.5.3 → 1.5.4

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/dist/index.js CHANGED
@@ -2113,8 +2113,8 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2113
2113
  }
2114
2114
  ]);
2115
2115
  function k(P) {
2116
- const D = P.target;
2117
- n.value = D.value;
2116
+ const T = P.target;
2117
+ n.value = T.value;
2118
2118
  }
2119
2119
  function _(P) {
2120
2120
  l.value = !0, a("focused", P);
@@ -2128,7 +2128,7 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2128
2128
  function W() {
2129
2129
  !o.disabled && !o.readonly && (s.value = !s.value);
2130
2130
  }
2131
- return (P, D) => (h(), b("div", {
2131
+ return (P, T) => (h(), b("div", {
2132
2132
  class: K(z.value)
2133
2133
  }, [
2134
2134
  x("div", Nl, [
@@ -2240,10 +2240,10 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2240
2240
  const R = o.locale ?? navigator.language;
2241
2241
  if (R)
2242
2242
  try {
2243
- const T = new Intl.NumberFormat(R).formatToParts(1000.1);
2243
+ const D = new Intl.NumberFormat(R).formatToParts(1000.1);
2244
2244
  return {
2245
- decimal: T.find((N) => N.type === "decimal")?.value ?? ".",
2246
- thousand: T.find((N) => N.type === "group")?.value ?? ""
2245
+ decimal: D.find((N) => N.type === "decimal")?.value ?? ".",
2246
+ thousand: D.find((N) => N.type === "group")?.value ?? ""
2247
2247
  };
2248
2248
  } catch {
2249
2249
  }
@@ -2254,7 +2254,7 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2254
2254
  const E = W.value;
2255
2255
  return R.toFixed(o.decimals).replace(".", E.decimal);
2256
2256
  }
2257
- function D(R) {
2257
+ function T(R) {
2258
2258
  if (R.trim() === "") return null;
2259
2259
  const E = W.value, N = (E.thousand ? R.replace(new RegExp(`\\${E.thousand}`, "g"), "") : R).replace(E.decimal, "."), C = parseFloat(N);
2260
2260
  return isNaN(C) ? null : C;
@@ -2264,10 +2264,10 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2264
2264
  return o.min !== void 0 && E < o.min && (E = o.min), o.max !== void 0 && E > o.max && (E = o.max), E;
2265
2265
  }
2266
2266
  function S() {
2267
- const R = D(i.value);
2267
+ const R = T(i.value);
2268
2268
  if (R !== null) {
2269
- const E = L(R), T = parseFloat(E.toFixed(o.decimals));
2270
- n.value = T;
2269
+ const E = L(R), D = parseFloat(E.toFixed(o.decimals));
2270
+ n.value = D;
2271
2271
  } else
2272
2272
  n.value = null, i.value = "";
2273
2273
  }
@@ -2275,14 +2275,14 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2275
2275
  X();
2276
2276
  const R = c.value;
2277
2277
  if (!R) return;
2278
- const E = W.value, T = ys({
2278
+ const E = W.value, D = ys({
2279
2279
  decimalSeparator: E.decimal,
2280
2280
  thousandSeparator: E.thousand,
2281
2281
  maximumFractionDigits: o.decimals,
2282
2282
  min: o.min,
2283
2283
  max: o.max
2284
2284
  });
2285
- f = new Lo(R, T);
2285
+ f = new Lo(R, D);
2286
2286
  }
2287
2287
  function X() {
2288
2288
  f?.destroy(), f = null;
@@ -2318,13 +2318,13 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2318
2318
  }
2319
2319
  function ie() {
2320
2320
  if (o.disabled || o.readonly || !k.value) return;
2321
- const R = n.value ?? 0, E = L(R + o.step), T = parseFloat(E.toFixed(o.decimals));
2322
- n.value = T, i.value = P(T);
2321
+ const R = n.value ?? 0, E = L(R + o.step), D = parseFloat(E.toFixed(o.decimals));
2322
+ n.value = D, i.value = P(D);
2323
2323
  }
2324
2324
  function G() {
2325
2325
  if (o.disabled || o.readonly || !w.value) return;
2326
- const R = n.value ?? 0, E = L(R - o.step), T = parseFloat(E.toFixed(o.decimals));
2327
- n.value = T, i.value = P(T);
2326
+ const R = n.value ?? 0, E = L(R - o.step), D = parseFloat(E.toFixed(o.decimals));
2327
+ n.value = D, i.value = P(D);
2328
2328
  }
2329
2329
  return (R, E) => (h(), b("div", {
2330
2330
  class: K(B.value)
@@ -2760,7 +2760,7 @@ const cl = { class: "coar-code-header" }, ul = { class: "coar-code-header-left"
2760
2760
  function En(e) {
2761
2761
  const t = ee(!1), o = ee(!1), n = ee(""), a = ee(-1), r = ee("bottom"), l = `coar-select-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, i = m(() => e.id.value || l), s = m(() => `${i.value}-message`), c = m(() => `${i.value}-listbox`), f = m(() => {
2762
2762
  const P = n.value.toLowerCase().trim();
2763
- return P ? e.options.value.filter((D) => D.label.toLowerCase().includes(P)) : e.options.value;
2763
+ return P ? e.options.value.filter((T) => T.label.toLowerCase().includes(P)) : e.options.value;
2764
2764
  });
2765
2765
  re(f, () => {
2766
2766
  a.value = -1;
@@ -2772,39 +2772,39 @@ function En(e) {
2772
2772
  });
2773
2773
  function p() {
2774
2774
  const P = f.value;
2775
- let D = a.value + 1;
2776
- for (; D < P.length; ) {
2777
- if (!P[D].disabled) {
2778
- a.value = D, y();
2775
+ let T = a.value + 1;
2776
+ for (; T < P.length; ) {
2777
+ if (!P[T].disabled) {
2778
+ a.value = T, y();
2779
2779
  return;
2780
2780
  }
2781
- D++;
2781
+ T++;
2782
2782
  }
2783
2783
  }
2784
2784
  function d() {
2785
2785
  const P = f.value;
2786
- let D = a.value - 1;
2787
- for (; D >= 0; ) {
2788
- if (!P[D].disabled) {
2789
- a.value = D, y();
2786
+ let T = a.value - 1;
2787
+ for (; T >= 0; ) {
2788
+ if (!P[T].disabled) {
2789
+ a.value = T, y();
2790
2790
  return;
2791
2791
  }
2792
- D--;
2792
+ T--;
2793
2793
  }
2794
2794
  }
2795
2795
  function u() {
2796
2796
  const P = f.value;
2797
- for (let D = 0; D < P.length; D++)
2798
- if (!P[D].disabled) {
2799
- a.value = D, y();
2797
+ for (let T = 0; T < P.length; T++)
2798
+ if (!P[T].disabled) {
2799
+ a.value = T, y();
2800
2800
  return;
2801
2801
  }
2802
2802
  }
2803
2803
  function g() {
2804
2804
  const P = f.value;
2805
- for (let D = P.length - 1; D >= 0; D--)
2806
- if (!P[D].disabled) {
2807
- a.value = D, y();
2805
+ for (let T = P.length - 1; T >= 0; T--)
2806
+ if (!P[T].disabled) {
2807
+ a.value = T, y();
2808
2808
  return;
2809
2809
  }
2810
2810
  }
@@ -2816,7 +2816,7 @@ function En(e) {
2816
2816
  function M(P) {
2817
2817
  if (!(e.disabled.value || e.readonly.value) && !t.value) {
2818
2818
  if (P && e.dropdownPositionPreference.value === "auto") {
2819
- const D = P.getBoundingClientRect(), S = window.innerHeight - D.bottom, Y = D.top;
2819
+ const T = P.getBoundingClientRect(), S = window.innerHeight - T.bottom, Y = T.top;
2820
2820
  r.value = S < 260 && Y > S ? "top" : "bottom";
2821
2821
  } else e.dropdownPositionPreference.value !== "auto" && (r.value = e.dropdownPositionPreference.value);
2822
2822
  t.value = !0, n.value = "", a.value = -1;
@@ -2837,15 +2837,15 @@ function En(e) {
2837
2837
  function B() {
2838
2838
  o.value = !1;
2839
2839
  }
2840
- function F(P, D) {
2841
- !t.value || !D || D.contains(P.target) || z();
2840
+ function F(P, T) {
2841
+ !t.value || !T || T.contains(P.target) || z();
2842
2842
  }
2843
- function W(P, D, L) {
2843
+ function W(P, T, L) {
2844
2844
  if (!(e.disabled.value || e.readonly.value))
2845
2845
  switch (P.key) {
2846
2846
  case "Enter":
2847
2847
  case " ":
2848
- t.value ? a.value >= 0 && (P.preventDefault(), D()) : (P.preventDefault(), M(L), u());
2848
+ t.value ? a.value >= 0 && (P.preventDefault(), T()) : (P.preventDefault(), M(L), u());
2849
2849
  break;
2850
2850
  case "Escape":
2851
2851
  t.value && (P.preventDefault(), z());
@@ -3544,18 +3544,18 @@ const uc = () => {
3544
3544
  if (!Io(w)) {
3545
3545
  const k = c || jt, _ = f || jt, B = [], F = [];
3546
3546
  let W = !1, P = !1;
3547
- if ($e(w, ((D) => {
3548
- const { attributeName: L, target: S, type: Y, oldValue: X, addedNodes: de, removedNodes: V } = D, Q = Y === "attributes", ne = Y === "childList", oe = e === S, ie = Q && L, G = ie && Vn(S, L || ""), R = Wt(G) ? G : null, E = ie && X !== R, T = er(u, L) && E;
3547
+ if ($e(w, ((T) => {
3548
+ const { attributeName: L, target: S, type: Y, oldValue: X, addedNodes: de, removedNodes: V } = T, Q = Y === "attributes", ne = Y === "childList", oe = e === S, ie = Q && L, G = ie && Vn(S, L || ""), R = Wt(G) ? G : null, E = ie && X !== R, D = er(u, L) && E;
3549
3549
  if (t && (ne || !oe)) {
3550
- const N = Q && E, C = N && s && pn(S, s), H = (C ? !k(S, L, X, R) : !Q || N) && !_(D, !!C, e, n);
3550
+ const N = Q && E, C = N && s && pn(S, s), H = (C ? !k(S, L, X, R) : !Q || N) && !_(T, !!C, e, n);
3551
3551
  $e(de, ((A) => Be(B, A))), $e(V, ((A) => Be(B, A))), P = P || H;
3552
3552
  }
3553
- !t && oe && E && !k(S, L, X, R) && (Be(F, L), W = W || T);
3554
- })), p(((D) => Po(B).reduce(((L, S) => (Be(L, mr(D, S)), pn(S, D) ? Be(L, S) : L)), []))), t)
3553
+ !t && oe && E && !k(S, L, X, R) && (Be(F, L), W = W || D);
3554
+ })), p(((T) => Po(B).reduce(((L, S) => (Be(L, mr(T, S)), pn(S, T) ? Be(L, S) : L)), []))), t)
3555
3555
  return !z && P && o(!1), [!1];
3556
3556
  if (!Io(F) || W) {
3557
- const D = [Po(F), W];
3558
- return z || o.apply(0, D), D;
3557
+ const T = [Po(F), W];
3558
+ return z || o.apply(0, T), T;
3559
3559
  }
3560
3560
  }
3561
3561
  }, M = new $i(he(y, !1));
@@ -3650,7 +3650,7 @@ const Lr = (e, t, o) => {
3650
3650
  }, () => o && i(!0, o.takeRecords())];
3651
3651
  }, pc = (e, t, o, n) => {
3652
3652
  let a, r, l, i, s, c, f, v;
3653
- const p = `[${_t}]`, d = `[${gt}]`, u = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: y, L: M, gt: z, ht: w, V: k, bt: _, wt: B, yt: F, St: W } = e, P = (I) => dt(I, "direction") === "rtl", D = () => {
3653
+ const p = `[${_t}]`, d = `[${gt}]`, u = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: y, L: M, gt: z, ht: w, V: k, bt: _, wt: B, yt: F, St: W } = e, P = (I) => dt(I, "direction") === "rtl", T = () => {
3654
3654
  let I, H, A;
3655
3655
  const O = cr(n, {
3656
3656
  p: () => I,
@@ -3683,7 +3683,7 @@ const Lr = (e, t, o) => {
3683
3683
  w: ge.w + pe.w,
3684
3684
  h: ge.h + pe.h
3685
3685
  };
3686
- })), de = D(), V = (I) => {
3686
+ })), de = T(), V = (I) => {
3687
3687
  const H = P(g);
3688
3688
  ke(I, {
3689
3689
  Ct: v !== H
@@ -3715,7 +3715,7 @@ const Lr = (e, t, o) => {
3715
3715
  return V(O), H && !A && de(O, a), O;
3716
3716
  }, [G, R] = w ? fc(y, Q) : [], E = !k && Lr(y, ne, {
3717
3717
  ft: !0
3718
- }), [T, N] = Aa(y, !1, ie, {
3718
+ }), [D, N] = Aa(y, !1, ie, {
3719
3719
  ct: u,
3720
3720
  et: u
3721
3721
  }), C = k && At && new At(((I) => {
@@ -3727,7 +3727,7 @@ const Lr = (e, t, o) => {
3727
3727
  }));
3728
3728
  return [() => {
3729
3729
  C && C.observe(y);
3730
- const I = E && E(), H = G && G(), A = T(), O = S.G(((j) => {
3730
+ const I = E && E(), H = G && G(), A = D(), O = S.G(((j) => {
3731
3731
  const [, Z] = X();
3732
3732
  de({
3733
3733
  Et: j,
@@ -3772,7 +3772,7 @@ const Lr = (e, t, o) => {
3772
3772
  const a = "--os-viewport-percent", r = "--os-scroll-percent", l = "--os-scroll-direction", { K: i } = pt(), { scrollbars: s } = i(), { slot: c } = s, { dt: f, vt: v, L: p, Tt: d, gt: u, bt: g, V: y } = t, { scrollbars: M } = d ? {} : e, { slot: z } = M || {}, w = [], k = [], _ = [], B = Hr([f, v, p], (() => y && g ? f : v), c, z), F = (G) => {
3773
3773
  if (eo) {
3774
3774
  let R = null, E = [];
3775
- const T = new eo({
3775
+ const D = new eo({
3776
3776
  source: u,
3777
3777
  axis: G
3778
3778
  }), N = () => {
@@ -3785,7 +3785,7 @@ const Lr = (e, t, o) => {
3785
3785
  clear: ["left"],
3786
3786
  transform: Z
3787
3787
  }, {
3788
- timeline: T
3788
+ timeline: D
3789
3789
  })), N;
3790
3790
  }
3791
3791
  };
@@ -3794,64 +3794,64 @@ const Lr = (e, t, o) => {
3794
3794
  x: F("x"),
3795
3795
  y: F("y")
3796
3796
  }, P = () => {
3797
- const { Rt: G, Vt: R } = o, E = (T, N) => fr(0, 1, T / (T + N) || 0);
3797
+ const { Rt: G, Vt: R } = o, E = (D, N) => fr(0, 1, D / (D + N) || 0);
3798
3798
  return {
3799
3799
  x: E(R.x, G.x),
3800
3800
  y: E(R.y, G.y)
3801
3801
  };
3802
- }, D = (G, R, E) => {
3803
- const T = E ? Wn : hr;
3802
+ }, T = (G, R, E) => {
3803
+ const D = E ? Wn : hr;
3804
3804
  $e(G, ((N) => {
3805
- T(N.Lt, R);
3805
+ D(N.Lt, R);
3806
3806
  }));
3807
3807
  }, L = (G, R) => {
3808
3808
  $e(G, ((E) => {
3809
- const [T, N] = R(E);
3810
- no(T, N);
3809
+ const [D, N] = R(E);
3810
+ no(D, N);
3811
3811
  }));
3812
3812
  }, S = (G, R, E) => {
3813
- const T = Vo(E), N = T ? E : !0, C = T ? !E : !0;
3814
- N && D(k, G, R), C && D(_, G, R);
3813
+ const D = Vo(E), N = D ? E : !0, C = D ? !E : !0;
3814
+ N && T(k, G, R), C && T(_, G, R);
3815
3815
  }, Y = () => {
3816
- const G = P(), R = (E) => (T) => [T.Lt, {
3816
+ const G = P(), R = (E) => (D) => [D.Lt, {
3817
3817
  [a]: mn(E) + ""
3818
3818
  }];
3819
3819
  L(k, R(G.x)), L(_, R(G.y));
3820
3820
  }, X = () => {
3821
3821
  if (!eo) {
3822
- const { Dt: G } = o, R = $a(G, Qe(u)), E = (T) => (N) => [N.Lt, {
3823
- [r]: mn(T) + ""
3822
+ const { Dt: G } = o, R = $a(G, Qe(u)), E = (D) => (N) => [N.Lt, {
3823
+ [r]: mn(D) + ""
3824
3824
  }];
3825
3825
  L(k, E(R.x)), L(_, E(R.y));
3826
3826
  }
3827
3827
  }, de = () => {
3828
- const { Dt: G } = o, R = nn(G), E = (T) => (N) => [N.Lt, {
3829
- [l]: T ? "0" : "1"
3828
+ const { Dt: G } = o, R = nn(G), E = (D) => (N) => [N.Lt, {
3829
+ [l]: D ? "0" : "1"
3830
3830
  }];
3831
3831
  L(k, E(R.x)), L(_, E(R.y)), eo && (k.forEach(W.x.kt), _.forEach(W.y.kt));
3832
3832
  }, V = () => {
3833
3833
  if (y && !g) {
3834
- const { Rt: G, Dt: R } = o, E = nn(R), T = $a(R, Qe(u)), N = (C) => {
3834
+ const { Rt: G, Dt: R } = o, E = nn(R), D = $a(R, Qe(u)), N = (C) => {
3835
3835
  const { Lt: I } = C, H = oo(I) === p && I, A = (O, j, Z) => {
3836
3836
  const ae = j * O;
3837
3837
  return kr(Z ? ae : -ae);
3838
3838
  };
3839
3839
  return [H, H && {
3840
3840
  transform: tn({
3841
- x: A(T.x, G.x, E.x),
3842
- y: A(T.y, G.y, E.y)
3841
+ x: A(D.x, G.x, E.x),
3842
+ y: A(D.y, G.y, E.y)
3843
3843
  })
3844
3844
  }];
3845
3845
  };
3846
3846
  L(k, N), L(_, N);
3847
3847
  }
3848
3848
  }, Q = (G) => {
3849
- const R = G ? "x" : "y", T = Rt(`${tt} ${G ? Zi : Gi}`), N = Rt(Er), C = Rt(Kn), I = {
3850
- Lt: T,
3849
+ const R = G ? "x" : "y", D = Rt(`${tt} ${G ? Zi : Gi}`), N = Rt(Er), C = Rt(Kn), I = {
3850
+ Lt: D,
3851
3851
  Ut: N,
3852
3852
  Mt: C
3853
3853
  }, H = W[R];
3854
- return Be(G ? k : _, I), Be(w, [Ge(T, N), Ge(N, C), he(Yt, T), H && H.kt(I), n(I, S, G)]), I;
3854
+ return Be(G ? k : _, I), Be(w, [Ge(D, N), Ge(N, C), he(Yt, D), H && H.kt(I), n(I, S, G)]), I;
3855
3855
  }, ne = he(Q, !0), oe = he(Q, !1), ie = () => (Ge(B, k[0].Lt), Ge(B, _[0].Lt), he(et, w));
3856
3856
  return ne(), oe(), [{
3857
3857
  Pt: Y,
@@ -3878,7 +3878,7 @@ const Lr = (e, t, o) => {
3878
3878
  top: F.y
3879
3879
  });
3880
3880
  }, _ = () => {
3881
- const F = "pointerup pointercancel lostpointercapture", W = `client${l ? "X" : "Y"}`, P = l ? Yo : Wo, D = l ? "left" : "top", L = l ? "w" : "h", S = l ? "x" : "y", Y = (de, V) => (Q) => {
3881
+ const F = "pointerup pointercancel lostpointercapture", W = `client${l ? "X" : "Y"}`, P = l ? Yo : Wo, T = l ? "left" : "top", L = l ? "w" : "h", S = l ? "x" : "y", Y = (de, V) => (Q) => {
3882
3882
  const { Rt: ne } = o, oe = Ht(u)[L] - Ht(g)[L], G = V * Q / oe * ne[S];
3883
3883
  ut(f, {
3884
3884
  [S]: de + G
@@ -3888,7 +3888,7 @@ const Lr = (e, t, o) => {
3888
3888
  const V = Ft(de.target, `.${Kn}`) === g, Q = V ? g : u, ne = e.scrollbars, oe = ne[V ? "dragScroll" : "clickScroll"], { button: ie, isPrimary: G, pointerType: R } = de, { pointers: E } = ne;
3889
3889
  if (ie === 0 && G && oe && (E || []).includes(R)) {
3890
3890
  et(X), w();
3891
- const N = !V && (de.shiftKey || oe === "instant"), C = he(on, g), I = he(on, u), H = (xe, Ee) => (xe || C())[D] - (Ee || I())[D], A = fn(on(f)[P]) / Ht(f)[L] || 1, O = Y(Qe(f)[S], 1 / A), j = de[W], Z = C(), ae = I(), U = Z[P], ge = H(Z, ae) + U / 2, pe = j - ae[D], Me = V ? 0 : pe - ge, Oe = (xe) => {
3891
+ const N = !V && (de.shiftKey || oe === "instant"), C = he(on, g), I = he(on, u), H = (xe, Ee) => (xe || C())[T] - (Ee || I())[T], A = fn(on(f)[P]) / Ht(f)[L] || 1, O = Y(Qe(f)[S], 1 / A), j = de[W], Z = C(), ae = I(), U = Z[P], ge = H(Z, ae) + U / 2, pe = j - ae[T], Me = V ? 0 : pe - ge, Oe = (xe) => {
3892
3892
  et(Ce), Q.releasePointerCapture(xe.pointerId);
3893
3893
  }, De = V || N, Ie = p(), Ce = [Te(v, F, Oe), Te(v, "selectstart", ((xe) => bn(xe)), {
3894
3894
  I: !1
@@ -3924,8 +3924,8 @@ const Lr = (e, t, o) => {
3924
3924
  const F = hn();
3925
3925
  (wa(F, gt) || wa(F, _t) || F === document.body) && An(he(yn, s), 25);
3926
3926
  })), Te(d, "wheel", ((F) => {
3927
- const { deltaX: W, deltaY: P, deltaMode: D } = F;
3928
- B && D === 0 && oo(d) === i && k({
3927
+ const { deltaX: W, deltaY: P, deltaMode: T } = F;
3928
+ B && T === 0 && oo(d) === i && k({
3929
3929
  x: W,
3930
3930
  y: P
3931
3931
  }), B = !1, r(Pa, !0), y((() => {
@@ -3953,12 +3953,12 @@ const Lr = (e, t, o) => {
3953
3953
  }), _(), M, w]);
3954
3954
  }, bc = (e, t, o, n, a, r) => {
3955
3955
  let l, i, s, c, f, v = jt, p = 0;
3956
- const d = ["mouse", "pen"], u = (E) => d.includes(E.pointerType), [g, y] = Pt(), [M, z] = Pt(100), [w, k] = Pt(100), [_, B] = Pt((() => p)), [F, W] = mc(e, a, n, gc(t, a, n, ((E) => u(E) && ne()))), { vt: P, Kt: D, bt: L } = a, { Ft: S, Pt: Y, Nt: X, qt: de, Bt: V } = F, Q = (E, T) => {
3956
+ const d = ["mouse", "pen"], u = (E) => d.includes(E.pointerType), [g, y] = Pt(), [M, z] = Pt(100), [w, k] = Pt(100), [_, B] = Pt((() => p)), [F, W] = mc(e, a, n, gc(t, a, n, ((E) => u(E) && ne()))), { vt: P, Kt: T, bt: L } = a, { Ft: S, Pt: Y, Nt: X, qt: de, Bt: V } = F, Q = (E, D) => {
3957
3957
  if (B(), E)
3958
3958
  S(Ia);
3959
3959
  else {
3960
3960
  const N = he(S, Ia, !0);
3961
- p > 0 && !T ? _(N) : N();
3961
+ p > 0 && !D ? _(N) : N();
3962
3962
  }
3963
3963
  }, ne = () => {
3964
3964
  (s ? !l : !c) && (Q(!0), M((() => {
@@ -3974,18 +3974,18 @@ const Lr = (e, t, o) => {
3974
3974
  u(E) && (l = !1, s && Q(!1));
3975
3975
  })), Te(P, "pointermove", ((E) => {
3976
3976
  u(E) && i && ne();
3977
- })), Te(D, "scroll", ((E) => {
3977
+ })), Te(T, "scroll", ((E) => {
3978
3978
  g((() => {
3979
3979
  X(), ne();
3980
3980
  })), r(E), V();
3981
3981
  }))], R = Ut(Zn);
3982
- return [() => he(et, Be(G, W())), ({ zt: E, At: T, Qt: N, Zt: C }) => {
3983
- const { tn: I, nn: H, sn: A, en: O } = C || {}, { Ct: j, ft: Z } = N || {}, { B: ae } = o, { k: U, U: ge } = pt(), { cn: pe, j: Me } = n, [Oe, De] = E("showNativeOverlaidScrollbars"), [Ie, Ce] = E("scrollbars.theme"), [xe, Ee] = E("scrollbars.visibility"), [Ne, vt] = E("scrollbars.autoHide"), [ht, Dt] = E("scrollbars.autoHideSuspend"), [fe] = E("scrollbars.autoHideDelay"), [be, ye] = E("scrollbars.dragScroll"), [se, Le] = E("scrollbars.clickScroll"), [je, Ue] = E("overflow"), ot = Z && !T, lo = Me.x || Me.y, Xo = I || H || O || j || T, st = A || Ee || Ue, Jo = Oe && U.x && U.y, Gt = !ge && !R, Qo = Jo || Gt, zt = (Xt, Jt, io) => {
3982
+ return [() => he(et, Be(G, W())), ({ zt: E, At: D, Qt: N, Zt: C }) => {
3983
+ const { tn: I, nn: H, sn: A, en: O } = C || {}, { Ct: j, ft: Z } = N || {}, { B: ae } = o, { k: U, U: ge } = pt(), { cn: pe, j: Me } = n, [Oe, De] = E("showNativeOverlaidScrollbars"), [Ie, Ce] = E("scrollbars.theme"), [xe, Ee] = E("scrollbars.visibility"), [Ne, vt] = E("scrollbars.autoHide"), [ht, Dt] = E("scrollbars.autoHideSuspend"), [fe] = E("scrollbars.autoHideDelay"), [be, ye] = E("scrollbars.dragScroll"), [se, Le] = E("scrollbars.clickScroll"), [je, Ue] = E("overflow"), ot = Z && !D, lo = Me.x || Me.y, Xo = I || H || O || j || D, st = A || Ee || Ue, Jo = Oe && U.x && U.y, Gt = !ge && !R, Qo = Jo || Gt, zt = (Xt, Jt, io) => {
3984
3984
  const co = Xt.includes(Vt) && (xe === bt || xe === "auto" && Jt === Vt);
3985
3985
  return S(Xi, co, io), co;
3986
3986
  };
3987
3987
  if (p = fe, ot && (ht && lo ? (oe(!1), v(), w((() => {
3988
- v = Te(D, "scroll", he(oe, !0), {
3988
+ v = Te(T, "scroll", he(oe, !0), {
3989
3989
  T: !0
3990
3990
  });
3991
3991
  }))) : oe(!0)), (De || Gt) && S(qi, Qo), Ce && (S(f), S(Ie, !0), f = Ie), Dt && !ht && oe(!0), vt && (i = Ne === "move", s = Ne === "leave", c = Ne === "never", Q(c, !0)), ye && S(ec, be), Le && S(Qi, !!se), st) {
@@ -3998,7 +3998,7 @@ const Lr = (e, t, o) => {
3998
3998
  const t = pt(), { K: o, U: n } = t, { elements: a } = o(), { padding: r, viewport: l, content: i } = a, s = Do(e), c = s ? {} : e, { elements: f } = c, { padding: v, viewport: p, content: d } = f || {}, u = s ? e : c.target, g = gr(u), y = u.ownerDocument, M = y.documentElement, z = () => y.defaultView || Xe, w = he(vc, [u]), k = he(Hr, [u]), _ = he(Rt, ""), B = he(w, _, l), F = he(k, _, i), W = (U) => {
3999
3999
  const ge = Ht(U), pe = Bo(U), Me = dt(U, Rn), Oe = dt(U, Hn);
4000
4000
  return pe.w - ge.w > 0 && !Ot(Me) || pe.h - ge.h > 0 && !Ot(Oe);
4001
- }, P = B(p), D = P === u, L = D && g, S = !D && F(d), Y = !D && P === S, X = L ? M : P, de = L ? X : u, V = !D && k(_, r, v), Q = !Y && S, ne = [Q, X, V, de].map(((U) => Do(U) && !oo(U) && U)), oe = (U) => U && er(ne, U), ie = !oe(X) && W(X) ? X : u, G = L ? M : X, E = {
4001
+ }, P = B(p), T = P === u, L = T && g, S = !T && F(d), Y = !T && P === S, X = L ? M : P, de = L ? X : u, V = !T && k(_, r, v), Q = !Y && S, ne = [Q, X, V, de].map(((U) => Do(U) && !oo(U) && U)), oe = (U) => U && er(ne, U), ie = !oe(X) && W(X) ? X : u, G = L ? M : X, E = {
4002
4002
  dt: u,
4003
4003
  vt: de,
4004
4004
  L: X,
@@ -4010,16 +4010,16 @@ const Lr = (e, t, o) => {
4010
4010
  Gt: y,
4011
4011
  bt: g,
4012
4012
  Tt: s,
4013
- V: D,
4013
+ V: T,
4014
4014
  an: z,
4015
4015
  wt: (U) => Yn(X, gt, U),
4016
4016
  yt: (U, ge) => Eo(X, gt, U, ge),
4017
4017
  St: () => Eo(G, gt, Vi, !0)
4018
- }, { dt: T, vt: N, rn: C, L: I, ht: H } = E, A = [() => {
4019
- ct(N, [_t, an]), ct(T, an), g && ct(M, [an, _t]);
4018
+ }, { dt: D, vt: N, rn: C, L: I, ht: H } = E, A = [() => {
4019
+ ct(N, [_t, an]), ct(D, an), g && ct(M, [an, _t]);
4020
4020
  }];
4021
- let O = vn([H, I, C, N, T].find(((U) => U && !oe(U))));
4022
- const j = L ? T : H || I, Z = he(et, A);
4021
+ let O = vn([H, I, C, N, D].find(((U) => U && !oe(U))));
4022
+ const j = L ? D : H || I, Z = he(et, A);
4023
4023
  return [E, () => {
4024
4024
  const U = z(), ge = hn(), pe = (Ce) => {
4025
4025
  Ge(oo(Ce), vn(Ce)), Yt(Ce);
@@ -4027,10 +4027,10 @@ const Lr = (e, t, o) => {
4027
4027
  A: !0,
4028
4028
  I: !1
4029
4029
  }), Oe = "tabindex", De = Vn(I, Oe), Ie = Me(ge);
4030
- return mt(N, _t, D ? "" : Li), mt(C, kn, ""), mt(I, gt, ""), mt(H, Sa, ""), D || (mt(I, Oe, De || "-1"), g && mt(M, _a, "")), Ge(j, O), Ge(N, C), Ge(C || N, !D && I), Ge(I, H), Be(A, [Ie, () => {
4031
- const Ce = hn(), xe = oe(I), Ee = xe && Ce === I ? T : Ce, Ne = Me(Ee);
4030
+ return mt(N, _t, T ? "" : Li), mt(C, kn, ""), mt(I, gt, ""), mt(H, Sa, ""), T || (mt(I, Oe, De || "-1"), g && mt(M, _a, "")), Ge(j, O), Ge(N, C), Ge(C || N, !T && I), Ge(I, H), Be(A, [Ie, () => {
4031
+ const Ce = hn(), xe = oe(I), Ee = xe && Ce === I ? D : Ce, Ne = Me(Ee);
4032
4032
  ct(C, kn), ct(H, Sa), ct(I, gt), g && ct(M, _a), De ? mt(I, Oe, De) : ct(I, Oe), oe(H) && pe(H), xe && pe(I), oe(C) && pe(C), yn(Ee), Ne();
4033
- }]), n && !D && (jn(I, gt, Pr), Be(A, he(ct, I, gt))), yn(!D && g && ge === T && U.top === U ? I : ge), Ie(), O = 0, Z;
4033
+ }]), n && !T && (jn(I, gt, Pr), Be(A, he(ct, I, gt))), yn(!T && g && ge === D && U.top === U ? I : ge), Ie(), O = 0, Z;
4034
4034
  }, Z];
4035
4035
  }, wc = ({ ht: e }) => ({ Qt: t, un: o, At: n }) => {
4036
4036
  const { $t: a } = t || {}, { Ot: r } = o;
@@ -4056,16 +4056,16 @@ const Lr = (e, t, o) => {
4056
4056
  right: B ? M ? -v.r : "auto" : 0,
4057
4057
  left: B ? M ? "auto" : -v.l : 0,
4058
4058
  [Yo]: B && `calc(100% + ${F}px)`
4059
- }, D = {
4059
+ }, T = {
4060
4060
  [tr]: B ? v.t : 0,
4061
4061
  [or]: B ? v.r : 0,
4062
4062
  [ar]: B ? v.b : 0,
4063
4063
  [nr]: B ? v.l : 0
4064
4064
  };
4065
- no(t || o, P), no(o, D), ke(a, {
4065
+ no(t || o, P), no(o, T), ke(a, {
4066
4066
  rn: v,
4067
4067
  fn: !B,
4068
- F: t ? D : ke({}, P, D)
4068
+ F: t ? T : ke({}, P, T)
4069
4069
  });
4070
4070
  }
4071
4071
  return {
@@ -4075,9 +4075,9 @@ const Lr = (e, t, o) => {
4075
4075
  }, xc = (e, t) => {
4076
4076
  const o = pt(), { vt: n, rn: a, L: r, V: l, Kt: i, gt: s, bt: c, yt: f, an: v } = e, { U: p } = o, d = c && l, u = he(So, 0), g = {
4077
4077
  display: () => !1,
4078
- direction: (T) => T !== "ltr",
4079
- flexDirection: (T) => T.endsWith("-reverse"),
4080
- writingMode: (T) => T !== "horizontal-tb"
4078
+ direction: (D) => D !== "ltr",
4079
+ flexDirection: (D) => D.endsWith("-reverse"),
4080
+ writingMode: (D) => D !== "horizontal-tb"
4081
4081
  }, y = Ze(g), M = {
4082
4082
  i: ir,
4083
4083
  o: {
@@ -4087,11 +4087,11 @@ const Lr = (e, t, o) => {
4087
4087
  }, z = {
4088
4088
  i: ko,
4089
4089
  o: {}
4090
- }, w = (T) => {
4091
- f(Ir, !d && T);
4092
- }, k = () => dt(r, y), _ = (T, N) => {
4093
- const C = !Ze(T).length, I = !N && y.some(((De) => {
4094
- const Ie = T[De];
4090
+ }, w = (D) => {
4091
+ f(Ir, !d && D);
4092
+ }, k = () => dt(r, y), _ = (D, N) => {
4093
+ const C = !Ze(D).length, I = !N && y.some(((De) => {
4094
+ const Ie = D[De];
4095
4095
  return Wt(Ie) && g[De](Ie);
4096
4096
  }));
4097
4097
  if (C && !I || !zi(r))
@@ -4141,37 +4141,37 @@ const Lr = (e, t, o) => {
4141
4141
  D: Z,
4142
4142
  M: Oe
4143
4143
  };
4144
- }, B = (T, N) => {
4144
+ }, B = (D, N) => {
4145
4145
  const C = Xe.devicePixelRatio % 1 !== 0 ? 1 : 0, I = {
4146
- w: u(T.w - N.w),
4147
- h: u(T.h - N.h)
4146
+ w: u(D.w - N.w),
4147
+ h: u(D.h - N.h)
4148
4148
  };
4149
4149
  return {
4150
4150
  w: I.w > C ? I.w : 0,
4151
4151
  h: I.h > C ? I.h : 0
4152
4152
  };
4153
- }, F = (T, N) => {
4153
+ }, F = (D, N) => {
4154
4154
  const C = (I, H, A, O) => {
4155
4155
  const j = I === bt ? lt : nc(I), Z = Ot(I), ae = Ot(A);
4156
4156
  return !H && !O ? lt : Z && ae ? bt : Z ? H && O ? j : H ? bt : lt : H ? j : ae && O ? bt : lt;
4157
4157
  };
4158
4158
  return {
4159
- x: C(N.x, T.x, N.y, T.y),
4160
- y: C(N.y, T.y, N.x, T.x)
4159
+ x: C(N.x, D.x, N.y, D.y),
4160
+ y: C(N.y, D.y, N.x, D.x)
4161
4161
  };
4162
- }, W = (T) => {
4162
+ }, W = (D) => {
4163
4163
  const N = (I) => [bt, lt, Vt].map(((H) => E(Cn(H), I))), C = N(!0).concat(N()).join(" ");
4164
- f(C), f(Ze(T).map(((I) => E(T[I], I === "x"))).join(" "), !0);
4165
- }, [P, D] = Je(M, he(Un, r)), [L, S] = Je(M, he(Bo, r)), [Y, X] = Je(M), [de] = Je(z), [V, Q] = Je(M), [ne] = Je(z), [oe] = Je({
4166
- i: (T, N) => Uo(T, N, Po(Nt(Ze(T), Ze(N)))),
4164
+ f(C), f(Ze(D).map(((I) => E(D[I], I === "x"))).join(" "), !0);
4165
+ }, [P, T] = Je(M, he(Un, r)), [L, S] = Je(M, he(Bo, r)), [Y, X] = Je(M), [de] = Je(z), [V, Q] = Je(M), [ne] = Je(z), [oe] = Je({
4166
+ i: (D, N) => Uo(D, N, Po(Nt(Ze(D), Ze(N)))),
4167
4167
  o: {}
4168
4168
  }), [ie, G] = Je({
4169
- i: (T, N) => ko(T.D, N.D) && ko(T.M, N.M),
4169
+ i: (D, N) => ko(D.D, N.D) && ko(D.M, N.M),
4170
4170
  o: _r()
4171
- }), R = Ut(Zn), E = (T, N) => `${N ? Ri : Hi}${Mi(T)}`;
4172
- return ({ zt: T, Qt: N, un: C, At: I }, { _n: H }) => {
4173
- const { _t: A, Ht: O, xt: j, Ct: Z, ft: ae, Et: U } = N || {}, ge = R && R.R(e, t, C, o, T), { X: pe, Y: Me, W: Oe } = ge || {}, [De, Ie] = oc(T, o), [Ce, xe] = T("overflow"), Ee = Ot(Ce.x), Ne = Ot(Ce.y), vt = A || H || j || Z || U || Ie;
4174
- let ht = D(I), Dt = S(I), fe = X(I), be = Q(I);
4171
+ }), R = Ut(Zn), E = (D, N) => `${N ? Ri : Hi}${Mi(D)}`;
4172
+ return ({ zt: D, Qt: N, un: C, At: I }, { _n: H }) => {
4173
+ const { _t: A, Ht: O, xt: j, Ct: Z, ft: ae, Et: U } = N || {}, ge = R && R.R(e, t, C, o, D), { X: pe, Y: Me, W: Oe } = ge || {}, [De, Ie] = oc(D, o), [Ce, xe] = D("overflow"), Ee = Ot(Ce.x), Ne = Ot(Ce.y), vt = A || H || j || Z || U || Ie;
4174
+ let ht = T(I), Dt = S(I), fe = X(I), be = Q(I);
4175
4175
  if (Ie && p && f(Pr, !De), vt) {
4176
4176
  Yn(n, _t, Co) && w(!0);
4177
4177
  const na = Me && Me(), [uo] = ht = P(I), [fo] = Dt = L(I), po = xr(r), vo = d && Bi(v()), ds = {
@@ -4186,7 +4186,7 @@ const Lr = (e, t, o) => {
4186
4186
  const [ye, se] = be, [Le, je] = fe, [Ue, ot] = Dt, [lo, Xo] = ht, [st, Jo] = de({
4187
4187
  x: Le.w > 0,
4188
4188
  y: Le.h > 0
4189
- }), Gt = Ee && Ne && (st.x || st.y) || Ee && st.x && !st.y || Ne && st.y && !st.x, Qo = H || Z || U || Xo || ot || se || je || xe || Ie || vt || O && d, [zt] = T("update.flowDirectionStyles"), [Xt, Jt] = oe(zt ? zt(r) : k(), I), io = Z || ae || Jt || Jo || I, [co, is] = io ? ie(_(Xt, !!zt), I) : G();
4189
+ }), Gt = Ee && Ne && (st.x || st.y) || Ee && st.x && !st.y || Ne && st.y && !st.x, Qo = H || Z || U || Xo || ot || se || je || xe || Ie || vt || O && d, [zt] = D("update.flowDirectionStyles"), [Xt, Jt] = oe(zt ? zt(r) : k(), I), io = Z || ae || Jt || Jo || I, [co, is] = io ? ie(_(Xt, !!zt), I) : G();
4190
4190
  let Qt = F(st, Ce);
4191
4191
  w(!1), Qo && (W(Qt), Qt = ac(r, st), Oe && pe && (pe(Qt, Ue, lo), no(r, Oe(Qt))));
4192
4192
  const [cs, us] = ne(Qt);
@@ -4258,9 +4258,9 @@ const Lr = (e, t, o) => {
4258
4258
  })), [g, y, , M] = bc(e, t, u, c, f, a), z = (k) => Ze(k).some(((_) => !!k[_])), w = (k, _) => {
4259
4259
  if (o())
4260
4260
  return !1;
4261
- const { dn: B, At: F, It: W, pn: P } = k, D = B || {}, L = !!F || !r, S = {
4262
- zt: za(t, D, L),
4263
- dn: D,
4261
+ const { dn: B, At: F, It: W, pn: P } = k, T = B || {}, L = !!F || !r, S = {
4262
+ zt: za(t, T, L),
4263
+ dn: T,
4264
4264
  At: L
4265
4265
  };
4266
4266
  if (P)
@@ -4275,7 +4275,7 @@ const Lr = (e, t, o) => {
4275
4275
  Qt: Y,
4276
4276
  Zt: X
4277
4277
  }));
4278
- const de = z(Y), V = z(X), Q = de || V || !Nn(D) || L;
4278
+ const de = z(Y), V = z(X), Q = de || V || !Nn(T) || L;
4279
4279
  return r = !0, Q && n(k, {
4280
4280
  Qt: Y,
4281
4281
  Zt: X
@@ -4299,12 +4299,12 @@ const Lr = (e, t, o) => {
4299
4299
  const { tt: n } = pt(), a = Do(e), r = a ? e : e.target, l = Nr(r);
4300
4300
  if (t && !l) {
4301
4301
  let i = !1;
4302
- const s = [], c = {}, f = (D) => {
4303
- const L = dr(D), S = Ut(Oi);
4302
+ const s = [], c = {}, f = (T) => {
4303
+ const L = dr(T), S = Ut(Oi);
4304
4304
  return S ? S(L, !0) : L;
4305
- }, v = ke({}, n(), f(t)), [p, d, u] = wn(), [g, y, M] = wn(o), z = (D, L) => {
4306
- M(D, L), u(D, L);
4307
- }, [w, k, _, B, F] = $c(e, v, (() => i), (({ dn: D, At: L }, { Qt: S, Zt: Y }) => {
4305
+ }, v = ke({}, n(), f(t)), [p, d, u] = wn(), [g, y, M] = wn(o), z = (T, L) => {
4306
+ M(T, L), u(T, L);
4307
+ }, [w, k, _, B, F] = $c(e, v, (() => i), (({ dn: T, At: L }, { Qt: S, Zt: Y }) => {
4308
4308
  const { _t: X, Ct: de, $t: V, xt: Q, Ht: ne, ft: oe } = S, { tn: ie, nn: G, sn: R, en: E } = Y;
4309
4309
  z("updated", [P, {
4310
4310
  updateHints: {
@@ -4319,15 +4319,15 @@ const Lr = (e, t, o) => {
4319
4319
  hostMutation: !!ne,
4320
4320
  appear: !!oe
4321
4321
  },
4322
- changedOptions: D || {},
4322
+ changedOptions: T || {},
4323
4323
  force: !!L
4324
4324
  }]);
4325
- }), ((D) => z("scroll", [P, D]))), W = (D) => {
4326
- _c(r), et(s), i = !0, z("destroyed", [P, D]), d(), y();
4325
+ }), ((T) => z("scroll", [P, T]))), W = (T) => {
4326
+ _c(r), et(s), i = !0, z("destroyed", [P, T]), d(), y();
4327
4327
  }, P = {
4328
- options(D, L) {
4329
- if (D) {
4330
- const S = L ? n() : {}, Y = Fr(v, ke(S, f(D)));
4328
+ options(T, L) {
4329
+ if (T) {
4330
+ const S = L ? n() : {}, Y = Fr(v, ke(S, f(T)));
4331
4331
  Nn(Y) || (ke(v, Y), k({
4332
4332
  dn: Y
4333
4333
  }));
@@ -4335,11 +4335,11 @@ const Lr = (e, t, o) => {
4335
4335
  return ke({}, v);
4336
4336
  },
4337
4337
  on: g,
4338
- off: (D, L) => {
4339
- D && L && y(D, L);
4338
+ off: (T, L) => {
4339
+ T && L && y(T, L);
4340
4340
  },
4341
4341
  state() {
4342
- const { vn: D, gn: L } = _(), { B: S } = D, { Vt: Y, Rt: X, cn: de, j: V, rn: Q, fn: ne, Dt: oe } = L;
4342
+ const { vn: T, gn: L } = _(), { B: S } = T, { Vt: Y, Rt: X, cn: de, j: V, rn: Q, fn: ne, Dt: oe } = L;
4343
4343
  return ke({}, {
4344
4344
  overflowEdge: Y,
4345
4345
  overflowAmount: X,
@@ -4356,16 +4356,16 @@ const Lr = (e, t, o) => {
4356
4356
  });
4357
4357
  },
4358
4358
  elements() {
4359
- const { dt: D, vt: L, rn: S, L: Y, ht: X, gt: de, Kt: V } = B.hn, { jt: Q, Jt: ne } = B.bn, oe = (G) => {
4360
- const { Mt: R, Ut: E, Lt: T } = G;
4359
+ const { dt: T, vt: L, rn: S, L: Y, ht: X, gt: de, Kt: V } = B.hn, { jt: Q, Jt: ne } = B.bn, oe = (G) => {
4360
+ const { Mt: R, Ut: E, Lt: D } = G;
4361
4361
  return {
4362
- scrollbar: T,
4362
+ scrollbar: D,
4363
4363
  track: E,
4364
4364
  handle: R
4365
4365
  };
4366
4366
  }, ie = (G) => {
4367
- const { Xt: R, Yt: E } = G, T = oe(R[0]);
4368
- return ke({}, T, {
4367
+ const { Xt: R, Yt: E } = G, D = oe(R[0]);
4368
+ return ke({}, D, {
4369
4369
  clone: () => {
4370
4370
  const N = oe(E());
4371
4371
  return k({
@@ -4375,7 +4375,7 @@ const Lr = (e, t, o) => {
4375
4375
  });
4376
4376
  };
4377
4377
  return ke({}, {
4378
- target: D,
4378
+ target: T,
4379
4379
  host: L,
4380
4380
  padding: S || Y,
4381
4381
  viewport: Y,
@@ -4386,12 +4386,12 @@ const Lr = (e, t, o) => {
4386
4386
  scrollbarVertical: ie(ne)
4387
4387
  });
4388
4388
  },
4389
- update: (D) => k({
4390
- At: D,
4389
+ update: (T) => k({
4390
+ At: T,
4391
4391
  It: !0
4392
4392
  }),
4393
4393
  destroy: he(W, !1),
4394
- plugin: (D) => c[Ze(D)[0]]
4394
+ plugin: (T) => c[Ze(T)[0]]
4395
4395
  };
4396
4396
  return Be(s, [F]), Mc(r, P), Dr(Sr, kt, [P, p, c]), hc(B.hn.bt, !a && e.cancel) ? (W(!0), P) : (Be(s, w()), z("initialized", [P]), P.update(), P);
4397
4397
  }
@@ -4544,11 +4544,11 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4544
4544
  readonly: We(t, "readonly"),
4545
4545
  id: We(t, "id"),
4546
4546
  dropdownPositionPreference: We(t, "dropdownPosition")
4547
- }), W = m(() => t.id || a?.inputId.value || u.value), P = m(() => a?.messageId.value || void 0), { left: D, top: L, minWidth: S } = Bn({
4547
+ }), W = m(() => t.id || a?.inputId.value || u.value), P = m(() => a?.messageId.value || void 0), { left: T, top: L, minWidth: S } = Bn({
4548
4548
  isOpen: f,
4549
4549
  triggerEl: l,
4550
4550
  dropdownEl: s
4551
- }), Y = m(() => t.compareWith ?? ((T, N) => T === N)), X = m(() => o.value === null || o.value === void 0 ? null : t.options.find((T) => Y.value(T.value, o.value)) ?? null), de = m(
4551
+ }), Y = m(() => t.compareWith ?? ((D, N) => D === N)), X = m(() => o.value === null || o.value === void 0 ? null : t.options.find((D) => Y.value(D.value, o.value)) ?? null), de = m(
4552
4552
  () => t.clearable && o.value !== null && !t.disabled && !t.readonly
4553
4553
  ), V = m(() => [
4554
4554
  "coar-select-host",
@@ -4561,31 +4561,31 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4561
4561
  "coar-select--open": f.value
4562
4562
  }
4563
4563
  ]);
4564
- function Q(T) {
4565
- T.disabled || t.disabled || t.readonly || (o.value = T.value, z());
4564
+ function Q(D) {
4565
+ D.disabled || t.disabled || t.readonly || (o.value = D.value, z());
4566
4566
  }
4567
4567
  function ne() {
4568
- const T = y.value, N = d.value;
4569
- N >= 0 && N < T.length && !T[N].disabled && Q(T[N]);
4568
+ const D = y.value, N = d.value;
4569
+ N >= 0 && N < D.length && !D[N].disabled && Q(D[N]);
4570
4570
  }
4571
- function oe(T) {
4572
- T.stopPropagation(), o.value = null;
4571
+ function oe(D) {
4572
+ D.stopPropagation(), o.value = null;
4573
4573
  }
4574
- function ie(T) {
4575
- return o.value === null || o.value === void 0 ? !1 : Y.value(o.value, T.value);
4574
+ function ie(D) {
4575
+ return o.value === null || o.value === void 0 ? !1 : Y.value(o.value, D.value);
4576
4576
  }
4577
- function G(T) {
4578
- T.stopPropagation(), w(l.value ?? void 0), f.value && t.searchable && Pe(() => i.value?.focus());
4577
+ function G(D) {
4578
+ D.stopPropagation(), w(l.value ?? void 0), f.value && t.searchable && Pe(() => i.value?.focus());
4579
4579
  }
4580
- function R(T) {
4581
- F(T, ne, l.value ?? void 0), f.value && t.searchable && T.key !== "Escape" && T.key !== "Tab" && Pe(() => i.value?.focus());
4580
+ function R(D) {
4581
+ F(D, ne, l.value ?? void 0), f.value && t.searchable && D.key !== "Escape" && D.key !== "Tab" && Pe(() => i.value?.focus());
4582
4582
  }
4583
- function E(T) {
4583
+ function E(D) {
4584
4584
  if (!f.value) return;
4585
- const N = T.target;
4585
+ const N = D.target;
4586
4586
  r.value?.contains(N) || s.value?.contains(N) || z();
4587
4587
  }
4588
- return Ke(() => document.addEventListener("mousedown", E)), Ye(() => document.removeEventListener("mousedown", E)), (T, N) => (h(), b("div", {
4588
+ return Ke(() => document.addEventListener("mousedown", E)), Ye(() => document.removeEventListener("mousedown", E)), (D, N) => (h(), b("div", {
4589
4589
  ref_key: "hostRef",
4590
4590
  ref: r,
4591
4591
  class: K(V.value)
@@ -4668,7 +4668,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4668
4668
  position: "fixed",
4669
4669
  top: "0px",
4670
4670
  left: "0px",
4671
- transform: `translate3d(${$(D)}px, ${$(L)}px, 0)`,
4671
+ transform: `translate3d(${$(T)}px, ${$(L)}px, 0)`,
4672
4672
  minWidth: `${$(S)}px`,
4673
4673
  zIndex: "calc(var(--coar-z-overlay, 1000) + 50)"
4674
4674
  })
@@ -4802,7 +4802,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4802
4802
  readonly: We(t, "readonly"),
4803
4803
  id: We(t, "id"),
4804
4804
  dropdownPositionPreference: We(t, "dropdownPosition")
4805
- }), W = m(() => t.id || a?.inputId.value || u.value), P = m(() => a?.messageId.value || void 0), { left: D, top: L, minWidth: S } = Bn({
4805
+ }), W = m(() => t.id || a?.inputId.value || u.value), P = m(() => a?.messageId.value || void 0), { left: T, top: L, minWidth: S } = Bn({
4806
4806
  isOpen: f,
4807
4807
  triggerEl: l,
4808
4808
  dropdownEl: s
@@ -4850,7 +4850,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4850
4850
  o.value = A;
4851
4851
  }
4852
4852
  }
4853
- function T() {
4853
+ function D() {
4854
4854
  const A = y.value, O = d.value;
4855
4855
  O >= 0 && O < A.length && !A[O].disabled && R(A[O]);
4856
4856
  }
@@ -4861,7 +4861,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4861
4861
  A.stopPropagation(), z(l.value ?? void 0), f.value && t.searchable && Pe(() => i.value?.focus());
4862
4862
  }
4863
4863
  function I(A) {
4864
- F(A, T, l.value ?? void 0), f.value && t.searchable && A.key !== "Escape" && A.key !== "Tab" && Pe(() => i.value?.focus());
4864
+ F(A, D, l.value ?? void 0), f.value && t.searchable && A.key !== "Escape" && A.key !== "Tab" && Pe(() => i.value?.focus());
4865
4865
  }
4866
4866
  function H(A) {
4867
4867
  if (!f.value) return;
@@ -4940,7 +4940,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
4940
4940
  position: "fixed",
4941
4941
  top: "0px",
4942
4942
  left: "0px",
4943
- transform: `translate3d(${$(D)}px, ${$(L)}px, 0)`,
4943
+ transform: `translate3d(${$(T)}px, ${$(L)}px, 0)`,
4944
4944
  minWidth: `${$(S)}px`,
4945
4945
  zIndex: "calc(var(--coar-z-overlay, 1000) + 50)"
4946
4946
  })
@@ -5064,8 +5064,8 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
5064
5064
  }),
5065
5065
  emits: ["update:modelValue"],
5066
5066
  setup(e) {
5067
- const t = e, { t: o } = Ae(), n = Ve(e, "modelValue"), a = He(ft, void 0), r = Re("hostRef"), l = Re("triggerRef"), i = Re("tagInputRef"), s = Re("dropdownRef"), c = m(() => t.error || (a?.hasError.value ?? !1)), f = ee(""), v = m(() => t.compareWith ?? ((T, N) => T === N)), p = m(
5068
- () => t.options.filter((T) => !n.value.some((N) => v.value(N, T.value)))
5067
+ const t = e, { t: o } = Ae(), n = Ve(e, "modelValue"), a = He(ft, void 0), r = Re("hostRef"), l = Re("triggerRef"), i = Re("tagInputRef"), s = Re("dropdownRef"), c = m(() => t.error || (a?.hasError.value ?? !1)), f = ee(""), v = m(() => t.compareWith ?? ((D, N) => D === N)), p = m(
5068
+ () => t.options.filter((D) => !n.value.some((N) => v.value(N, D.value)))
5069
5069
  ), {
5070
5070
  isOpen: d,
5071
5071
  isFocused: u,
@@ -5085,12 +5085,12 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
5085
5085
  readonly: We(t, "readonly"),
5086
5086
  id: We(t, "id"),
5087
5087
  dropdownPositionPreference: We(t, "dropdownPosition")
5088
- }), W = m(() => t.id || a?.inputId.value || M.value), P = m(() => a?.messageId.value || void 0), { left: D, top: L, minWidth: S } = Bn({
5088
+ }), W = m(() => t.id || a?.inputId.value || M.value), P = m(() => a?.messageId.value || void 0), { left: T, top: L, minWidth: S } = Bn({
5089
5089
  isOpen: d,
5090
5090
  triggerEl: l,
5091
5091
  dropdownEl: s
5092
5092
  }), Y = m(
5093
- () => n.value.map((T) => t.options.find((C) => v.value(C.value, T)) ?? { value: T, label: String(T) })
5093
+ () => n.value.map((D) => t.options.find((C) => v.value(C.value, D)) ?? { value: D, label: String(D) })
5094
5094
  ), X = m(() => [
5095
5095
  "coar-tag-select-host",
5096
5096
  `coar-select--${t.size}`,
@@ -5102,31 +5102,31 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
5102
5102
  "coar-select--open": d.value
5103
5103
  }
5104
5104
  ]);
5105
- function de(T, N) {
5106
- N?.stopPropagation(), !(t.disabled || t.readonly) && (n.value = n.value.filter((C) => !v.value(C, T)));
5105
+ function de(D, N) {
5106
+ N?.stopPropagation(), !(t.disabled || t.readonly) && (n.value = n.value.filter((C) => !v.value(C, D)));
5107
5107
  }
5108
- function V(T) {
5109
- T.disabled || t.disabled || t.readonly || (n.value = [...n.value, T.value], f.value = "", g.value = "", Pe(() => i.value?.focus()));
5108
+ function V(D) {
5109
+ D.disabled || t.disabled || t.readonly || (n.value = [...n.value, D.value], f.value = "", g.value = "", Pe(() => i.value?.focus()));
5110
5110
  }
5111
5111
  function Q() {
5112
- const T = w.value, N = y.value;
5113
- N >= 0 && N < T.length && !T[N].disabled && V(T[N]);
5112
+ const D = w.value, N = y.value;
5113
+ N >= 0 && N < D.length && !D[N].disabled && V(D[N]);
5114
5114
  }
5115
- function ne(T) {
5116
- const N = T.target.value;
5115
+ function ne(D) {
5116
+ const N = D.target.value;
5117
5117
  f.value = N, g.value = N, N && !d.value && _(l.value ?? void 0);
5118
5118
  }
5119
- function oe(T) {
5120
- if (T.key === "Backspace" && !f.value && n.value.length > 0) {
5119
+ function oe(D) {
5120
+ if (D.key === "Backspace" && !f.value && n.value.length > 0) {
5121
5121
  n.value = n.value.slice(0, -1);
5122
5122
  return;
5123
5123
  }
5124
- if (T.key === "Enter" && t.allowCreate && f.value.trim()) {
5124
+ if (D.key === "Enter" && t.allowCreate && f.value.trim()) {
5125
5125
  const N = f.value.trim(), C = w.value.find((I) => I.label.toLowerCase() === N.toLowerCase());
5126
- y.value >= 0 ? Q() : C ? V(C) : (n.value = [...n.value, N], f.value = "", g.value = ""), T.preventDefault();
5126
+ y.value >= 0 ? Q() : C ? V(C) : (n.value = [...n.value, N], f.value = "", g.value = ""), D.preventDefault();
5127
5127
  return;
5128
5128
  }
5129
- F(T, Q, l.value ?? void 0);
5129
+ F(D, Q, l.value ?? void 0);
5130
5130
  }
5131
5131
  function ie() {
5132
5132
  t.disabled || t.readonly || (i.value?.focus(), !d.value && p.value.length > 0 && _(l.value ?? void 0));
@@ -5137,12 +5137,12 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
5137
5137
  function R() {
5138
5138
  u.value = !1;
5139
5139
  }
5140
- function E(T) {
5140
+ function E(D) {
5141
5141
  if (!d.value) return;
5142
- const N = T.target;
5142
+ const N = D.target;
5143
5143
  r.value?.contains(N) || s.value?.contains(N) || B();
5144
5144
  }
5145
- return Ke(() => document.addEventListener("mousedown", E)), Ye(() => document.removeEventListener("mousedown", E)), (T, N) => (h(), b("div", {
5145
+ return Ke(() => document.addEventListener("mousedown", E)), Ye(() => document.removeEventListener("mousedown", E)), (D, N) => (h(), b("div", {
5146
5146
  ref_key: "hostRef",
5147
5147
  ref: r,
5148
5148
  class: K(X.value)
@@ -5217,7 +5217,7 @@ const Tc = { class: "coar-select-wrapper" }, Dc = ["id", "aria-expanded", "aria-
5217
5217
  position: "fixed",
5218
5218
  top: "0px",
5219
5219
  left: "0px",
5220
- transform: `translate3d(${$(D)}px, ${$(L)}px, 0)`,
5220
+ transform: `translate3d(${$(T)}px, ${$(L)}px, 0)`,
5221
5221
  minWidth: `${$(S)}px`,
5222
5222
  zIndex: "calc(var(--coar-z-overlay, 1000) + 50)"
5223
5223
  })
@@ -5294,8 +5294,8 @@ function gu() {
5294
5294
  const k = hu(w.spec), _ = ++mu;
5295
5295
  let B = () => {
5296
5296
  };
5297
- const F = new Promise((D) => {
5298
- B = D;
5297
+ const F = new Promise((T) => {
5298
+ B = T;
5299
5299
  }), W = vs({
5300
5300
  id: _,
5301
5301
  spec: k,
@@ -5319,8 +5319,8 @@ function gu() {
5319
5319
  afterClosed: F
5320
5320
  });
5321
5321
  if (w.parent) {
5322
- const D = z(w.parent);
5323
- D && (W.parent = D, D.children.add(W));
5322
+ const T = z(w.parent);
5323
+ T && (W.parent = T, T.children.add(W));
5324
5324
  }
5325
5325
  return e.value = [...e.value, W], y(), n(W);
5326
5326
  }
@@ -5373,9 +5373,9 @@ function gu() {
5373
5373
  if (w.closed || w.rafPending) return;
5374
5374
  w.rafPending = !0, (typeof requestAnimationFrame < "u" ? requestAnimationFrame : setTimeout)(() => {
5375
5375
  if (w.rafPending = !1, w.closed) return;
5376
- const B = dn(), F = fa(w.spec.anchor, B), P = (k ?? w.panelEl?.parentElement)?.getBoundingClientRect(), D = P ? { width: P.width, height: P.height } : { width: 0, height: 0 }, L = w.spec.attachment, S = L.strategy === "parent" ? bi(L.container) : void 0, Y = so(
5376
+ const B = dn(), F = fa(w.spec.anchor, B), P = (k ?? w.panelEl?.parentElement)?.getBoundingClientRect(), T = P ? { width: P.width, height: P.height } : { width: 0, height: 0 }, L = w.spec.attachment, S = L.strategy === "parent" ? bi(L.container) : void 0, Y = so(
5377
5377
  F,
5378
- D,
5378
+ T,
5379
5379
  w.spec.position,
5380
5380
  B,
5381
5381
  S
@@ -5386,31 +5386,31 @@ function gu() {
5386
5386
  function s(w, k) {
5387
5387
  const _ = w.spec.size;
5388
5388
  if (!_) return;
5389
- const B = dn(), F = fa(w.spec.anchor, B), W = (S, Y) => S === "anchor" ? `${Y}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, P = (S, Y) => S === "viewport" ? `${Y}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, D = (S, Y, X) => S === "anchor" ? `${Y}px` : S === "viewport" ? `${X}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, L = k.style;
5390
- L.width = D(_.width, F.width, B.width) ?? "", L.height = D(_.height, F.height, B.height) ?? "", L.minWidth = W(_.minWidth, F.width) ?? "", L.minHeight = W(_.minHeight, F.height) ?? "", L.maxWidth = P(_.maxWidth, B.width) ?? "", L.maxHeight = P(_.maxHeight, B.height) ?? "", L.overflow = _.overflow ?? "";
5389
+ const B = dn(), F = fa(w.spec.anchor, B), W = (S, Y) => S === "anchor" ? `${Y}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, P = (S, Y) => S === "viewport" ? `${Y}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, T = (S, Y, X) => S === "anchor" ? `${Y}px` : S === "viewport" ? `${X}px` : typeof S == "number" ? `${S}px` : typeof S == "string" && S.trim() ? S : null, L = k.style;
5390
+ L.width = T(_.width, F.width, B.width) ?? "", L.height = T(_.height, F.height, B.height) ?? "", L.minWidth = W(_.minWidth, F.width) ?? "", L.minHeight = W(_.minHeight, F.height) ?? "", L.maxWidth = P(_.maxWidth, B.width) ?? "", L.maxHeight = P(_.maxHeight, B.height) ?? "", L.overflow = _.overflow ?? "";
5391
5391
  }
5392
5392
  function c(w, k) {
5393
- const _ = w.spec.scroll.strategy;
5393
+ const _ = w.spec.scroll.strategy, B = () => i(w, k);
5394
+ if (window.addEventListener("resize", B, { passive: !0 }), w.cleanups.push(() => window.removeEventListener("resize", B)), typeof ResizeObserver < "u") {
5395
+ const W = new ResizeObserver(() => i(w, k));
5396
+ W.observe(k), w.resizeObserver = W;
5397
+ }
5394
5398
  if (_ === "noop") return;
5395
- const B = w.anchorEl ? Ja(w.anchorEl) : [window];
5399
+ const F = w.anchorEl ? Ja(w.anchorEl) : [window];
5396
5400
  if (_ === "reposition") {
5397
- const F = () => i(w, k), W = () => i(w, k);
5398
- for (const P of B)
5399
- P.addEventListener("scroll", F, { passive: !0 }), w.cleanups.push(() => P.removeEventListener("scroll", F));
5400
- if (window.addEventListener("resize", W, { passive: !0 }), w.cleanups.push(() => window.removeEventListener("resize", W)), typeof ResizeObserver < "u") {
5401
- const P = new ResizeObserver(() => i(w, k));
5402
- P.observe(k), w.resizeObserver = P;
5403
- }
5401
+ const W = () => i(w, k);
5402
+ for (const P of F)
5403
+ P.addEventListener("scroll", W, { passive: !0 }), w.cleanups.push(() => P.removeEventListener("scroll", W));
5404
5404
  } else if (_ === "close") {
5405
- const F = (W) => {
5406
- const P = W.target;
5407
- P instanceof Node && k.contains(P) || a(w);
5405
+ const W = (P) => {
5406
+ const T = P.target;
5407
+ T instanceof Node && k.contains(T) || a(w);
5408
5408
  };
5409
- document.addEventListener("scroll", F, { passive: !0, capture: !0 }), w.cleanups.push(
5410
- () => document.removeEventListener("scroll", F, { capture: !0 })
5409
+ document.addEventListener("scroll", W, { passive: !0, capture: !0 }), w.cleanups.push(
5410
+ () => document.removeEventListener("scroll", W, { capture: !0 })
5411
5411
  );
5412
- for (const W of B)
5413
- W !== window && (W.addEventListener("scroll", F, { passive: !0 }), w.cleanups.push(() => W.removeEventListener("scroll", F)));
5412
+ for (const P of F)
5413
+ P !== window && (P.addEventListener("scroll", W, { passive: !0 }), w.cleanups.push(() => P.removeEventListener("scroll", W)));
5414
5414
  }
5415
5415
  }
5416
5416
  function f(w) {
@@ -6273,7 +6273,7 @@ const sd = ["aria-describedby", "aria-haspopup", "aria-expanded"], ld = ["data-p
6273
6273
  function P() {
6274
6274
  F() && (c = !0, z(), y("hover"));
6275
6275
  }
6276
- function D() {
6276
+ function T() {
6277
6277
  F() && (a.value || (c = !1, w()));
6278
6278
  }
6279
6279
  function L() {
@@ -6323,7 +6323,7 @@ const sd = ["aria-describedby", "aria-haspopup", "aria-expanded"], ld = ["data-p
6323
6323
  }), (ne, oe) => (h(), b("div", {
6324
6324
  class: "coar-popover",
6325
6325
  onMouseenter: P,
6326
- onMouseleave: D,
6326
+ onMouseleave: T,
6327
6327
  onFocusin: Y,
6328
6328
  onFocusout: X
6329
6329
  }, [
@@ -7108,14 +7108,14 @@ const Wh = /* @__PURE__ */ ve(Ed, [["render", zd], ["__scopeId", "data-v-a0d5d1e
7108
7108
  s.value?.contains(Y) || i.value?.contains(Y) || d();
7109
7109
  }
7110
7110
  let P = !1;
7111
- function D() {
7111
+ function T() {
7112
7112
  P || (document.addEventListener("click", W), P = !0);
7113
7113
  }
7114
7114
  function L() {
7115
7115
  document.removeEventListener("click", W), P = !1;
7116
7116
  }
7117
7117
  return re(l, (S) => {
7118
- S ? requestAnimationFrame(() => D()) : L();
7118
+ S ? requestAnimationFrame(() => T()) : L();
7119
7119
  }), Ye(() => {
7120
7120
  c?.(), k(), L(), a.destroy();
7121
7121
  }), (S, Y) => (h(), b("div", Yd, [
@@ -7748,7 +7748,7 @@ const Tf = ["aria-label"], Df = { class: "coar-time-picker__spinner coar-time-pi
7748
7748
  );
7749
7749
  i.value = V, Q !== 0 && (l.value = bo(l.value, Q), s.value = l.value >= 12 ? "PM" : "AM"), B();
7750
7750
  }
7751
- function D() {
7751
+ function T() {
7752
7752
  if (t.disabled || t.readonly || w.value)
7753
7753
  return;
7754
7754
  const { minutes: V, hourDelta: Q } = Ya(
@@ -7767,7 +7767,7 @@ const Tf = ["aria-label"], Df = { class: "coar-time-picker__spinner coar-time-pi
7767
7767
  t.disabled || t.readonly || (V.key === "ArrowUp" ? (V.preventDefault(), F()) : V.key === "ArrowDown" && (V.preventDefault(), W()));
7768
7768
  }
7769
7769
  function Y(V) {
7770
- t.disabled || t.readonly || (V.key === "ArrowUp" ? (V.preventDefault(), P()) : V.key === "ArrowDown" && (V.preventDefault(), D()));
7770
+ t.disabled || t.readonly || (V.key === "ArrowUp" ? (V.preventDefault(), P()) : V.key === "ArrowDown" && (V.preventDefault(), T()));
7771
7771
  }
7772
7772
  function X(V) {
7773
7773
  t.disabled || t.readonly || (V.key === "ArrowUp" || V.key === "ArrowDown") && (V.preventDefault(), L());
@@ -7859,7 +7859,7 @@ const Tf = ["aria-label"], Df = { class: "coar-time-picker__spinner coar-time-pi
7859
7859
  disabled: e.disabled || e.readonly || w.value,
7860
7860
  tabindex: "-1",
7861
7861
  "aria-label": $(n)("coar.ui.timePicker.decreaseMinutes", void 0, "Decrease minutes"),
7862
- onClick: D
7862
+ onClick: T
7863
7863
  }, [
7864
7864
  le(ce, {
7865
7865
  name: "chevron-down",
@@ -8097,13 +8097,13 @@ const qf = {
8097
8097
  return C;
8098
8098
  }
8099
8099
  const P = ee(W());
8100
- function D() {
8100
+ function T() {
8101
8101
  P.value = W();
8102
8102
  }
8103
8103
  re(
8104
8104
  [n, u, () => o.markers, () => o.min, () => o.max, () => o.highlightWeekends, i],
8105
8105
  () => {
8106
- P.value.length > 0 && D();
8106
+ P.value.length > 0 && T();
8107
8107
  }
8108
8108
  );
8109
8109
  function L(C) {
@@ -8132,7 +8132,7 @@ const qf = {
8132
8132
  const H = (C.year - d.value.year) * 12 + (C.month - d.value.month);
8133
8133
  d.value = d.value.add({ months: H + 3 }), I = !0;
8134
8134
  }
8135
- I && D();
8135
+ I && T();
8136
8136
  }
8137
8137
  re(a, (C) => {
8138
8138
  z || (Y(C), Pe(() => S(C, !1)));
@@ -8279,7 +8279,7 @@ const qf = {
8279
8279
  re(n, (C) => {
8280
8280
  C && !u.value && (u.value = C);
8281
8281
  }, { immediate: !0 }), u.value || (u.value = f.value);
8282
- let E = null, T = null;
8282
+ let E = null, D = null;
8283
8283
  function N() {
8284
8284
  const C = k();
8285
8285
  C && C !== E && (E?.removeEventListener("scroll", X), C.addEventListener("scroll", X, { passive: !0 }), E = C, S(a.value, !1));
@@ -8287,11 +8287,11 @@ const qf = {
8287
8287
  return Ke(() => {
8288
8288
  setTimeout(() => S(a.value, !1), 0);
8289
8289
  const C = g.value;
8290
- C && (C.querySelector("[data-overlayscrollbars-viewport]") ? N() : (T = new MutationObserver(() => {
8291
- C.querySelector("[data-overlayscrollbars-viewport]") && (T.disconnect(), T = null, N());
8292
- }), T.observe(C, { childList: !0 })));
8290
+ C && (C.querySelector("[data-overlayscrollbars-viewport]") ? N() : (D = new MutationObserver(() => {
8291
+ C.querySelector("[data-overlayscrollbars-viewport]") && (D.disconnect(), D = null, N());
8292
+ }), D.observe(C, { childList: !0 })));
8293
8293
  }), Ye(() => {
8294
- T?.disconnect(), T = null, E && (E.removeEventListener("scroll", X), E = null);
8294
+ D?.disconnect(), D = null, E && (E.removeEventListener("scroll", X), E = null);
8295
8295
  }), (C, I) => (h(), b("div", {
8296
8296
  class: "coar-scrollable-calendar",
8297
8297
  onKeydown: R
@@ -8738,7 +8738,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
8738
8738
  () => o.clearable && n.value !== null && !F.value && !o.readonly
8739
8739
  ), P = m(
8740
8740
  () => o.placeholder || s.effectiveDateFormat.value.pattern.toUpperCase()
8741
- ), D = m(() => c.value.year <= te.Now.plainDateISO().year - 100), L = m(() => c.value.year >= te.Now.plainDateISO().year + 50), S = m(() => te.Now.plainDateISO());
8741
+ ), T = m(() => c.value.year <= te.Now.plainDateISO().year - 100), L = m(() => c.value.year >= te.Now.plainDateISO().year + 50), S = m(() => te.Now.plainDateISO());
8742
8742
  function Y() {
8743
8743
  if (F.value || o.readonly || s.isOpen.value) return;
8744
8744
  n.value && (c.value = n.value.toPlainYearMonth());
@@ -8765,7 +8765,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
8765
8765
  c.value = E;
8766
8766
  },
8767
8767
  onPreviousYear: () => {
8768
- D.value || (c.value = c.value.subtract({ years: 1 }));
8768
+ T.value || (c.value = c.value.subtract({ years: 1 }));
8769
8769
  },
8770
8770
  onNextYear: () => {
8771
8771
  L.value || (c.value = c.value.add({ years: 1 }));
@@ -9155,8 +9155,8 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9155
9155
  }), Ye(() => {
9156
9156
  _?.destroy(), z && !z.isClosed && (z.close(), z = null);
9157
9157
  });
9158
- const W = m(() => o.error.length > 0), P = m(() => o.error || o.hint), D = m(() => o.disabled), L = m(
9159
- () => o.clearable && n.value !== null && !D.value && !o.readonly
9158
+ const W = m(() => o.error.length > 0), P = m(() => o.error || o.hint), T = m(() => o.disabled), L = m(
9159
+ () => o.clearable && n.value !== null && !T.value && !o.readonly
9160
9160
  ), S = m(() => {
9161
9161
  if (o.placeholder) return o.placeholder;
9162
9162
  const j = s.effectiveDateFormat.value.pattern.toUpperCase();
@@ -9176,7 +9176,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9176
9176
  return o.min && te.PlainDateTime.compare(j, o.min) < 0 ? o.min : o.max && te.PlainDateTime.compare(j, o.max) > 0 ? o.max : j;
9177
9177
  }
9178
9178
  function E() {
9179
- if (D.value || o.readonly || s.isOpen.value) return;
9179
+ if (T.value || o.readonly || s.isOpen.value) return;
9180
9180
  n.value && (c.value = n.value.toPlainDate().toPlainYearMonth());
9181
9181
  const j = y.value;
9182
9182
  if (!j) return;
@@ -9340,11 +9340,11 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9340
9340
  ae.forEach((U) => U()), z = null, s.isOpen.value && (s.close(), a("closed"));
9341
9341
  });
9342
9342
  }
9343
- function T() {
9343
+ function D() {
9344
9344
  s.isOpen.value && z?.close();
9345
9345
  }
9346
9346
  function N() {
9347
- s.isOpen.value ? T() : E();
9347
+ s.isOpen.value ? D() : E();
9348
9348
  }
9349
9349
  Ke(() => {
9350
9350
  Pe(() => B());
@@ -9381,7 +9381,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9381
9381
  class: K(["coar-pdtp-wrapper", [
9382
9382
  `coar-pdtp--${e.size}`,
9383
9383
  {
9384
- "coar-pdtp--disabled": D.value,
9384
+ "coar-pdtp--disabled": T.value,
9385
9385
  "coar-pdtp--readonly": e.readonly,
9386
9386
  "coar-pdtp--error": W.value,
9387
9387
  "coar-pdtp--open": $(s).isOpen.value
@@ -9400,7 +9400,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9400
9400
  ref_key: "triggerRef",
9401
9401
  ref: y,
9402
9402
  class: K(["coar-pdtp-trigger", {
9403
- "coar-pdtp-trigger--disabled": D.value,
9403
+ "coar-pdtp-trigger--disabled": T.value,
9404
9404
  "coar-pdtp-trigger--readonly": e.readonly,
9405
9405
  "coar-pdtp-trigger--error": W.value,
9406
9406
  "coar-pdtp-trigger--open": $(s).isOpen.value
@@ -9430,7 +9430,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9430
9430
  class: "coar-pdtp-input",
9431
9431
  value: w.value,
9432
9432
  placeholder: S.value,
9433
- disabled: D.value,
9433
+ disabled: T.value,
9434
9434
  readonly: e.readonly,
9435
9435
  "aria-labelledby": e.label ? p : void 0,
9436
9436
  "aria-invalid": W.value,
@@ -9445,7 +9445,7 @@ const pp = { class: "coar-plain-date-picker-calendar-column" }, vp = ["aria-labe
9445
9445
  class: "coar-pdtp-btn",
9446
9446
  tabindex: "-1",
9447
9447
  "aria-label": $(r)("coar.ui.dateTimePicker.openPicker", void 0, "Open picker"),
9448
- disabled: D.value || e.readonly,
9448
+ disabled: T.value || e.readonly,
9449
9449
  onClick: N
9450
9450
  }, [
9451
9451
  le(ce, {
@@ -9583,24 +9583,24 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9583
9583
  },
9584
9584
  setup(e) {
9585
9585
  const t = e, { t: o } = Ae(), n = ee(!1), a = ee(!1), r = ee(""), l = ee(null), i = ee(null), s = m(() => t.activeMonth.year), c = m(() => t.activeMonth.month), f = m(() => s.value <= te.Now.plainDateISO().year - 100), v = m(() => s.value >= te.Now.plainDateISO().year + 50), p = m(() => {
9586
- const D = s.value, L = c.value, S = new Intl.DateTimeFormat(t.locale, { month: "short" }), Y = [];
9586
+ const T = s.value, L = c.value, S = new Intl.DateTimeFormat(t.locale, { month: "short" }), Y = [];
9587
9587
  for (let X = 1; X <= 12; X++)
9588
9588
  Y.push({
9589
9589
  month: X,
9590
- name: S.format(new Date(D, X - 1, 1)),
9590
+ name: S.format(new Date(T, X - 1, 1)),
9591
9591
  isActive: X === L,
9592
- yearMonth: te.PlainYearMonth.from({ year: D, month: X })
9592
+ yearMonth: te.PlainYearMonth.from({ year: T, month: X })
9593
9593
  });
9594
9594
  return Y;
9595
9595
  }), d = m(() => te.Now.plainDateISO()), u = m(() => {
9596
- const D = te.PlainYearMonth.compare(t.activeMonth, d.value.toPlainYearMonth());
9597
- return D === 0 ? "hidden" : D > 0 ? "up" : "down";
9596
+ const T = te.PlainYearMonth.compare(t.activeMonth, d.value.toPlainYearMonth());
9597
+ return T === 0 ? "hidden" : T > 0 ? "up" : "down";
9598
9598
  }), g = m(
9599
9599
  () => t.showTodayMonthButton && u.value !== "hidden"
9600
9600
  ), y = m(() => {
9601
- const D = t.modelValue;
9602
- return D ? t.markers.filter((L) => {
9603
- const S = te.PlainDate.compare(D, L.startDate) >= 0, Y = L.endDate ? te.PlainDate.compare(D, L.endDate) <= 0 : te.PlainDate.compare(D, L.startDate) === 0;
9601
+ const T = t.modelValue;
9602
+ return T ? t.markers.filter((L) => {
9603
+ const S = te.PlainDate.compare(T, L.startDate) >= 0, Y = L.endDate ? te.PlainDate.compare(T, L.endDate) <= 0 : te.PlainDate.compare(T, L.startDate) === 0;
9604
9604
  return S && Y;
9605
9605
  }) : [];
9606
9606
  }), M = m(
@@ -9608,9 +9608,9 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9608
9608
  ), z = m(
9609
9609
  () => vv(M.value, r.value)
9610
9610
  ), w = m(
9611
- () => M.value.map((D) => ({
9612
- value: D,
9613
- label: Ao(D)
9611
+ () => M.value.map((T) => ({
9612
+ value: T,
9613
+ label: Ao(T)
9614
9614
  }))
9615
9615
  );
9616
9616
  function k() {
@@ -9623,19 +9623,19 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9623
9623
  function _() {
9624
9624
  n.value = !1, r.value = "";
9625
9625
  }
9626
- function B(D) {
9627
- t.onSelectDisplayTimezone(D), _();
9626
+ function B(T) {
9627
+ t.onSelectDisplayTimezone(T), _();
9628
9628
  }
9629
9629
  function F() {
9630
9630
  a.value = !0;
9631
9631
  }
9632
- function W(D) {
9633
- t.onChangeValueTimezone(D), a.value = !1;
9632
+ function W(T) {
9633
+ t.onChangeValueTimezone(T), a.value = !1;
9634
9634
  }
9635
9635
  function P() {
9636
9636
  a.value = !1;
9637
9637
  }
9638
- return (D, L) => (h(), b("div", {
9638
+ return (T, L) => (h(), b("div", {
9639
9639
  class: K(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": e.showWeekNumbers }])
9640
9640
  }, [
9641
9641
  x("div", hv, [
@@ -9896,7 +9896,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9896
9896
  () => o.timeZone ?? _.value
9897
9897
  ), P = m(
9898
9898
  () => B.value != null && B.value !== _.value
9899
- ), D = m(
9899
+ ), T = m(
9900
9900
  () => B.value != null && F.value !== B.value
9901
9901
  ), L = m(() => {
9902
9902
  const fe = F.value, be = _.value, ye = B.value;
@@ -9958,8 +9958,8 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9958
9958
  }), Ye(() => {
9959
9959
  Q?.destroy(), w && !w.isClosed && (w.close(), w = null);
9960
9960
  });
9961
- const R = m(() => o.error.length > 0), E = m(() => o.error || o.hint), T = m(() => o.disabled), N = m(
9962
- () => o.clearable && n.value !== null && !T.value && !o.readonly
9961
+ const R = m(() => o.error.length > 0), E = m(() => o.error || o.hint), D = m(() => o.disabled), N = m(
9962
+ () => o.clearable && n.value !== null && !D.value && !o.readonly
9963
9963
  ), C = m(() => {
9964
9964
  if (o.placeholder) return o.placeholder;
9965
9965
  const fe = s.effectiveDateFormat.value.pattern.toUpperCase();
@@ -9983,7 +9983,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
9983
9983
  return o.min && te.Instant.compare(fe.toInstant(), o.min.toInstant()) < 0 ? o.min : o.max && te.Instant.compare(fe.toInstant(), o.max.toInstant()) > 0 ? o.max : fe;
9984
9984
  }
9985
9985
  function De() {
9986
- if (T.value || o.readonly || s.isOpen.value) return;
9986
+ if (D.value || o.readonly || s.isOpen.value) return;
9987
9987
  H.value && (c.value = H.value.toPlainDate().toPlainYearMonth());
9988
9988
  const fe = M.value;
9989
9989
  if (!fe) return;
@@ -10008,7 +10008,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10008
10008
  allTimezones: de,
10009
10009
  timezoneFilter: o.timezoneFilter,
10010
10010
  valueTimeZoneLabel: X.value,
10011
- timeZonesDiffer: D.value,
10011
+ timeZonesDiffer: T.value,
10012
10012
  hasValue: n.value != null,
10013
10013
  formatValueInValueTz: ie(),
10014
10014
  onDateSelected: (se) => {
@@ -10091,7 +10091,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10091
10091
  be.timezoneFilter = se;
10092
10092
  })), ye.push(re(X, (se) => {
10093
10093
  be.valueTimeZoneLabel = se;
10094
- })), ye.push(re(D, (se) => {
10094
+ })), ye.push(re(T, (se) => {
10095
10095
  be.timeZonesDiffer = se;
10096
10096
  })), ye.push(re(n, (se) => {
10097
10097
  be.hasValue = se != null, be.formatValueInValueTz = ie();
@@ -10174,7 +10174,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10174
10174
  "aria-labelledby": e.label ? d : void 0,
10175
10175
  "aria-invalid": R.value || void 0,
10176
10176
  class: K(["coar-zdtp-trigger", {
10177
- "coar-zdtp-trigger--disabled": T.value,
10177
+ "coar-zdtp-trigger--disabled": D.value,
10178
10178
  "coar-zdtp-trigger--readonly": e.readonly,
10179
10179
  "coar-zdtp-trigger--error": R.value,
10180
10180
  "coar-zdtp-trigger--open": $(s).isOpen.value
@@ -10186,7 +10186,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10186
10186
  class: K(["coar-zdtp-clear", { "coar-zdtp-clear--hidden": !N.value }]),
10187
10187
  "aria-label": $(r)("coar.ui.zonedDateTimePicker.clearValue", void 0, "Clear value"),
10188
10188
  tabindex: "-1",
10189
- disabled: T.value,
10189
+ disabled: D.value,
10190
10190
  onClick: Ee
10191
10191
  }, [
10192
10192
  le(ce, {
@@ -10202,7 +10202,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10202
10202
  type: "text",
10203
10203
  placeholder: C.value,
10204
10204
  value: k.value,
10205
- disabled: T.value,
10205
+ disabled: D.value,
10206
10206
  readonly: e.readonly,
10207
10207
  "aria-describedby": E.value ? y : void 0,
10208
10208
  autocomplete: "off",
@@ -10222,7 +10222,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10222
10222
  }]),
10223
10223
  "aria-label": $(r)("coar.ui.zonedDateTimePicker.timezoneIndicator", { tz: Y.value }, `Timezone: ${Y.value}`) + (S.value ? ". " + $(r)("coar.ui.zonedDateTimePicker.clickToToggle", void 0, "Click to toggle.") : ""),
10224
10224
  tabindex: "-1",
10225
- disabled: T.value,
10225
+ disabled: D.value,
10226
10226
  onClick: Mo(ht, ["stop"])
10227
10227
  }, [
10228
10228
  le(ce, {
@@ -10233,7 +10233,7 @@ const hv = { class: "coar-zdtp-body" }, mv = { class: "coar-zdtp-calendar-column
10233
10233
  x("button", {
10234
10234
  type: "button",
10235
10235
  class: "coar-zdtp-btn",
10236
- disabled: T.value,
10236
+ disabled: D.value,
10237
10237
  "aria-label": $(r)("coar.ui.zonedDateTimePicker.openPicker", void 0, "Open date and time picker"),
10238
10238
  tabindex: "-1",
10239
10239
  onClick: Mo(Ce, ["stop"])