@nice2dev/ui-mobile 1.0.18 → 1.0.20

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.mjs CHANGED
@@ -238,7 +238,7 @@ const Gt = ({
238
238
  X > 0 || (_.current = U.touches[0].clientY, Y.current = X, P.current = !1);
239
239
  },
240
240
  [m, T]
241
- ), G = d(
241
+ ), K = d(
242
242
  (U) => {
243
243
  if (m || T === "refreshing")
244
244
  return;
@@ -280,7 +280,7 @@ const Gt = ({
280
280
  className: `nice-ptr ${h} nice-ptr--${T}`,
281
281
  style: p,
282
282
  onTouchStart: ne,
283
- onTouchMove: G,
283
+ onTouchMove: K,
284
284
  onTouchEnd: O,
285
285
  onKeyDown: Z,
286
286
  tabIndex: 0,
@@ -441,7 +441,7 @@ const ct = ({
441
441
  itemId: h,
442
442
  hapticFeedback: p = !0
443
443
  }, b) => {
444
- const I = Qt(), [T, D] = J(0), [x, z] = J(null), [V, B] = J(!1), _ = W(null), Y = W(0), y = W(0), P = W(0), R = W(!1), H = W(null), S = W(!1), F = -(t.length * c), ne = r.length * c, G = (o === "left" || o === "both" || !o) && t.length > 0, O = (o === "right" || o === "both" || !o) && r.length > 0, Z = Math.min(1, Math.abs(T) / Math.abs(F)), ee = Math.min(1, T / ne), re = pe(
444
+ const I = Qt(), [T, D] = J(0), [x, z] = J(null), [V, B] = J(!1), _ = W(null), Y = W(0), y = W(0), P = W(0), R = W(!1), H = W(null), S = W(!1), F = -(t.length * c), ne = r.length * c, K = (o === "left" || o === "both" || !o) && t.length > 0, O = (o === "right" || o === "both" || !o) && r.length > 0, Z = Math.min(1, Math.abs(T) / Math.abs(F)), ee = Math.min(1, T / ne), re = pe(
445
445
  () => h || `swipe-${Math.random().toString(36).substr(2, 9)}`,
446
446
  [h]
447
447
  ), L = d(() => {
@@ -466,7 +466,7 @@ const ct = ({
466
466
  R.current = !0, H.current = E < 0 ? "left" : "right", l == null || l(H.current), u && I && I.setActiveItemId(re);
467
467
  }
468
468
  let C = P.current + E;
469
- if (!G && C < 0 && (C = Math.max(C, -30) * 0.3), !O && C > 0 && (C = Math.min(C, 30) * 0.3), G && C < F) {
469
+ if (!K && C < 0 && (C = Math.max(C, -30) * 0.3), !O && C > 0 && (C = Math.min(C, 30) * 0.3), K && C < F) {
470
470
  const ie = F - C;
471
471
  C = F - ie * 0.3;
472
472
  }
@@ -474,13 +474,13 @@ const ct = ({
474
474
  const ie = C - ne;
475
475
  C = ne + ie * 0.3;
476
476
  }
477
- const K = H.current === "left" ? Math.abs(F) * i : ne * i, se = H.current === "left" ? Math.abs(C) : C;
478
- se >= K && !S.current ? (S.current = !0, p && Le("light")) : se < K && S.current && (S.current = !1), D(C), a.preventDefault();
477
+ const G = H.current === "left" ? Math.abs(F) * i : ne * i, se = H.current === "left" ? Math.abs(C) : C;
478
+ se >= G && !S.current ? (S.current = !0, p && Le("light")) : se < G && S.current && (S.current = !1), D(C), a.preventDefault();
479
479
  },
480
480
  [
481
481
  w,
482
482
  V,
483
- G,
483
+ K,
484
484
  O,
485
485
  F,
486
486
  ne,
@@ -497,13 +497,13 @@ const ct = ({
497
497
  R.current = !1, B(!0);
498
498
  const a = Math.abs(F) * i, s = ne * i;
499
499
  let N = 0, E = null;
500
- H.current === "left" && G ? Math.abs(T) >= a && (N = F, E = "left", p && Le("medium")) : H.current === "right" && O && T >= s && (N = ne, E = "right", p && Le("medium")), (x === "left" && T > 0 || x === "right" && T < 0) && (N = 0, E = null), D(N), z(E), m == null || m(E), setTimeout(() => B(!1), 300);
500
+ H.current === "left" && K ? Math.abs(T) >= a && (N = F, E = "left", p && Le("medium")) : H.current === "right" && O && T >= s && (N = ne, E = "right", p && Le("medium")), (x === "left" && T > 0 || x === "right" && T < 0) && (N = 0, E = null), D(N), z(E), m == null || m(E), setTimeout(() => B(!1), 300);
501
501
  }, [
502
502
  T,
503
503
  F,
504
504
  ne,
505
505
  i,
506
- G,
506
+ K,
507
507
  O,
508
508
  x,
509
509
  p,
@@ -808,43 +808,43 @@ const tn = ue(
808
808
  }, V) => {
809
809
  const [B, _] = J(o), [Y, y] = J(0), [P, R] = J(!1), [H, S] = J(
810
810
  typeof window < "u" ? window.innerHeight : 800
811
- ), [F, ne] = J(400), G = W(null), O = W(null), Z = W(0), ee = W(0), re = W(0), L = W(0), U = W(0), j = W(-1), X = i.map(
812
- (K) => en(K, H, F)
811
+ ), [F, ne] = J(400), K = W(null), O = W(null), Z = W(0), ee = W(0), re = W(0), L = W(0), U = W(0), j = W(-1), X = i.map(
812
+ (G) => en(G, H, F)
813
813
  ), f = X[B] ?? X[0];
814
814
  je(V, () => ({
815
- snapTo: (K) => {
816
- K >= 0 && K < i.length && (_(K), y(0), c == null || c(K, X[K]));
815
+ snapTo: (G) => {
816
+ G >= 0 && G < i.length && (_(G), y(0), c == null || c(G, X[G]));
817
817
  },
818
818
  close: () => r(),
819
819
  getCurrentSnap: () => B
820
820
  })), le(() => {
821
- const K = () => {
821
+ const G = () => {
822
822
  S(window.innerHeight);
823
823
  };
824
- return window.addEventListener("resize", K), () => window.removeEventListener("resize", K);
824
+ return window.addEventListener("resize", G), () => window.removeEventListener("resize", G);
825
825
  }, []), le(() => {
826
826
  if (O.current && t) {
827
- const K = O.current.scrollHeight;
828
- ne(K + 60);
827
+ const G = O.current.scrollHeight;
828
+ ne(G + 60);
829
829
  }
830
830
  }, [t, e]), le(() => {
831
831
  if (!t || !k)
832
832
  return;
833
- const K = (se) => {
833
+ const G = (se) => {
834
834
  se.key === "Escape" && r();
835
835
  };
836
- return document.addEventListener("keydown", K), () => document.removeEventListener("keydown", K);
836
+ return document.addEventListener("keydown", G), () => document.removeEventListener("keydown", G);
837
837
  }, [t, k, r]), le(() => {
838
838
  if (t) {
839
- const K = document.body.style.overflow;
839
+ const G = document.body.style.overflow;
840
840
  return document.body.style.overflow = "hidden", () => {
841
- document.body.style.overflow = K;
841
+ document.body.style.overflow = G;
842
842
  };
843
843
  }
844
844
  }, [t]);
845
845
  const v = d(
846
- (K) => {
847
- const se = H - f + K, ie = H - se;
846
+ (G) => {
847
+ const se = H - f + G, ie = H - se;
848
848
  for (let de = 0; de < X.length; de++) {
849
849
  const he = X[de];
850
850
  if (Math.abs(ie - he) < 20 && j.current !== de) {
@@ -855,31 +855,31 @@ const tn = ue(
855
855
  },
856
856
  [H, f, X, p]
857
857
  ), g = d(
858
- (K, se) => {
859
- if (se > h * 2 && $ && K < X[0] * 0.5)
858
+ (G, se) => {
859
+ if (se > h * 2 && $ && G < X[0] * 0.5)
860
860
  return -1;
861
861
  if (se < -h)
862
862
  return X.length - 1;
863
863
  if (se > h)
864
- return $ && K < X[0] * 0.7 ? -1 : 0;
865
- let ie = 0, de = Math.abs(K - X[0]);
864
+ return $ && G < X[0] * 0.7 ? -1 : 0;
865
+ let ie = 0, de = Math.abs(G - X[0]);
866
866
  for (let he = 1; he < X.length; he++) {
867
- const ae = Math.abs(K - X[he]);
867
+ const ae = Math.abs(G - X[he]);
868
868
  ae < de && (de = ae, ie = he);
869
869
  }
870
- return $ && K < X[0] * 0.5 ? -1 : ie;
870
+ return $ && G < X[0] * 0.5 ? -1 : ie;
871
871
  },
872
872
  [X, h, $]
873
873
  ), a = d(
874
- (K) => {
875
- Z.current = K.touches[0].clientY, ee.current = Y, re.current = K.touches[0].clientY, L.current = Date.now(), U.current = 0, j.current = -1, R(!0);
874
+ (G) => {
875
+ Z.current = G.touches[0].clientY, ee.current = Y, re.current = G.touches[0].clientY, L.current = Date.now(), U.current = 0, j.current = -1, R(!0);
876
876
  },
877
877
  [Y]
878
878
  ), s = d(
879
- (K) => {
879
+ (G) => {
880
880
  if (!P)
881
881
  return;
882
- const se = K.touches[0].clientY, ie = se - Z.current, de = Date.now(), he = de - L.current;
882
+ const se = G.touches[0].clientY, ie = se - Z.current, de = Date.now(), he = de - L.current;
883
883
  he > 0 && (U.current = (se - re.current) / he), re.current = se, L.current = de;
884
884
  let ae = ee.current + ie;
885
885
  const fe = f + 50;
@@ -892,14 +892,14 @@ const tn = ue(
892
892
  const te = q - ae;
893
893
  ae = q - te * 0.2;
894
894
  }
895
- y(ae), v(ae), K.preventDefault();
895
+ y(ae), v(ae), G.preventDefault();
896
896
  },
897
897
  [P, f, H, v]
898
898
  ), N = d(() => {
899
899
  if (!P)
900
900
  return;
901
901
  R(!1);
902
- const K = f - Y, se = g(K, U.current);
902
+ const G = f - Y, se = g(G, U.current);
903
903
  if (se === -1)
904
904
  y(f + 100), setTimeout(() => {
905
905
  r(), y(0), _(o);
@@ -919,9 +919,12 @@ const tn = ue(
919
919
  c,
920
920
  o,
921
921
  p
922
- ]), E = d(() => {
923
- w && r();
924
- }, [w, r]);
922
+ ]), E = d(
923
+ (G) => {
924
+ w && G.target === G.currentTarget && r();
925
+ },
926
+ [w, r]
927
+ );
925
928
  if (!t)
926
929
  return null;
927
930
  const Q = Math.max(0, f - Y), C = Math.min(0.5, Q / H * 0.8);
@@ -931,14 +934,14 @@ const tn = ue(
931
934
  {
932
935
  className: "nice-bottom-sheet-backdrop",
933
936
  style: { opacity: C },
934
- onClick: E,
937
+ onMouseDown: E,
935
938
  "aria-hidden": "true"
936
939
  }
937
940
  ),
938
941
  /* @__PURE__ */ A(
939
942
  "div",
940
943
  {
941
- ref: G,
944
+ ref: K,
942
945
  className: `nice-bottom-sheet ${P ? "nice-bottom-sheet--dragging" : ""}`,
943
946
  style: {
944
947
  ...x,
@@ -1027,19 +1030,19 @@ const rn = ue(
1027
1030
  className: z = "",
1028
1031
  style: V
1029
1032
  }, B) => {
1030
- const [_, Y] = J(t), [y, P] = J(1), [R, H] = J(0), [S, F] = J(0), [ne, G] = J(!1), [O, Z] = J({}), ee = W(null), re = W(null), L = W([]), U = W(0), j = W(1), X = W({ x: 0, y: 0 }), f = W(0), v = W({ x: 0, y: 0 }), g = W(!1), a = W(!1), s = W(null), N = e[_], E = d(
1033
+ const [_, Y] = J(t), [y, P] = J(1), [R, H] = J(0), [S, F] = J(0), [ne, K] = J(!1), [O, Z] = J({}), ee = W(null), re = W(null), L = W([]), U = W(0), j = W(1), X = W({ x: 0, y: 0 }), f = W(0), v = W({ x: 0, y: 0 }), g = W(!1), a = W(!1), s = W(null), N = e[_], E = d(
1031
1034
  (q) => {
1032
1035
  let te = q;
1033
- I ? te = (q % e.length + e.length) % e.length : te = Math.max(0, Math.min(e.length - 1, q)), te !== _ && (G(!0), Y(te), P(1), H(0), F(0), r == null || r(te, e[te]), T && nn("light"), setTimeout(() => G(!1), 300));
1036
+ I ? te = (q % e.length + e.length) % e.length : te = Math.max(0, Math.min(e.length - 1, q)), te !== _ && (K(!0), Y(te), P(1), H(0), F(0), r == null || r(te, e[te]), T && nn("light"), setTimeout(() => K(!1), 300));
1034
1037
  },
1035
1038
  [_, e, I, r, T]
1036
- ), Q = d(() => E(_ + 1), [E, _]), C = d(() => E(_ - 1), [E, _]), K = d(
1039
+ ), Q = d(() => E(_ + 1), [E, _]), C = d(() => E(_ - 1), [E, _]), G = d(
1037
1040
  (q, te, ce) => {
1038
1041
  const oe = Math.max($, Math.min(h, q));
1039
1042
  P(oe), oe <= 1 && (H(0), F(0));
1040
1043
  },
1041
1044
  [$, h]
1042
- ), se = d(() => K(y * 1.5), [y, K]), ie = d(() => K(y / 1.5), [y, K]), de = d(() => {
1045
+ ), se = d(() => G(y * 1.5), [y, G]), ie = d(() => G(y / 1.5), [y, G]), de = d(() => {
1043
1046
  P(1), H(0), F(0);
1044
1047
  }, []);
1045
1048
  je(B, () => ({
@@ -1089,10 +1092,10 @@ const rn = ue(
1089
1092
  g.current = !0, U.current = at(te[0], te[1]), j.current = y, X.current = { x: R, y: S };
1090
1093
  else if (te.length === 1) {
1091
1094
  const ce = Date.now();
1092
- ce - f.current < 300 && M ? (y > 1.1 ? de() : K(p, te[0].x, te[0].y), f.current = 0) : f.current = ce, X.current = { x: R, y: S };
1095
+ ce - f.current < 300 && M ? (y > 1.1 ? de() : G(p, te[0].x, te[0].y), f.current = 0) : f.current = ce, X.current = { x: R, y: S };
1093
1096
  }
1094
1097
  },
1095
- [y, R, S, m, M, p, de, K]
1098
+ [y, R, S, m, M, p, de, G]
1096
1099
  ), ae = d(
1097
1100
  (q) => {
1098
1101
  const te = Array.from(q.touches).map((ce) => ({
@@ -1102,7 +1105,7 @@ const rn = ue(
1102
1105
  }));
1103
1106
  if (te.length === 2 && g.current && m) {
1104
1107
  const oe = at(te[0], te[1]) / U.current, ve = j.current * oe;
1105
- K(ve);
1108
+ G(ve);
1106
1109
  const ge = st(te[0], te[1]), we = st(
1107
1110
  L.current[0],
1108
1111
  L.current[1] || L.current[0]
@@ -1117,7 +1120,7 @@ const rn = ue(
1117
1120
  q.preventDefault();
1118
1121
  }
1119
1122
  },
1120
- [y, m, K]
1123
+ [y, m, G]
1121
1124
  ), fe = d(
1122
1125
  (q) => {
1123
1126
  if (g.current) {
@@ -1388,7 +1391,7 @@ function ln({
1388
1391
  style: _,
1389
1392
  ariaLabel: Y = "Scrollable list"
1390
1393
  }, y) {
1391
- const [P, R] = J("idle"), [H, S] = J(!1), [F, ne] = J(!1), G = W(null), O = W(null), Z = W(!1), ee = W(null);
1394
+ const [P, R] = J("idle"), [H, S] = J(!1), [F, ne] = J(!1), K = W(null), O = W(null), Z = W(!1), ee = W(null);
1392
1395
  le(() => {
1393
1396
  o ? R("error") : i ? R("loading") : !c && e.length > 0 ? R("end") : R("idle");
1394
1397
  }, [o, i, c, e.length]);
@@ -1406,10 +1409,10 @@ function ln({
1406
1409
  }
1407
1410
  }, [c, o, r]), U = d(() => {
1408
1411
  var a;
1409
- (a = G.current) == null || a.scrollTo({ top: 0, behavior: "smooth" });
1412
+ (a = K.current) == null || a.scrollTo({ top: 0, behavior: "smooth" });
1410
1413
  }, []), j = d(() => {
1411
- G.current && G.current.scrollTo({
1412
- top: G.current.scrollHeight,
1414
+ K.current && K.current.scrollTo({
1415
+ top: K.current.scrollHeight,
1413
1416
  behavior: "smooth"
1414
1417
  });
1415
1418
  }, []);
@@ -1421,7 +1424,7 @@ function ln({
1421
1424
  N.isIntersecting && c && !i && !o && L();
1422
1425
  };
1423
1426
  return ee.current = new IntersectionObserver(a, {
1424
- root: G.current,
1427
+ root: K.current,
1425
1428
  rootMargin: `${u}px`,
1426
1429
  threshold: 0.1
1427
1430
  }), ee.current.observe(O.current), () => {
@@ -1429,7 +1432,7 @@ function ln({
1429
1432
  (s = ee.current) == null || s.disconnect();
1430
1433
  };
1431
1434
  }, [c, i, o, u, L]), le(() => {
1432
- const a = G.current;
1435
+ const a = K.current;
1433
1436
  if (!a)
1434
1437
  return;
1435
1438
  const s = () => {
@@ -1438,7 +1441,7 @@ function ln({
1438
1441
  };
1439
1442
  return a.addEventListener("scroll", s, { passive: !0 }), () => a.removeEventListener("scroll", s);
1440
1443
  }, [h]), le(() => {
1441
- b === "bottom" && G.current && (G.current.scrollTop = G.current.scrollHeight);
1444
+ b === "bottom" && K.current && (K.current.scrollTop = K.current.scrollHeight);
1442
1445
  }, [b]);
1443
1446
  const X = d(
1444
1447
  (a) => {
@@ -1458,7 +1461,7 @@ function ln({
1458
1461
  }, [$, F]);
1459
1462
  const f = d(
1460
1463
  (a) => {
1461
- G.current = a, typeof y == "function" ? y(a) : y && (y.current = a);
1464
+ K.current = a, typeof y == "function" ? y(a) : y && (y.current = a);
1462
1465
  },
1463
1466
  [y]
1464
1467
  ), v = pe(
@@ -1698,7 +1701,7 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1698
1701
  style: B,
1699
1702
  ariaLabel: _ = "Navigation drawer"
1700
1703
  }, Y) => {
1701
- const [y, P] = J(0), [R, H] = J(!1), [S, F] = J(z), ne = W(null), G = W({ x: 0, y: 0 }), O = W(0), Z = W({ x: 0, y: 0 }), ee = r === "left" || r === "right", L = i ?? (ee ? 280 : 400);
1704
+ const [y, P] = J(0), [R, H] = J(!1), [S, F] = J(z), ne = W(null), K = W({ x: 0, y: 0 }), O = W(0), Z = W({ x: 0, y: 0 }), ee = r === "left" || r === "right", L = i ?? (ee ? 280 : 400);
1702
1705
  le(() => {
1703
1706
  z !== void 0 && F(z);
1704
1707
  }, [z]), le(() => {
@@ -1720,8 +1723,8 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1720
1723
  return;
1721
1724
  const s = ne.current, N = s.querySelectorAll(
1722
1725
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
1723
- ), E = N[0], Q = N[N.length - 1], C = (K) => {
1724
- K.key === "Tab" && (K.shiftKey && document.activeElement === E ? (K.preventDefault(), Q == null || Q.focus()) : !K.shiftKey && document.activeElement === Q && (K.preventDefault(), E == null || E.focus()));
1726
+ ), E = N[0], Q = N[N.length - 1], C = (G) => {
1727
+ G.key === "Tab" && (G.shiftKey && document.activeElement === E ? (G.preventDefault(), Q == null || Q.focus()) : !G.shiftKey && document.activeElement === Q && (G.preventDefault(), E == null || E.focus()));
1725
1728
  };
1726
1729
  return s.addEventListener("keydown", C), E == null || E.focus(), () => s.removeEventListener("keydown", C);
1727
1730
  }, [e]);
@@ -1749,30 +1752,30 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1749
1752
  if (!w && e)
1750
1753
  return;
1751
1754
  const N = s.touches[0];
1752
- G.current = { x: N.clientX, y: N.clientY }, Z.current = { x: N.clientX, y: N.clientY }, O.current = Date.now();
1755
+ K.current = { x: N.clientX, y: N.clientY }, Z.current = { x: N.clientX, y: N.clientY }, O.current = Date.now();
1753
1756
  },
1754
1757
  [w, e]
1755
1758
  ), X = d(
1756
1759
  (s) => {
1757
1760
  if (!w || !e)
1758
1761
  return;
1759
- const N = s.touches[0], E = N.clientX - G.current.x, Q = N.clientY - G.current.y;
1760
- let C = !1, K = 0;
1762
+ const N = s.touches[0], E = N.clientX - K.current.x, Q = N.clientY - K.current.y;
1763
+ let C = !1, G = 0;
1761
1764
  switch (r) {
1762
1765
  case "left":
1763
- C = E < 0, K = Math.min(0, E);
1766
+ C = E < 0, G = Math.min(0, E);
1764
1767
  break;
1765
1768
  case "right":
1766
- C = E > 0, K = Math.max(0, E);
1769
+ C = E > 0, G = Math.max(0, E);
1767
1770
  break;
1768
1771
  case "top":
1769
- C = Q < 0, K = Math.min(0, Q);
1772
+ C = Q < 0, G = Math.min(0, Q);
1770
1773
  break;
1771
1774
  case "bottom":
1772
- C = Q > 0, K = Math.max(0, Q);
1775
+ C = Q > 0, G = Math.max(0, Q);
1773
1776
  break;
1774
1777
  }
1775
- C && Math.abs(ee ? E : Q) > 10 && (H(!0), P(K), Z.current = { x: N.clientX, y: N.clientY }, s.preventDefault());
1778
+ C && Math.abs(ee ? E : Q) > 10 && (H(!0), P(G), Z.current = { x: N.clientX, y: N.clientY }, s.preventDefault());
1776
1779
  },
1777
1780
  [w, e, r, ee]
1778
1781
  ), f = d(() => {
@@ -1785,8 +1788,8 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1785
1788
  if (!M || e)
1786
1789
  return;
1787
1790
  let s = 0, N = 0, E = !1;
1788
- const Q = (K) => {
1789
- const se = K.touches[0];
1791
+ const Q = (G) => {
1792
+ const se = G.touches[0];
1790
1793
  s = se.clientX, N = se.clientY;
1791
1794
  const ie = window.innerWidth, de = window.innerHeight;
1792
1795
  switch (r) {
@@ -1803,10 +1806,10 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1803
1806
  E = N > de - k;
1804
1807
  break;
1805
1808
  }
1806
- }, C = (K) => {
1809
+ }, C = (G) => {
1807
1810
  if (!E)
1808
1811
  return;
1809
- const se = K.touches[0], ie = se.clientX - s, de = se.clientY - N, he = 50;
1812
+ const se = G.touches[0], ie = se.clientX - s, de = se.clientY - N, he = 50;
1810
1813
  let ae = !1;
1811
1814
  switch (r) {
1812
1815
  case "left":
@@ -1822,7 +1825,7 @@ const Nt = ({ item: e, depth: t = 0, onSelect: r, activeId: c }) => {
1822
1825
  ae = de < -he;
1823
1826
  break;
1824
1827
  }
1825
- ae && K.preventDefault();
1828
+ ae && G.preventDefault();
1826
1829
  };
1827
1830
  return document.addEventListener("touchstart", Q, { passive: !0 }), document.addEventListener("touchmove", C, { passive: !1 }), () => {
1828
1831
  document.removeEventListener("touchstart", Q), document.removeEventListener("touchmove", C);
@@ -2144,7 +2147,7 @@ const Mt = ue(
2144
2147
  style: Y,
2145
2148
  ...y
2146
2149
  }, P) {
2147
- const H = `${Ct()}-title`, S = W(null), F = W(null), ne = W(0), G = W(0), O = W(!1), [Z, ee] = J(l), [re, L] = J(0), [U, j] = J(400), [X, f] = J(
2150
+ const H = `${Ct()}-title`, S = W(null), F = W(null), ne = W(0), K = W(0), O = W(!1), [Z, ee] = J(l), [re, L] = J(0), [U, j] = J(400), [X, f] = J(
2148
2151
  typeof window < "u" ? window.innerHeight : 800
2149
2152
  ), [v, g] = J(!1), a = u.map((q) => hn(q, X, U));
2150
2153
  le(() => {
@@ -2221,7 +2224,7 @@ const Mt = ue(
2221
2224
  [a, k, p]
2222
2225
  ), Q = d(
2223
2226
  (q) => {
2224
- O.current = !0, ne.current = q, G.current = re, g(!0);
2227
+ O.current = !0, ne.current = q, K.current = re, g(!0);
2225
2228
  },
2226
2229
  [re]
2227
2230
  ), C = d(
@@ -2229,7 +2232,7 @@ const Mt = ue(
2229
2232
  if (!O.current)
2230
2233
  return;
2231
2234
  const te = ne.current - q, ce = fn(
2232
- G.current + te,
2235
+ K.current + te,
2233
2236
  50,
2234
2237
  // Min height
2235
2238
  X
@@ -2237,7 +2240,7 @@ const Mt = ue(
2237
2240
  L(ce);
2238
2241
  },
2239
2242
  [X]
2240
- ), K = d(
2243
+ ), G = d(
2241
2244
  (q, te) => {
2242
2245
  if (!O.current)
2243
2246
  return;
@@ -2256,14 +2259,14 @@ const Mt = ue(
2256
2259
  C(q.touches[0].clientY);
2257
2260
  }, de = (q) => {
2258
2261
  const te = q.changedTouches[0], ce = (ne.current - te.clientY) / (q.timeStamp - (q.timeStamp - 200));
2259
- K(te.clientY, ce > 0 ? -ce / 1e3 : ce / 1e3);
2262
+ G(te.clientY, ce > 0 ? -ce / 1e3 : ce / 1e3);
2260
2263
  }, he = (q) => {
2261
2264
  q.preventDefault(), Q(q.clientY);
2262
2265
  const te = (oe) => {
2263
2266
  C(oe.clientY);
2264
2267
  }, ce = (oe) => {
2265
2268
  const ve = (ne.current - oe.clientY) / 200;
2266
- K(oe.clientY, ve > 0 ? -ve / 500 : ve / 500), document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ce);
2269
+ G(oe.clientY, ve > 0 ? -ve / 500 : ve / 500), document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ce);
2267
2270
  };
2268
2271
  document.addEventListener("mousemove", te), document.addEventListener("mouseup", ce);
2269
2272
  }, ae = d(
@@ -2747,7 +2750,7 @@ const me = {
2747
2750
  !U || U.disabled || (M && "vibrate" in navigator && navigator.vibrate(10), S || y(L), i == null || i(L));
2748
2751
  },
2749
2752
  [t, M, S, i]
2750
- ), G = k && t.length > k ? t.slice(0, k - 1) : t, O = k && t.length > k ? t.slice(k - 1) : [], Z = {
2753
+ ), K = k && t.length > k ? t.slice(0, k - 1) : t, O = k && t.length > k ? t.slice(k - 1) : [], Z = {
2751
2754
  activeTab: F,
2752
2755
  setActiveTab: ne,
2753
2756
  tabs: t
@@ -2764,7 +2767,7 @@ const me = {
2764
2767
  "aria-label": "Main navigation",
2765
2768
  ...B,
2766
2769
  children: [
2767
- G.map((L) => {
2770
+ K.map((L) => {
2768
2771
  const U = L.id === F;
2769
2772
  return /* @__PURE__ */ n(
2770
2773
  ut,
@@ -2999,7 +3002,7 @@ const vn = () => /* @__PURE__ */ n(
2999
3002
  children: P,
3000
3003
  ...R
3001
3004
  }, H) {
3002
- const [S, F] = J(0), [ne, G] = J(!0), O = W(null), Z = W(0), ee = W(!1), re = w - M, L = w - S * re, U = S >= 0.9;
3005
+ const [S, F] = J(0), [ne, K] = J(!0), O = W(null), Z = W(0), ee = W(!1), re = w - M, L = w - S * re, U = S >= 0.9;
3003
3006
  le(() => {
3004
3007
  const s = I || window, N = () => {
3005
3008
  ee.current || (ee.current = !0, requestAnimationFrame(() => {
@@ -3009,7 +3012,7 @@ const vn = () => /* @__PURE__ */ n(
3009
3012
  F(C), T && Math.abs(C - S) > 0.05 && T(C >= 0.9, C);
3010
3013
  }
3011
3014
  if (l === "enterAlways") {
3012
- Q > 5 && E > M ? G(!1) : Q < -5 && G(!0);
3015
+ Q > 5 && E > M ? K(!1) : Q < -5 && K(!0);
3013
3016
  const C = re > 0 ? Math.min(1, Math.max(0, E / re)) : 0;
3014
3017
  F(C);
3015
3018
  }
@@ -3285,7 +3288,7 @@ const yn = ue(
3285
3288
  h.current.scrollTop = T.current + Z;
3286
3289
  }, ne = () => {
3287
3290
  b.current = !1;
3288
- }, G = (O) => {
3291
+ }, K = (O) => {
3289
3292
  P(O, !0), R(O);
3290
3293
  };
3291
3294
  return /* @__PURE__ */ n(
@@ -3315,7 +3318,7 @@ const yn = ue(
3315
3318
  opacity: L,
3316
3319
  transform: `scale(${U})`
3317
3320
  },
3318
- onClick: () => !O.disabled && G(Z),
3321
+ onClick: () => !O.disabled && K(Z),
3319
3322
  children: m ? m(O, ee) : O.label
3320
3323
  },
3321
3324
  String(O.value)
@@ -3601,7 +3604,7 @@ function Tn(e = {}) {
3601
3604
  }
3602
3605
  },
3603
3606
  [o, D, z, y, k]
3604
- ), H = d((L) => h(L), []), S = d(() => h((L) => He(L, -1)), []), F = d(() => h((L) => He(L, 1)), []), ne = d(() => h((L) => dt(L, -1)), []), G = d(() => h((L) => dt(L, 1)), []), O = d(() => h(/* @__PURE__ */ new Date()), []), Z = d(() => {
3607
+ ), H = d((L) => h(L), []), S = d(() => h((L) => He(L, -1)), []), F = d(() => h((L) => He(L, 1)), []), ne = d(() => h((L) => dt(L, -1)), []), K = d(() => h((L) => dt(L, 1)), []), O = d(() => h(/* @__PURE__ */ new Date()), []), Z = d(() => {
3605
3608
  const L = $.getFullYear(), U = $.getMonth(), j = /* @__PURE__ */ new Date(), f = (new Date(L, U, 1).getDay() - w + 7) % 7, v = 42, g = [];
3606
3609
  for (let a = 0; a < v; a++) {
3607
3610
  const s = new Date(L, U, 1 - f + a), N = s.getMonth() === U, E = s.getDate(), Q = M.filter((C) => Ne(C.date, s));
@@ -3637,7 +3640,7 @@ function Tn(e = {}) {
3637
3640
  goToPrevMonth: S,
3638
3641
  goToNextMonth: F,
3639
3642
  goToPrevYear: ne,
3640
- goToNextYear: G,
3643
+ goToNextYear: K,
3641
3644
  goToToday: O,
3642
3645
  selectDate: R,
3643
3646
  isDateSelected: P,
@@ -3750,7 +3753,7 @@ const Dn = () => /* @__PURE__ */ n(
3750
3753
  events: k,
3751
3754
  weekStartDay: $,
3752
3755
  onChange: T
3753
- }), [F, ne] = J(r ?? t ?? /* @__PURE__ */ new Date()), G = W(0), O = W(0);
3756
+ }), [F, ne] = J(r ?? t ?? /* @__PURE__ */ new Date()), K = W(0), O = W(0);
3754
3757
  le(() => {
3755
3758
  r && ne(r);
3756
3759
  }, [r]);
@@ -3765,7 +3768,7 @@ const Dn = () => /* @__PURE__ */ n(
3765
3768
  ne(a), S.goToDate(a), x == null || x(a);
3766
3769
  }, [S, x]), L = d(
3767
3770
  (a) => {
3768
- I && (G.current = a.touches[0].clientX);
3771
+ I && (K.current = a.touches[0].clientX);
3769
3772
  },
3770
3773
  [I]
3771
3774
  ), U = d(
@@ -3776,7 +3779,7 @@ const Dn = () => /* @__PURE__ */ n(
3776
3779
  ), j = d(() => {
3777
3780
  if (!I)
3778
3781
  return;
3779
- const a = G.current - O.current;
3782
+ const a = K.current - O.current;
3780
3783
  Math.abs(a) > 50 && (a > 0 ? ee() : Z());
3781
3784
  }, [I, ee, Z]), X = d(
3782
3785
  (a) => {
@@ -3976,7 +3979,7 @@ function In(e = {}) {
3976
3979
  velocity: { x: 0, y: 0 },
3977
3980
  center: { x: 0, y: 0 },
3978
3981
  isActive: !1
3979
- }), F = W(/* @__PURE__ */ new Map()), ne = W(0), G = W(0), O = W(1), Z = W(0), ee = W({ x: 0, y: 0 }), re = W(0), L = W({ x: 0, y: 0 }), U = W(0), j = W({ x: 0, y: 0 }), X = W(0), f = W(null), v = W(!1), g = W(!1), a = W(!1), s = d(() => {
3982
+ }), F = W(/* @__PURE__ */ new Map()), ne = W(0), K = W(0), O = W(1), Z = W(0), ee = W({ x: 0, y: 0 }), re = W(0), L = W({ x: 0, y: 0 }), U = W(0), j = W({ x: 0, y: 0 }), X = W(0), f = W(null), v = W(!1), g = W(!1), a = W(!1), s = d(() => {
3980
3983
  f.current && (clearTimeout(f.current), f.current = null);
3981
3984
  }, []), N = d(() => {
3982
3985
  S({
@@ -4002,7 +4005,7 @@ function In(e = {}) {
4002
4005
  else if (de === 2) {
4003
4006
  s();
4004
4007
  const [he, ae] = Array.from(F.current.values());
4005
- ne.current = $e(he, ae), G.current = ht(he, ae), O.current = H.scale, Z.current = H.rotation, t && !g.current && (g.current = !0, b == null || b()), r && !a.current && (a.current = !0, D == null || D());
4008
+ ne.current = $e(he, ae), K.current = ht(he, ae), O.current = H.scale, Z.current = H.rotation, t && !g.current && (g.current = !0, b == null || b()), r && !a.current && (a.current = !0, D == null || D());
4006
4009
  }
4007
4010
  S((he) => ({ ...he, isActive: !0 }));
4008
4011
  },
@@ -4068,7 +4071,7 @@ function In(e = {}) {
4068
4071
  });
4069
4072
  }
4070
4073
  if (r) {
4071
- let oe = te - G.current;
4074
+ let oe = te - K.current;
4072
4075
  oe > 180 && (oe -= 360), oe < -180 && (oe += 360);
4073
4076
  const ve = Z.current + oe, ge = ve - H.rotation;
4074
4077
  S((we) => ({ ...we, rotation: ve, center: ce })), x == null || x({
@@ -4181,7 +4184,7 @@ function In(e = {}) {
4181
4184
  z,
4182
4185
  s
4183
4186
  ]
4184
- ), K = d(
4187
+ ), G = d(
4185
4188
  (ie) => {
4186
4189
  s(), F.current.delete(ie.pointerId), F.current.size === 0 && (v.current = !1, g.current = !1, a.current = !1, S((de) => ({ ...de, isActive: !1 })));
4187
4190
  },
@@ -4191,10 +4194,10 @@ function In(e = {}) {
4191
4194
  onPointerDown: E,
4192
4195
  onPointerMove: Q,
4193
4196
  onPointerUp: C,
4194
- onPointerCancel: K,
4197
+ onPointerCancel: G,
4195
4198
  style: { touchAction: "none" }
4196
4199
  }),
4197
- [E, Q, C, K]
4200
+ [E, Q, C, G]
4198
4201
  );
4199
4202
  return le(() => () => {
4200
4203
  s();
@@ -4236,7 +4239,7 @@ const Ze = ue(function({
4236
4239
  onDoubleTap: S,
4237
4240
  onLongPress: F,
4238
4241
  children: ne,
4239
- className: G = "",
4242
+ className: K = "",
4240
4243
  style: O,
4241
4244
  ...Z
4242
4245
  }, ee) {
@@ -4280,7 +4283,7 @@ const Ze = ue(function({
4280
4283
  "div",
4281
4284
  {
4282
4285
  ref: ee,
4283
- className: `nice-gestures ${U.isActive ? "nice-gestures--active" : ""} ${G}`,
4286
+ className: `nice-gestures ${U.isActive ? "nice-gestures--active" : ""} ${K}`,
4284
4287
  style: {
4285
4288
  ...j.style,
4286
4289
  ...O,
@@ -4807,33 +4810,33 @@ const An = {
4807
4810
  ...D
4808
4811
  }, x) {
4809
4812
  const [z, V] = J(!1), [B, _] = J(null), Y = W(null), y = d(
4810
- (G) => {
4811
- Y.current = G, typeof x == "function" ? x(G) : x && (x.current = G);
4813
+ (K) => {
4814
+ Y.current = K, typeof x == "function" ? x(K) : x && (x.current = K);
4812
4815
  },
4813
4816
  [x]
4814
4817
  ), P = d(() => {
4815
4818
  if (!M || typeof navigator > "u" || !("vibrate" in navigator))
4816
4819
  return;
4817
- const G = {
4820
+ const K = {
4818
4821
  light: 10,
4819
4822
  medium: 20,
4820
4823
  heavy: 40
4821
4824
  };
4822
4825
  try {
4823
- navigator.vibrate(G[w] || 10);
4826
+ navigator.vibrate(K[w] || 10);
4824
4827
  } catch {
4825
4828
  }
4826
4829
  }, [M, w]), R = d(
4827
- (G) => {
4830
+ (K) => {
4828
4831
  if (!(h || o)) {
4829
4832
  if (V(!0), k && Y.current) {
4830
4833
  const O = Y.current.getBoundingClientRect();
4831
4834
  _({
4832
- x: G.clientX - O.left,
4833
- y: G.clientY - O.top
4835
+ x: K.clientX - O.left,
4836
+ y: K.clientY - O.top
4834
4837
  }), setTimeout(() => _(null), 600);
4835
4838
  }
4836
- P(), I == null || I(G);
4839
+ P(), I == null || I(K);
4837
4840
  }
4838
4841
  },
4839
4842
  [h, o, k, P, I]
@@ -4842,8 +4845,8 @@ const An = {
4842
4845
  }, []), S = d(() => {
4843
4846
  V(!1);
4844
4847
  }, []), F = d(
4845
- (G) => {
4846
- h || o || b == null || b(G);
4848
+ (K) => {
4849
+ h || o || b == null || b(K);
4847
4850
  },
4848
4851
  [h, o, b]
4849
4852
  ), ne = [
@@ -5015,7 +5018,7 @@ const fc = ue(
5015
5018
  defaultValue: r,
5016
5019
  onChange: x,
5017
5020
  onChangeCommitted: z
5018
- }), R = W(null), [H, S] = J(!1), [F, ne] = J(null), [G, O] = J(w === "on"), Z = W(P.value), ee = pe(() => {
5021
+ }), R = W(null), [H, S] = J(!1), [F, ne] = J(null), [K, O] = J(w === "on"), Z = W(P.value), ee = pe(() => {
5019
5022
  if (!m)
5020
5023
  return [];
5021
5024
  if (Array.isArray(m))
@@ -5059,9 +5062,9 @@ const fc = ue(
5059
5062
  s.preventDefault(), s.currentTarget.setPointerCapture(s.pointerId);
5060
5063
  const E = re(s), Q = N ?? U(E);
5061
5064
  if (S(!0), ne(Q), O(w !== "off"), D && ee.length > 0) {
5062
- const C = ee.reduce((K, se) => {
5063
- const ie = (K.value - c) / (i - c) * 100, de = (se.value - c) / (i - c) * 100;
5064
- return Math.abs(de - E) < Math.abs(ie - E) ? se : K;
5065
+ const C = ee.reduce((G, se) => {
5066
+ const ie = (G.value - c) / (i - c) * 100, de = (se.value - c) / (i - c) * 100;
5067
+ return Math.abs(de - E) < Math.abs(ie - E) ? se : G;
5065
5068
  });
5066
5069
  P.setValue(
5067
5070
  P.isRange ? Q === 0 ? [C.value, P.value[1]] : [P.value[0], C.value] : C.value
@@ -5089,9 +5092,9 @@ const fc = ue(
5089
5092
  return;
5090
5093
  const N = re(s);
5091
5094
  if (D && ee.length > 0) {
5092
- const Q = ee.reduce((K, se) => {
5093
- const ie = (K.value - c) / (i - c) * 100, de = (se.value - c) / (i - c) * 100;
5094
- return Math.abs(de - N) < Math.abs(ie - N) ? se : K;
5095
+ const Q = ee.reduce((G, se) => {
5096
+ const ie = (G.value - c) / (i - c) * 100, de = (se.value - c) / (i - c) * 100;
5097
+ return Math.abs(de - N) < Math.abs(ie - N) ? se : G;
5095
5098
  }), C = P.isRange ? F === 0 ? [Q.value, P.value[1]] : [P.value[0], Q.value] : Q.value;
5096
5099
  JSON.stringify(C) !== JSON.stringify(Z.current) && (P.setValue(C), Z.current = C, L());
5097
5100
  } else {
@@ -5182,7 +5185,7 @@ const fc = ue(
5182
5185
  "aria-valuemax": i,
5183
5186
  "aria-disabled": l,
5184
5187
  onKeyDown: (C) => v(C, s),
5185
- children: G && /* @__PURE__ */ n("span", { className: "nice-touch-slider-label", children: k(E) })
5188
+ children: K && /* @__PURE__ */ n("span", { className: "nice-touch-slider-label", children: k(E) })
5186
5189
  },
5187
5190
  s
5188
5191
  );
@@ -5366,8 +5369,8 @@ const vc = ue(
5366
5369
  const a = v.createImageData(g, g);
5367
5370
  for (let s = 0; s < g; s++)
5368
5371
  for (let N = 0; N < g; N++) {
5369
- const E = N / g * 100, Q = 100 - s / g * 100, C = We(b.h, E, Q), K = (s * g + N) * 4;
5370
- a.data[K] = C.r, a.data[K + 1] = C.g, a.data[K + 2] = C.b, a.data[K + 3] = 255;
5372
+ const E = N / g * 100, Q = 100 - s / g * 100, C = We(b.h, E, Q), G = (s * g + N) * 4;
5373
+ a.data[G] = C.r, a.data[G + 1] = C.g, a.data[G + 2] = C.b, a.data[G + 3] = 255;
5371
5374
  }
5372
5375
  v.putImageData(a, 0, 0);
5373
5376
  }, [b.h, m]);
@@ -5404,7 +5407,7 @@ const vc = ue(
5404
5407
  [R]
5405
5408
  ), ne = d((f) => {
5406
5409
  f.currentTarget.releasePointerCapture(f.pointerId), _.current = !1;
5407
- }, []), G = d(
5410
+ }, []), K = d(
5408
5411
  (f) => {
5409
5412
  f.currentTarget.setPointerCapture(f.pointerId), Y.current = !0, H(f);
5410
5413
  },
@@ -5487,7 +5490,7 @@ const vc = ue(
5487
5490
  {
5488
5491
  ref: B,
5489
5492
  className: "nice-touch-color-picker-sl",
5490
- onPointerDown: G,
5493
+ onPointerDown: K,
5491
5494
  onPointerMove: O,
5492
5495
  onPointerUp: Z,
5493
5496
  onPointerCancel: Z
@@ -5607,7 +5610,7 @@ const pc = ue(
5607
5610
  const s = v.getContext("2d");
5608
5611
  s && (s.scale(a, a), B.current = s, O());
5609
5612
  }, []);
5610
- const G = d(() => {
5613
+ const K = d(() => {
5611
5614
  if (!(!h || typeof navigator > "u" || !("vibrate" in navigator)))
5612
5615
  try {
5613
5616
  navigator.vibrate(5);
@@ -5666,9 +5669,9 @@ const pc = ue(
5666
5669
  return;
5667
5670
  v.preventDefault(), v.currentTarget.setPointerCapture(v.pointerId), P(!0);
5668
5671
  const g = U(v);
5669
- R.current = [g], F.current = 0, ne.current = i, S.current = [], re(g), I == null || I(), G();
5672
+ R.current = [g], F.current = 0, ne.current = i, S.current = [], re(g), I == null || I(), K();
5670
5673
  },
5671
- [k, U, i, re, I, G]
5674
+ [k, U, i, re, I, K]
5672
5675
  ), X = d(
5673
5676
  (v) => {
5674
5677
  if (!y || k)
@@ -5676,8 +5679,8 @@ const pc = ue(
5676
5679
  const g = U(v), a = R.current;
5677
5680
  if (a.length === 0)
5678
5681
  return;
5679
- const s = a[a.length - 1], N = mt(s, g), E = l * N + (1 - l) * F.current, Q = ee(E), C = (ne.current + Q) / 2, K = g.pressure !== void 0 ? C * Math.max(0.5, g.pressure) : C;
5680
- L(s, g, K), a.push(g), F.current = E, ne.current = Q;
5682
+ const s = a[a.length - 1], N = mt(s, g), E = l * N + (1 - l) * F.current, Q = ee(E), C = (ne.current + Q) / 2, G = g.pressure !== void 0 ? C * Math.max(0.5, g.pressure) : C;
5683
+ L(s, g, G), a.push(g), F.current = E, ne.current = Q;
5681
5684
  },
5682
5685
  [y, k, U, l, ee, L]
5683
5686
  ), f = d(
@@ -5707,10 +5710,10 @@ const pc = ue(
5707
5710
  H.current.forEach((C) => {
5708
5711
  if (C.length < 2)
5709
5712
  return;
5710
- let K = `M ${C[0].x} ${C[0].y}`;
5713
+ let G = `M ${C[0].x} ${C[0].y}`;
5711
5714
  for (let se = 1; se < C.length; se++)
5712
- K += ` L ${C[se].x} ${C[se].y}`;
5713
- E += `<path d="${K}" stroke="${c}" stroke-width="${i}" fill="none" stroke-linecap="round" stroke-linejoin="round"/>`;
5715
+ G += ` L ${C[se].x} ${C[se].y}`;
5716
+ E += `<path d="${G}" stroke="${c}" stroke-width="${i}" fill="none" stroke-linecap="round" stroke-linejoin="round"/>`;
5714
5717
  });
5715
5718
  const Q = `<svg xmlns="http://www.w3.org/2000/svg" width="${N.width}" height="${N.height}" viewBox="0 0 ${N.width} ${N.height}">${E}</svg>`;
5716
5719
  return `data:image/svg+xml;base64,${btoa(Q)}`;
@@ -5841,7 +5844,7 @@ const pc = ue(
5841
5844
  navigator.vibrate(5);
5842
5845
  } catch {
5843
5846
  }
5844
- }, [w]), G = d(
5847
+ }, [w]), K = d(
5845
5848
  (f) => {
5846
5849
  const v = D.current;
5847
5850
  if (!v)
@@ -5886,9 +5889,9 @@ const pc = ue(
5886
5889
  return;
5887
5890
  const N = a.getBoundingClientRect(), E = s.getImageData(0, 0, N.width, N.height), Q = E.data, C = document.createElement("div");
5888
5891
  C.style.color = g, document.body.appendChild(C);
5889
- const K = getComputedStyle(C).color;
5892
+ const G = getComputedStyle(C).color;
5890
5893
  document.body.removeChild(C);
5891
- const se = K.match(/\d+/g);
5894
+ const se = G.match(/\d+/g);
5892
5895
  if (!se)
5893
5896
  return;
5894
5897
  const [ie, de, he] = se.map(Number), ae = (Math.floor(v) * N.width + Math.floor(f)) * 4, fe = Q[ae], q = Q[ae + 1], te = Q[ae + 2], ce = Q[ae + 3];
@@ -5908,7 +5911,7 @@ const pc = ue(
5908
5911
  if ($)
5909
5912
  return;
5910
5913
  f.preventDefault(), f.currentTarget.setPointerCapture(f.pointerId);
5911
- const v = G(f);
5914
+ const v = K(f);
5912
5915
  if (B === "fill") {
5913
5916
  re(v.x, v.y, i), S(), h == null || h(), ne();
5914
5917
  return;
@@ -5927,7 +5930,7 @@ const pc = ue(
5927
5930
  },
5928
5931
  [
5929
5932
  $,
5930
- G,
5933
+ K,
5931
5934
  B,
5932
5935
  re,
5933
5936
  i,
@@ -5941,10 +5944,10 @@ const pc = ue(
5941
5944
  (f) => {
5942
5945
  if (!z || $)
5943
5946
  return;
5944
- const v = G(f);
5947
+ const v = K(f);
5945
5948
  B === "line" || B === "rectangle" || B === "circle" ? P.current && ee(P.current, v) : R.current && Z(R.current, v), R.current = v;
5946
5949
  },
5947
- [z, $, G, B, ee, Z]
5950
+ [z, $, K, B, ee, Z]
5948
5951
  ), j = d(
5949
5952
  (f) => {
5950
5953
  z && (f.currentTarget.releasePointerCapture(f.pointerId), V(!1), (B === "line" || B === "rectangle" || B === "circle") && P.current && R.current && ee(P.current, R.current), H.current = null, P.current = null, R.current = null, S(), h == null || h());
@@ -6689,12 +6692,12 @@ const nt = ue(
6689
6692
  const Y = pe(
6690
6693
  () => i && i.length > 0 ? i : ["en"],
6691
6694
  [i]
6692
- ), [y, P] = J(Y[0]), R = o ?? y, [H, S] = J(!1), [F, ne] = J(!1), [G, O] = J(!1), Z = x ?? Y.length > 1, ee = pe(() => t === "custom" && r ? r.rows : t !== "qwerty" ? {
6695
+ ), [y, P] = J(Y[0]), R = o ?? y, [H, S] = J(!1), [F, ne] = J(!1), [K, O] = J(!1), Z = x ?? Y.length > 1, ee = pe(() => t === "custom" && r ? r.rows : t !== "qwerty" ? {
6693
6696
  numeric: Ke,
6694
6697
  numpad: Cn,
6695
6698
  phone: Gn,
6696
6699
  pin: Kn
6697
- }[t] || Ke : Jn(R, c, G, Z, z), [t, r, R, c, G, Z, z]), re = d(() => {
6700
+ }[t] || Ke : Jn(R, c, K, Z, z), [t, r, R, c, K, Z, z]), re = d(() => {
6698
6701
  const a = Y.indexOf(R), s = Y[(a + 1) % Y.length];
6699
6702
  P(s), u == null || u(s);
6700
6703
  }, [Y, R, u]), L = d(() => {
@@ -6810,10 +6813,10 @@ const nt = ue(
6810
6813
  ] }),
6811
6814
  /* @__PURE__ */ n("div", { className: "nice-touch-keyboard-keys", children: ee.map((a, s) => /* @__PURE__ */ n("div", { className: "nice-touch-keyboard-row", children: a.map((N, E) => {
6812
6815
  var se;
6813
- const Q = N.type === "shift" && H || N.type === "caps" && F || N.type === "lang" || N.value === "123" && G || N.value === "ABC" && !G || N.value === "#+=" && G;
6816
+ const Q = N.type === "shift" && H || N.type === "caps" && F || N.type === "lang" || N.value === "123" && K || N.value === "ABC" && !K || N.value === "#+=" && K;
6814
6817
  let C = N.label || N.value;
6815
6818
  f && !N.type && C.length === 1 && (C = C.toUpperCase());
6816
- const K = !N.type && N.value.length === 1 && ((se = g == null ? void 0 : g.accents) == null ? void 0 : se[N.value.toLowerCase()]);
6819
+ const G = !N.type && N.value.length === 1 && ((se = g == null ? void 0 : g.accents) == null ? void 0 : se[N.value.toLowerCase()]);
6817
6820
  return /* @__PURE__ */ n(
6818
6821
  "button",
6819
6822
  {
@@ -6822,7 +6825,7 @@ const nt = ue(
6822
6825
  "nice-touch-keyboard-key",
6823
6826
  `nice-touch-keyboard-key--${N.type || "char"}`,
6824
6827
  Q ? "active" : "",
6825
- K ? "nice-touch-keyboard-key--has-accent" : ""
6828
+ G ? "nice-touch-keyboard-key--has-accent" : ""
6826
6829
  ].filter(Boolean).join(" "),
6827
6830
  style: { flex: N.width || 1 },
6828
6831
  onClick: () => j(N),
@@ -7520,7 +7523,7 @@ const Tc = ue(function({
7520
7523
  }
7521
7524
  },
7522
7525
  [M, H, I]
7523
- ), G = d((j) => {
7526
+ ), K = d((j) => {
7524
7527
  var f;
7525
7528
  const X = Y.current.get(j);
7526
7529
  X && ((f = X.focus) == null || f.call(X), P.current = j);
@@ -7529,20 +7532,20 @@ const Tc = ue(function({
7529
7532
  return;
7530
7533
  const j = y.current, X = P.current;
7531
7534
  if (!X) {
7532
- j.length > 0 && G(j[0]);
7535
+ j.length > 0 && K(j[0]);
7533
7536
  return;
7534
7537
  }
7535
7538
  const f = j.indexOf(X);
7536
- f < j.length - 1 && (G(j[f + 1]), R());
7537
- }, [u, G, R]), Z = d(() => {
7539
+ f < j.length - 1 && (K(j[f + 1]), R());
7540
+ }, [u, K, R]), Z = d(() => {
7538
7541
  if (!u)
7539
7542
  return;
7540
7543
  const j = y.current, X = P.current;
7541
7544
  if (!X)
7542
7545
  return;
7543
7546
  const f = j.indexOf(X);
7544
- f > 0 && (G(j[f - 1]), R());
7545
- }, [u, G, R]), ee = d((j, X) => {
7547
+ f > 0 && (K(j[f - 1]), R());
7548
+ }, [u, K, R]), ee = d((j, X) => {
7546
7549
  Y.current.set(j, X), X && !y.current.includes(j) && y.current.push(j);
7547
7550
  }, []), re = d((j) => {
7548
7551
  Y.current.delete(j), y.current = y.current.filter((X) => X !== j);
@@ -7554,7 +7557,7 @@ const Tc = ue(function({
7554
7557
  if (X.length > 0) {
7555
7558
  x(X), o == null || o(X), R();
7556
7559
  const f = X[0];
7557
- f && G(f.field);
7560
+ f && K(f.field);
7558
7561
  return;
7559
7562
  }
7560
7563
  _(!0);
@@ -7566,11 +7569,11 @@ const Tc = ue(function({
7566
7569
  _(!1);
7567
7570
  }
7568
7571
  },
7569
- [k, B, S, o, c, I, R, G]
7572
+ [k, B, S, o, c, I, R, K]
7570
7573
  );
7571
7574
  le(() => {
7572
- m && y.current.length > 0 && setTimeout(() => G(y.current[0]), 100);
7573
- }, [m, G]);
7575
+ m && y.current.length > 0 && setTimeout(() => K(y.current[0]), 100);
7576
+ }, [m, K]);
7574
7577
  const U = pe(
7575
7578
  () => ({
7576
7579
  values: I,
@@ -7578,7 +7581,7 @@ const Tc = ue(function({
7578
7581
  touched: z,
7579
7582
  setFieldValue: F,
7580
7583
  setFieldTouched: ne,
7581
- focusField: G,
7584
+ focusField: K,
7582
7585
  focusNext: O,
7583
7586
  focusPrev: Z,
7584
7587
  registerField: ee,
@@ -7590,7 +7593,7 @@ const Tc = ue(function({
7590
7593
  z,
7591
7594
  F,
7592
7595
  ne,
7593
- G,
7596
+ K,
7594
7597
  O,
7595
7598
  Z,
7596
7599
  ee,