@gemafajarramadhan/dynamic-ui 1.1.5 → 1.1.6

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.
@@ -245,7 +245,7 @@ async function $h(t, e) {
245
245
  boundary: c,
246
246
  rootBoundary: u,
247
247
  strategy: l
248
- })), D = d === "floating" ? {
248
+ })), A = d === "floating" ? {
249
249
  x: s,
250
250
  y: a,
251
251
  width: i.floating.width,
@@ -258,10 +258,10 @@ async function $h(t, e) {
258
258
  y: 1
259
259
  }, $ = Ea(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
260
260
  elements: r,
261
- rect: D,
261
+ rect: A,
262
262
  offsetParent: T,
263
263
  strategy: l
264
- }) : D);
264
+ }) : A);
265
265
  return {
266
266
  top: (v.top - $.top + y.top) / E.y,
267
267
  bottom: ($.bottom - v.bottom + y.bottom) / E.y,
@@ -288,13 +288,13 @@ const Ph = async (t, e, n) => {
288
288
  var m;
289
289
  const {
290
290
  name: v,
291
- fn: D
291
+ fn: A
292
292
  } = r[g], {
293
293
  x: T,
294
294
  y: E,
295
295
  data: $,
296
296
  reset: k
297
- } = await D({
297
+ } = await A({
298
298
  x: u,
299
299
  y: d,
300
300
  initialPlacement: s,
@@ -357,9 +357,9 @@ const Ph = async (t, e, n) => {
357
357
  } = Ws(t, e);
358
358
  if ((n = o.arrow) != null && n.alignmentOffset)
359
359
  return {};
360
- const v = kn(a), D = Zt(r), T = kn(r) === r, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), $ = f || (T || !m ? [Ba(r)] : kh(r)), k = y !== "none";
360
+ const v = kn(a), A = Zt(r), T = kn(r) === r, E = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), $ = f || (T || !m ? [Ba(r)] : kh(r)), k = y !== "none";
361
361
  !f && k && $.push(...Sh(r, m, y, E));
362
- const A = [r, ...$], w = await l.detectOverflow(e, g), _ = [];
362
+ const D = [r, ...$], w = await l.detectOverflow(e, g), _ = [];
363
363
  let P = ((s = o.flip) == null ? void 0 : s.overflows) || [];
364
364
  if (u && _.push(w[v]), d) {
365
365
  const G = wh(a, i, E);
@@ -370,10 +370,10 @@ const Ph = async (t, e, n) => {
370
370
  overflows: _
371
371
  }], !_.every((G) => G <= 0)) {
372
372
  var I, V;
373
- const G = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, se = A[G];
374
- if (se && (!(d === "alignment" ? D !== Zt(se) : !1) || // We leave the current main axis only if every placement on that axis
373
+ const G = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, se = D[G];
374
+ if (se && (!(d === "alignment" ? A !== Zt(se) : !1) || // We leave the current main axis only if every placement on that axis
375
375
  // overflows the main axis.
376
- P.every((Q) => Zt(Q.placement) === D ? Q.overflows[0] > 0 : !0)))
376
+ P.every((Q) => Zt(Q.placement) === A ? Q.overflows[0] > 0 : !0)))
377
377
  return {
378
378
  data: {
379
379
  index: G,
@@ -391,7 +391,7 @@ const Ph = async (t, e, n) => {
391
391
  const Y = (U = P.filter((Q) => {
392
392
  if (k) {
393
393
  const j = Zt(Q.placement);
394
- return j === D || // Create a bias to the `y` side axis due to horizontal
394
+ return j === A || // Create a bias to the `y` side axis due to horizontal
395
395
  // reading directions favoring greater width.
396
396
  j === "y";
397
397
  }
@@ -480,11 +480,11 @@ const Eh = function(t) {
480
480
  limiter: l = {
481
481
  fn: (v) => {
482
482
  let {
483
- x: D,
483
+ x: A,
484
484
  y: T
485
485
  } = v;
486
486
  return {
487
- x: D,
487
+ x: A,
488
488
  y: T
489
489
  };
490
490
  }
@@ -496,11 +496,11 @@ const Eh = function(t) {
496
496
  }, d = await o.detectOverflow(e, c), f = Zt(kn(a)), h = Mc(f);
497
497
  let y = u[h], m = u[f];
498
498
  if (i) {
499
- const v = h === "y" ? "top" : "left", D = h === "y" ? "bottom" : "right", T = y + d[v], E = y - d[D];
499
+ const v = h === "y" ? "top" : "left", A = h === "y" ? "bottom" : "right", T = y + d[v], E = y - d[A];
500
500
  y = tr(T, y, E);
501
501
  }
502
502
  if (r) {
503
- const v = f === "y" ? "top" : "left", D = f === "y" ? "bottom" : "right", T = m + d[v], E = m - d[D];
503
+ const v = f === "y" ? "top" : "left", A = f === "y" ? "bottom" : "right", T = m + d[v], E = m - d[A];
504
504
  m = tr(T, m, E);
505
505
  }
506
506
  const g = l.fn({
@@ -542,16 +542,16 @@ const Eh = function(t) {
542
542
  } = o.floating;
543
543
  let g, v;
544
544
  d === "top" || d === "bottom" ? (g = d, v = f === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = f === "end" ? "top" : "bottom");
545
- const D = m - u.top - u.bottom, T = y - u.left - u.right, E = as(m - u[g], D), $ = as(y - u[v], T), k = !e.middlewareData.shift;
546
- let A = E, w = $;
547
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (w = T), (s = e.middlewareData.shift) != null && s.enabled.y && (A = D), k && !f) {
545
+ const A = m - u.top - u.bottom, T = y - u.left - u.right, E = as(m - u[g], A), $ = as(y - u[v], T), k = !e.middlewareData.shift;
546
+ let D = E, w = $;
547
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (w = T), (s = e.middlewareData.shift) != null && s.enabled.y && (D = A), k && !f) {
548
548
  const P = vt(u.left, 0), I = vt(u.right, 0), V = vt(u.top, 0), U = vt(u.bottom, 0);
549
- h ? w = y - 2 * (P !== 0 || I !== 0 ? P + I : vt(u.left, u.right)) : A = m - 2 * (V !== 0 || U !== 0 ? V + U : vt(u.top, u.bottom));
549
+ h ? w = y - 2 * (P !== 0 || I !== 0 ? P + I : vt(u.left, u.right)) : D = m - 2 * (V !== 0 || U !== 0 ? V + U : vt(u.top, u.bottom));
550
550
  }
551
551
  await l({
552
552
  ...e,
553
553
  availableWidth: w,
554
- availableHeight: A
554
+ availableHeight: D
555
555
  });
556
556
  const _ = await i.getDimensions(r.floating);
557
557
  return y !== _.width || m !== _.height ? {
@@ -726,7 +726,7 @@ function Ln(t, e, n, s) {
726
726
  const f = xt(o), h = s && Pt(s) ? xt(s) : s;
727
727
  let y = f, m = zo(y);
728
728
  for (; m && s && h !== y; ) {
729
- const g = es(m), v = m.getBoundingClientRect(), D = Ot(m), T = v.left + (m.clientLeft + parseFloat(D.paddingLeft)) * g.x, E = v.top + (m.clientTop + parseFloat(D.paddingTop)) * g.y;
729
+ const g = es(m), v = m.getBoundingClientRect(), A = Ot(m), T = v.left + (m.clientLeft + parseFloat(A.paddingLeft)) * g.x, E = v.top + (m.clientTop + parseFloat(A.paddingTop)) * g.y;
730
730
  l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += T, c += E, y = xt(m), m = zo(y);
731
731
  }
732
732
  }
@@ -990,15 +990,15 @@ function rp(t, e) {
990
990
  };
991
991
  let E = !0;
992
992
  function $(k) {
993
- const A = k[0].intersectionRatio;
994
- if (A !== l) {
993
+ const D = k[0].intersectionRatio;
994
+ if (D !== l) {
995
995
  if (!E)
996
996
  return i();
997
- A ? i(!1, A) : s = setTimeout(() => {
997
+ D ? i(!1, D) : s = setTimeout(() => {
998
998
  i(!1, 1e-7);
999
999
  }, 1e3);
1000
1000
  }
1001
- A === 1 && !Ec(c, t.getBoundingClientRect()) && i(), E = !1;
1001
+ D === 1 && !Ec(c, t.getBoundingClientRect()) && i(), E = !1;
1002
1002
  }
1003
1003
  try {
1004
1004
  n = new IntersectionObserver($, {
@@ -1030,8 +1030,8 @@ function li(t, e, n, s) {
1030
1030
  const d = c && r ? rp(c, n) : null;
1031
1031
  let f = -1, h = null;
1032
1032
  i && (h = new ResizeObserver((v) => {
1033
- let [D] = v;
1034
- D && D.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1033
+ let [A] = v;
1034
+ A && A.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1035
1035
  var T;
1036
1036
  (T = h) == null || T.observe(e);
1037
1037
  })), n();
@@ -1044,8 +1044,8 @@ function li(t, e, n, s) {
1044
1044
  }
1045
1045
  return n(), () => {
1046
1046
  var v;
1047
- u.forEach((D) => {
1048
- a && D.removeEventListener("scroll", n), o && D.removeEventListener("resize", n);
1047
+ u.forEach((A) => {
1048
+ a && A.removeEventListener("scroll", n), o && A.removeEventListener("resize", n);
1049
1049
  }), d == null || d(), (v = h) == null || v.disconnect(), h = null, l && cancelAnimationFrame(y);
1050
1050
  };
1051
1051
  }
@@ -1085,28 +1085,28 @@ function ur(t, e) {
1085
1085
  function hi(t, e, n) {
1086
1086
  n === void 0 && (n = {});
1087
1087
  const s = n.whileElementsMounted, a = M(() => {
1088
- var A;
1089
- return (A = ps(n.open)) != null ? A : !0;
1088
+ var D;
1089
+ return (D = ps(n.open)) != null ? D : !0;
1090
1090
  }), o = M(() => ps(n.middleware)), i = M(() => {
1091
- var A;
1092
- return (A = ps(n.placement)) != null ? A : "bottom";
1091
+ var D;
1092
+ return (D = ps(n.placement)) != null ? D : "bottom";
1093
1093
  }), r = M(() => {
1094
- var A;
1095
- return (A = ps(n.strategy)) != null ? A : "absolute";
1094
+ var D;
1095
+ return (D = ps(n.strategy)) != null ? D : "absolute";
1096
1096
  }), l = M(() => {
1097
- var A;
1098
- return (A = ps(n.transform)) != null ? A : !0;
1097
+ var D;
1098
+ return (D = ps(n.transform)) != null ? D : !0;
1099
1099
  }), c = M(() => cr(t.value)), u = M(() => cr(e.value)), d = ee(0), f = ee(0), h = ee(r.value), y = ee(i.value), m = ic({}), g = ee(!1), v = M(() => {
1100
- const A = {
1100
+ const D = {
1101
1101
  position: h.value,
1102
1102
  left: "0",
1103
1103
  top: "0"
1104
1104
  };
1105
1105
  if (!u.value)
1106
- return A;
1106
+ return D;
1107
1107
  const w = ur(u.value, d.value), _ = ur(u.value, f.value);
1108
1108
  return l.value ? {
1109
- ...A,
1109
+ ...D,
1110
1110
  transform: "translate(" + w + "px, " + _ + "px)",
1111
1111
  ...Rc(u.value) >= 1.5 && {
1112
1112
  willChange: "transform"
@@ -1117,21 +1117,21 @@ function hi(t, e, n) {
1117
1117
  top: _ + "px"
1118
1118
  };
1119
1119
  });
1120
- let D;
1120
+ let A;
1121
1121
  function T() {
1122
1122
  if (c.value == null || u.value == null)
1123
1123
  return;
1124
- const A = a.value;
1124
+ const D = a.value;
1125
1125
  lp(c.value, u.value, {
1126
1126
  middleware: o.value,
1127
1127
  placement: i.value,
1128
1128
  strategy: r.value
1129
1129
  }).then((w) => {
1130
- d.value = w.x, f.value = w.y, h.value = w.strategy, y.value = w.placement, m.value = w.middlewareData, g.value = A !== !1;
1130
+ d.value = w.x, f.value = w.y, h.value = w.strategy, y.value = w.placement, m.value = w.middlewareData, g.value = D !== !1;
1131
1131
  });
1132
1132
  }
1133
1133
  function E() {
1134
- typeof D == "function" && (D(), D = void 0);
1134
+ typeof A == "function" && (A(), A = void 0);
1135
1135
  }
1136
1136
  function $() {
1137
1137
  if (E(), s === void 0) {
@@ -1139,7 +1139,7 @@ function hi(t, e, n) {
1139
1139
  return;
1140
1140
  }
1141
1141
  if (c.value != null && u.value != null) {
1142
- D = s(c.value, u.value, T);
1142
+ A = s(c.value, u.value, T);
1143
1143
  return;
1144
1144
  }
1145
1145
  }
@@ -1228,13 +1228,13 @@ const up = ["aria-busy"], dp = {
1228
1228
  if (q == null || q === "") return 0;
1229
1229
  const ue = typeof q == "number" ? q : Number.parseInt(String(q), 10);
1230
1230
  return Number.isFinite(ue) && ue > 0 ? ue : 0;
1231
- }), D = M(() => {
1231
+ }), A = M(() => {
1232
1232
  const q = a.rules;
1233
1233
  return Array.isArray(q) ? q : [];
1234
1234
  }), T = M(() => {
1235
1235
  const q = a.id || a.label;
1236
1236
  return q ? `app-autocomplete-${q}-${Math.random().toString(36).slice(2, 7)}` : void 0;
1237
- }), E = ee(n.modelValue), $ = ee([]), k = ee(!1), A = ee(!1), w = M(() => a.items), _ = M(() => {
1237
+ }), E = ee(n.modelValue), $ = ee([]), k = ee(!1), D = ee(!1), w = M(() => a.items), _ = M(() => {
1238
1238
  const q = G.value;
1239
1239
  return q.apiModule && q.apiAction || q.apiUrl || n.fetchItems ? $.value : w.value ?? [];
1240
1240
  }), P = M(
@@ -1335,9 +1335,9 @@ const up = ["aria-busy"], dp = {
1335
1335
  }
1336
1336
  return Ge;
1337
1337
  }), at = (q) => Array.isArray(q) ? q.length === 0 : q == null || q === "", Pe = (q) => {
1338
- if (J.value = null, d.value && at(q) && !D.value.length)
1338
+ if (J.value = null, d.value && at(q) && !A.value.length)
1339
1339
  return J.value = "This field is required", !1;
1340
- for (const ue of D.value) {
1340
+ for (const ue of A.value) {
1341
1341
  const we = ue(q);
1342
1342
  if (we === !1)
1343
1343
  return J.value = "Invalid value", !1;
@@ -1349,7 +1349,7 @@ const up = ["aria-busy"], dp = {
1349
1349
  if (u.value || f.value) return;
1350
1350
  j.value = !0, Z.value = De.value.length ? 0 : -1, R.value = Ce.value || "";
1351
1351
  const q = G.value, ue = q.apiModule && q.apiAction || q.apiUrl || n.fetchItems;
1352
- n.autoFetchOnOpen && ue && !A.value && (await Nt(), Z.value = De.value.length ? 0 : -1);
1352
+ n.autoFetchOnOpen && ue && !D.value && (await Nt(), Z.value = De.value.length ? 0 : -1);
1353
1353
  }, z = () => {
1354
1354
  j.value = !1, Z.value = -1, R.value = Ce.value || "";
1355
1355
  }, te = (q) => {
@@ -1357,7 +1357,7 @@ const up = ["aria-busy"], dp = {
1357
1357
  let we = ue;
1358
1358
  Array.isArray(E.value) && (we = [ue]), E.value = we, s("update:modelValue", we), J.value = null, Pe(we), R.value = fe(q), z();
1359
1359
  }, pe = () => {
1360
- $.value = [], A.value = !1, E.value = Array.isArray(E.value) ? [] : null, s("update:modelValue", E.value), R.value = "", J.value = null;
1360
+ $.value = [], D.value = !1, E.value = Array.isArray(E.value) ? [] : null, s("update:modelValue", E.value), R.value = "", J.value = null;
1361
1361
  }, Me = () => {
1362
1362
  r.value = !0, pe(), z(), setTimeout(() => {
1363
1363
  r.value = !1;
@@ -1367,7 +1367,7 @@ const up = ["aria-busy"], dp = {
1367
1367
  const ue = q.target.value;
1368
1368
  R.value = ue, J.value && (J.value = null), j.value || (j.value = !0), Z.value = De.value.length ? 0 : -1;
1369
1369
  const we = G.value.apiModule && G.value.apiAction || G.value.apiUrl || n.fetchItems;
1370
- n.autoFetchOnOpen && we && !I.value && !A.value && Nt();
1370
+ n.autoFetchOnOpen && we && !I.value && !D.value && Nt();
1371
1371
  }, kt = (q) => {
1372
1372
  var we;
1373
1373
  if (u.value || f.value) return;
@@ -1434,9 +1434,9 @@ const up = ["aria-busy"], dp = {
1434
1434
  const Se = (me == null ? void 0 : me.data) ?? me;
1435
1435
  we = (Se == null ? void 0 : Se.data) ?? Se;
1436
1436
  }
1437
- $.value = Array.isArray(we) ? we : [], A.value = !0;
1437
+ $.value = Array.isArray(we) ? we : [], D.value = !0;
1438
1438
  } catch (we) {
1439
- console.error("[DCodeAutoComplete][fetchOptions] ERROR:", we), J.value = `[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(we == null ? void 0 : we.message) || (we == null ? void 0 : we.toString()) || "Failed to load options"}`, $.value = [], A.value = !0;
1439
+ console.error("[DCodeAutoComplete][fetchOptions] ERROR:", we), J.value = `[DCodeAutoComplete][fetchOptions] ERROR: Error: ${(we == null ? void 0 : we.message) || (we == null ? void 0 : we.toString()) || "Failed to load options"}`, $.value = [], D.value = !0;
1440
1440
  } finally {
1441
1441
  k.value = !1;
1442
1442
  }
@@ -1460,7 +1460,7 @@ const up = ["aria-busy"], dp = {
1460
1460
  ), Be(
1461
1461
  () => n.modelValue,
1462
1462
  (q, ue) => {
1463
- E.value = q, !r.value && (q == null || q === "") && ue != null && n.apiModule && n.apiAction && ($.value = [], A.value = !1), R.value = Ce.value || "";
1463
+ E.value = q, !r.value && (q == null || q === "") && ue != null && n.apiModule && n.apiAction && ($.value = [], D.value = !1), R.value = Ce.value || "";
1464
1464
  },
1465
1465
  { immediate: !0 }
1466
1466
  );
@@ -1692,7 +1692,7 @@ const up = ["aria-busy"], dp = {
1692
1692
  const n = t, s = e, a = St(), o = ee(), i = ee(), r = ee(), l = ee(), c = ee(), u = M(() => {
1693
1693
  const Z = n.label || n.placeholder;
1694
1694
  return Z ? `app-infinite-autocomplete-${Z}-${Math.random().toString(36).slice(2, 7)}` : void 0;
1695
- }), d = ee(""), f = ee([]), h = ee(!1), y = ee(!1), m = ee(-1), g = ee(1), v = ee(!0), D = ee(0), T = ee(), { floatingStyles: E } = hi(l, c, {
1695
+ }), d = ee(""), f = ee([]), h = ee(!1), y = ee(!1), m = ee(-1), g = ee(1), v = ee(!0), A = ee(0), T = ee(), { floatingStyles: E } = hi(l, c, {
1696
1696
  placement: "bottom-start",
1697
1697
  whileElementsMounted: li,
1698
1698
  middleware: [
@@ -1732,7 +1732,7 @@ const up = ["aria-busy"], dp = {
1732
1732
  }
1733
1733
  }
1734
1734
  return "";
1735
- }), A = () => {
1735
+ }), D = () => {
1736
1736
  y.value = !0;
1737
1737
  }, w = () => {
1738
1738
  y.value = !1;
@@ -1792,13 +1792,13 @@ const up = ["aria-busy"], dp = {
1792
1792
  search: d.value,
1793
1793
  ...n.apiParams
1794
1794
  }, Pe = await ke.apiUrl(`/${Ce}/${De}`, "GET", at);
1795
- fe = Pe.data || Pe.items || Pe || [], D.value = Pe.total || Pe.totalItems || fe.length;
1795
+ fe = Pe.data || Pe.items || Pe || [], A.value = Pe.total || Pe.totalItems || fe.length;
1796
1796
  }
1797
1797
  Z ? (f.value = fe, g.value = 1) : (f.value.push(...fe), g.value++), v.value = fe.length >= n.pageSize, v.value || s("end-of-results"), s("load-more", {
1798
1798
  items: fe,
1799
1799
  page: g.value,
1800
1800
  hasMore: v.value,
1801
- total: D.value
1801
+ total: A.value
1802
1802
  });
1803
1803
  } catch (fe) {
1804
1804
  console.error("Error fetching items:", fe), s("error", fe);
@@ -1888,7 +1888,7 @@ const up = ["aria-busy"], dp = {
1888
1888
  type: "button",
1889
1889
  class: "shrink-0 rounded-md px-1 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",
1890
1890
  disabled: t.disabled,
1891
- onClick: J[1] || (J[1] = (re) => y.value ? w() : A()),
1891
+ onClick: J[1] || (J[1] = (re) => y.value ? w() : D()),
1892
1892
  "aria-label": "Toggle"
1893
1893
  }, [
1894
1894
  F(b(ds), {
@@ -2207,14 +2207,14 @@ const Qp = (t, e) => {
2207
2207
  }
2208
2208
  g = !1;
2209
2209
  }
2210
- const D = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), T = h ? D + Io : D, E = T + v;
2210
+ const A = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), T = h ? A + Io : A, E = T + v;
2211
2211
  if (i.indexOf(E) > -1)
2212
2212
  continue;
2213
2213
  i.push(E);
2214
2214
  const $ = a(v, g);
2215
2215
  for (let k = 0; k < $.length; ++k) {
2216
- const A = $[k];
2217
- i.push(T + A);
2216
+ const D = $[k];
2217
+ i.push(T + D);
2218
2218
  }
2219
2219
  l = u + (l.length > 0 ? " " + l : l);
2220
2220
  }
@@ -2259,7 +2259,7 @@ const Qp = (t, e) => {
2259
2259
  const s = Hc.exec(t);
2260
2260
  return s ? s[1] ? e(s[1]) : n : !1;
2261
2261
  }, qc = (t) => t === "position" || t === "percentage", Yc = (t) => t === "image" || t === "url", Gc = (t) => t === "length" || t === "size" || t === "bg-size", Kc = (t) => t === "length", Fm = (t) => t === "number", Xc = (t) => t === "family-name", Jc = (t) => t === "number" || t === "weight", Qc = (t) => t === "shadow", Lm = () => {
2262
- const t = tt("color"), e = tt("font"), n = tt("text"), s = tt("font-weight"), a = tt("tracking"), o = tt("leading"), i = tt("breakpoint"), r = tt("container"), l = tt("spacing"), c = tt("radius"), u = tt("shadow"), d = tt("inset-shadow"), f = tt("text-shadow"), h = tt("drop-shadow"), y = tt("blur"), m = tt("perspective"), g = tt("aspect"), v = tt("ease"), D = tt("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
2262
+ const t = tt("color"), e = tt("font"), n = tt("text"), s = tt("font-weight"), a = tt("tracking"), o = tt("leading"), i = tt("breakpoint"), r = tt("container"), l = tt("spacing"), c = tt("radius"), u = tt("shadow"), d = tt("inset-shadow"), f = tt("text-shadow"), h = tt("drop-shadow"), y = tt("blur"), m = tt("perspective"), g = tt("aspect"), v = tt("ease"), A = tt("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
2263
2263
  "center",
2264
2264
  "top",
2265
2265
  "bottom",
@@ -2277,7 +2277,7 @@ const Qp = (t, e) => {
2277
2277
  "bottom-left",
2278
2278
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
2279
2279
  "left-bottom"
2280
- ], $ = () => [...E(), ve, be], k = () => ["auto", "hidden", "clip", "visible", "scroll"], A = () => ["auto", "contain", "none"], w = () => [ve, be, l], _ = () => [dn, "full", "auto", ...w()], P = () => [fn, "none", "subgrid", ve, be], I = () => ["auto", {
2280
+ ], $ = () => [...E(), ve, be], k = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], w = () => [ve, be, l], _ = () => [dn, "full", "auto", ...w()], P = () => [fn, "none", "subgrid", ve, be], I = () => ["auto", {
2281
2281
  span: ["full", fn, ve, be]
2282
2282
  }, fn, ve, be], V = () => [fn, "auto", ve, be], U = () => ["auto", "min", "max", "fr", ve, be], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], se = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], N = () => ["auto", ...w()], Y = () => [dn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...w()], Q = () => [dn, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...w()], j = () => [dn, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...w()], R = () => [t, ve, be], Z = () => [...E(), gr, mr, {
2283
2283
  position: [ve, be]
@@ -2452,21 +2452,21 @@ const Qp = (t, e) => {
2452
2452
  * @see https://tailwindcss.com/docs/overscroll-behavior
2453
2453
  */
2454
2454
  overscroll: [{
2455
- overscroll: A()
2455
+ overscroll: D()
2456
2456
  }],
2457
2457
  /**
2458
2458
  * Overscroll Behavior X
2459
2459
  * @see https://tailwindcss.com/docs/overscroll-behavior
2460
2460
  */
2461
2461
  "overscroll-x": [{
2462
- "overscroll-x": A()
2462
+ "overscroll-x": D()
2463
2463
  }],
2464
2464
  /**
2465
2465
  * Overscroll Behavior Y
2466
2466
  * @see https://tailwindcss.com/docs/overscroll-behavior
2467
2467
  */
2468
2468
  "overscroll-y": [{
2469
- "overscroll-y": A()
2469
+ "overscroll-y": D()
2470
2470
  }],
2471
2471
  /**
2472
2472
  * Position
@@ -4347,7 +4347,7 @@ const Qp = (t, e) => {
4347
4347
  * @see https://tailwindcss.com/docs/animation
4348
4348
  */
4349
4349
  animate: [{
4350
- animate: ["none", D, ve, be]
4350
+ animate: ["none", A, ve, be]
4351
4351
  }],
4352
4352
  // ------------------
4353
4353
  // --- Transforms ---
@@ -5550,7 +5550,7 @@ const Ym = /* @__PURE__ */ jm(qm), wr = (t) => typeof t == "boolean" ? `${t}` :
5550
5550
  /\bhover:bg-(?!gradient)([a-z-]+)(?:-(\d{2,3}))?\b/u
5551
5551
  );
5552
5552
  return R ? R[0] : null;
5553
- }), g = M(() => !!y.value), v = M(() => /\bborder-/.test(c.value ?? "")), D = M(() => /\bhover:/.test(c.value ?? "")), T = M(() => {
5553
+ }), g = M(() => !!y.value), v = M(() => /\bborder-/.test(c.value ?? "")), A = M(() => /\bhover:/.test(c.value ?? "")), T = M(() => {
5554
5554
  const j = c.value ?? "";
5555
5555
  return o.value !== "outline" ? j : j.replaceAll(/\bbg-(?!gradient)[^\s]+\b/gu, "").replaceAll(/\bhover:bg-(?!gradient)[^\s]+\b/gu, "").replaceAll(/\s+/gu, " ").trim();
5556
5556
  }), E = ee(null), $ = (j) => {
@@ -5570,7 +5570,7 @@ const Ym = /* @__PURE__ */ jm(qm), wr = (t) => typeof t == "boolean" ? `${t}` :
5570
5570
  return `rgba(${J(Z.r * (1 - R))}, ${J(Z.g * (1 - R))}, ${J(
5571
5571
  Z.b * (1 - R)
5572
5572
  )}, ${Z.a})`;
5573
- }, A = (j) => {
5573
+ }, D = (j) => {
5574
5574
  if (globalThis.window === void 0) return null;
5575
5575
  const R = document.createElement("div");
5576
5576
  R.className = j, R.style.position = "absolute", R.style.visibility = "hidden", R.style.pointerEvents = "none", R.style.width = "1px", R.style.height = "1px", document.body.appendChild(R);
@@ -5599,7 +5599,7 @@ const Ym = /* @__PURE__ */ jm(qm), wr = (t) => typeof t == "boolean" ? `${t}` :
5599
5599
  E.value = null;
5600
5600
  return;
5601
5601
  }
5602
- const R = I(j), Z = R == null ? void 0 : R.colorName, J = (R == null ? void 0 : R.shade) ?? null, re = (Z ? P(Z, J) : null) ?? A(j);
5602
+ const R = I(j), Z = R == null ? void 0 : R.colorName, J = (R == null ? void 0 : R.shade) ?? null, re = (Z ? P(Z, J) : null) ?? D(j);
5603
5603
  if (!re) {
5604
5604
  E.value = null;
5605
5605
  return;
@@ -5625,11 +5625,11 @@ const Ym = /* @__PURE__ */ jm(qm), wr = (t) => typeof t == "boolean" ? `${t}` :
5625
5625
  });
5626
5626
  const U = M(() => {
5627
5627
  const j = /\bdark:bg-/.test(c.value ?? "");
5628
- return !g.value || o.value === "outline" || j ? "" : E.value ? "dcode-btn--fill dcode-btn--fill-hover" : D.value ? "" : "hover:brightness-90";
5628
+ return !g.value || o.value === "outline" || j ? "" : E.value ? "dcode-btn--fill dcode-btn--fill-hover" : A.value ? "" : "hover:brightness-90";
5629
5629
  }), G = M(() => {
5630
5630
  if (!g.value || o.value !== "outline") return "";
5631
5631
  const j = ["dcode-btn--outline", "dcode-btn--outline-hover"];
5632
- return v.value || j.push("border"), !E.value && !D.value && j.push("hover:brightness-90"), j.join(" ");
5632
+ return v.value || j.push("border"), !E.value && !A.value && j.push("hover:brightness-90"), j.join(" ");
5633
5633
  }), se = M(() => E.value ?? void 0), N = {
5634
5634
  primary: {
5635
5635
  bg: "bg-blue-600",
@@ -7688,10 +7688,10 @@ function Su(t, e, n) {
7688
7688
  t
7689
7689
  ];
7690
7690
  const { property: s, start: a, end: o } = n, i = e.length, { compare: r, between: l, normalize: c } = Mu(s), { start: u, end: d, loop: f, style: h } = U0(t, e, n), y = [];
7691
- let m = !1, g = null, v, D, T;
7692
- const E = () => l(a, T, v) && r(a, T) !== 0, $ = () => r(o, v) === 0 || l(o, T, v), k = () => m || E(), A = () => !m || $();
7691
+ let m = !1, g = null, v, A, T;
7692
+ const E = () => l(a, T, v) && r(a, T) !== 0, $ = () => r(o, v) === 0 || l(o, T, v), k = () => m || E(), D = () => !m || $();
7693
7693
  for (let w = u, _ = u; w <= d; ++w)
7694
- D = e[w % i], !D.skip && (v = c(D[s]), v !== T && (m = l(v, a, o), g === null && k() && (g = r(v, a) === 0 ? w : _), g !== null && A() && (y.push(Nr({
7694
+ A = e[w % i], !A.skip && (v = c(A[s]), v !== T && (m = l(v, a, o), g === null && k() && (g = r(v, a) === 0 ? w : _), g !== null && D() && (y.push(Nr({
7695
7695
  start: g,
7696
7696
  end: w,
7697
7697
  loop: f,
@@ -7768,12 +7768,12 @@ function K0(t, e, n, s) {
7768
7768
  const a = t._chart.getContext(), o = Ur(t.options), { _datasetIndex: i, options: { spanGaps: r } } = t, l = n.length, c = [];
7769
7769
  let u = o, d = e[0].start, f = d;
7770
7770
  function h(y, m, g, v) {
7771
- const D = r ? -1 : 1;
7771
+ const A = r ? -1 : 1;
7772
7772
  if (y !== m) {
7773
7773
  for (y += l; n[y % l].skip; )
7774
- y -= D;
7774
+ y -= A;
7775
7775
  for (; n[m % l].skip; )
7776
- m += D;
7776
+ m += A;
7777
7777
  y % l !== m % l && (c.push({
7778
7778
  start: y % l,
7779
7779
  end: m % l,
@@ -8188,8 +8188,8 @@ function Xr(t, e) {
8188
8188
  for (let h = 0; h < d; ++h) {
8189
8189
  const y = e[h], { [l]: m, [c]: g } = y, v = y._stacks || (y._stacks = {});
8190
8190
  f = v[c] = lb(a, u, m), f[r] = g, f._top = Kr(f, i, !0, s.type), f._bottom = Kr(f, i, !1, s.type);
8191
- const D = f._visualValues || (f._visualValues = {});
8192
- D[r] = g;
8191
+ const A = f._visualValues || (f._visualValues = {});
8192
+ A[r] = g;
8193
8193
  }
8194
8194
  }
8195
8195
  function ko(t, e) {
@@ -8747,7 +8747,7 @@ class ka extends In {
8747
8747
  const y = this.getParsed(h), m = o || Fe(y[r.axis]) ? {
8748
8748
  base: l,
8749
8749
  head: l
8750
- } : this._calculateBarValuePixels(h), g = this._calculateBarIndexPixels(h, u), v = (y._stacks || {})[r.axis], D = {
8750
+ } : this._calculateBarValuePixels(h), g = this._calculateBarIndexPixels(h, u), v = (y._stacks || {})[r.axis], A = {
8751
8751
  horizontal: c,
8752
8752
  base: m.base,
8753
8753
  enableBorderRadius: !v || Co(y._custom) || i === v._top || i === v._bottom,
@@ -8756,9 +8756,9 @@ class ka extends In {
8756
8756
  height: c ? g.size : Math.abs(m.size),
8757
8757
  width: c ? Math.abs(m.size) : g.size
8758
8758
  };
8759
- f && (D.options = d || this.resolveDataElementOptions(h, e[h].active ? "active" : a));
8760
- const T = D.options || e[h].options;
8761
- vb(D, T, v, i), wb(D, T, u.ratio), this.updateElement(e[h], h, D, a);
8759
+ f && (A.options = d || this.resolveDataElementOptions(h, e[h].active ? "active" : a));
8760
+ const T = A.options || e[h].options;
8761
+ vb(A, T, v, i), wb(A, T, u.ratio), this.updateElement(e[h], h, A, a);
8762
8762
  }
8763
8763
  }
8764
8764
  _getStacks(e, n) {
@@ -8817,12 +8817,12 @@ class ka extends In {
8817
8817
  let v = n.getPixelForValue(g);
8818
8818
  if (this.chart.getDataVisibility(e) ? y = n.getPixelForValue(f + h) : y = v, m = y - v, Math.abs(m) < i) {
8819
8819
  m = bb(m, n, r) * i, d === r && (v -= m / 2);
8820
- const D = n.getPixelForDecimal(0), T = n.getPixelForDecimal(1), E = Math.min(D, T), $ = Math.max(D, T);
8820
+ const A = n.getPixelForDecimal(0), T = n.getPixelForDecimal(1), E = Math.min(A, T), $ = Math.max(A, T);
8821
8821
  v = Math.max(Math.min(v, $), E), y = v + m, s && !u && (l._stacks[n.axis]._visualValues[a] = n.getValueForPixel(y) - n.getValueForPixel(v));
8822
8822
  }
8823
8823
  if (v === n.getPixelForValue(r)) {
8824
- const D = Vt(m) * n.getLineWidthForValue(r) / 2;
8825
- v += D, m -= D;
8824
+ const A = Vt(m) * n.getLineWidthForValue(r) / 2;
8825
+ v += A, m -= A;
8826
8826
  }
8827
8827
  return {
8828
8828
  size: m,
@@ -8890,8 +8890,8 @@ ye(ka, "id", "bar"), ye(ka, "defaults", {
8890
8890
  function kb(t, e, n) {
8891
8891
  let s = 1, a = 1, o = 0, i = 0;
8892
8892
  if (e < Ye) {
8893
- const r = t, l = r + e, c = Math.cos(r), u = Math.sin(r), d = Math.cos(l), f = Math.sin(l), h = (T, E, $) => zs(T, r, l, !0) ? 1 : Math.max(E, E * n, $, $ * n), y = (T, E, $) => zs(T, r, l, !0) ? -1 : Math.min(E, E * n, $, $ * n), m = h(0, c, d), g = h(nt, u, f), v = y(je, c, d), D = y(je + nt, u, f);
8894
- s = (m - v) / 2, a = (g - D) / 2, o = -(m + v) / 2, i = -(g + D) / 2;
8893
+ const r = t, l = r + e, c = Math.cos(r), u = Math.sin(r), d = Math.cos(l), f = Math.sin(l), h = (T, E, $) => zs(T, r, l, !0) ? 1 : Math.max(E, E * n, $, $ * n), y = (T, E, $) => zs(T, r, l, !0) ? -1 : Math.min(E, E * n, $, $ * n), m = h(0, c, d), g = h(nt, u, f), v = y(je, c, d), A = y(je + nt, u, f);
8894
+ s = (m - v) / 2, a = (g - A) / 2, o = -(m + v) / 2, i = -(g + A) / 2;
8895
8895
  }
8896
8896
  return {
8897
8897
  ratioX: s,
@@ -8940,7 +8940,7 @@ class Qn extends In {
8940
8940
  };
8941
8941
  }
8942
8942
  update(e) {
8943
- const n = this.chart, { chartArea: s } = n, a = this._cachedMeta, o = a.data, i = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - i) / 2, 0), l = Math.min(Pg(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: y, offsetY: m } = kb(d, u, l), g = (s.width - i) / f, v = (s.height - i) / h, D = Math.max(Math.min(g, v) / 2, 0), T = ru(this.options.radius, D), E = Math.max(T * l, 0), $ = (T - E) / this._getVisibleDatasetWeightTotal();
8943
+ const n = this.chart, { chartArea: s } = n, a = this._cachedMeta, o = a.data, i = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - i) / 2, 0), l = Math.min(Pg(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: d } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: y, offsetY: m } = kb(d, u, l), g = (s.width - i) / f, v = (s.height - i) / h, A = Math.max(Math.min(g, v) / 2, 0), T = ru(this.options.radius, A), E = Math.max(T * l, 0), $ = (T - E) / this._getVisibleDatasetWeightTotal();
8944
8944
  this.offsetX = y * T, this.offsetY = m * T, a.total = this.calculateTotal(), this.outerRadius = T - $ * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - $ * c, 0), this.updateElements(o, 0, o.length, e);
8945
8945
  }
8946
8946
  _circumference(e, n) {
@@ -8949,11 +8949,11 @@ class Qn extends In {
8949
8949
  }
8950
8950
  updateElements(e, n, s, a) {
8951
8951
  const o = a === "reset", i = this.chart, r = i.chartArea, c = i.options.animation, u = (r.left + r.right) / 2, d = (r.top + r.bottom) / 2, f = o && c.animateScale, h = f ? 0 : this.innerRadius, y = f ? 0 : this.outerRadius, { sharedOptions: m, includeOptions: g } = this._getSharedOptions(n, a);
8952
- let v = this._getRotation(), D;
8953
- for (D = 0; D < n; ++D)
8954
- v += this._circumference(D, o);
8955
- for (D = n; D < n + s; ++D) {
8956
- const T = this._circumference(D, o), E = e[D], $ = {
8952
+ let v = this._getRotation(), A;
8953
+ for (A = 0; A < n; ++A)
8954
+ v += this._circumference(A, o);
8955
+ for (A = n; A < n + s; ++A) {
8956
+ const T = this._circumference(A, o), E = e[A], $ = {
8957
8957
  x: u + this.offsetX,
8958
8958
  y: d + this.offsetY,
8959
8959
  startAngle: v,
@@ -8962,7 +8962,7 @@ class Qn extends In {
8962
8962
  outerRadius: y,
8963
8963
  innerRadius: h
8964
8964
  };
8965
- g && ($.options = m || this.resolveDataElementOptions(D, E.active ? "active" : a)), v += T, this.updateElement(E, D, $, a);
8965
+ g && ($.options = m || this.resolveDataElementOptions(A, E.active ? "active" : a)), v += T, this.updateElement(E, A, $, a);
8966
8966
  }
8967
8967
  }
8968
8968
  calculateTotal() {
@@ -9104,16 +9104,16 @@ class _a extends In {
9104
9104
  }, e), this.updateElements(a, r, l, e);
9105
9105
  }
9106
9106
  updateElements(e, n, s, a) {
9107
- const o = a === "reset", { iScale: i, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, a), f = i.axis, h = r.axis, { spanGaps: y, segment: m } = this.options, g = Rs(y) ? y : Number.POSITIVE_INFINITY, v = this.chart._animationsDisabled || o || a === "none", D = n + s, T = e.length;
9107
+ const o = a === "reset", { iScale: i, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(n, a), f = i.axis, h = r.axis, { spanGaps: y, segment: m } = this.options, g = Rs(y) ? y : Number.POSITIVE_INFINITY, v = this.chart._animationsDisabled || o || a === "none", A = n + s, T = e.length;
9108
9108
  let E = n > 0 && this.getParsed(n - 1);
9109
9109
  for (let $ = 0; $ < T; ++$) {
9110
- const k = e[$], A = v ? k : {};
9111
- if ($ < n || $ >= D) {
9112
- A.skip = !0;
9110
+ const k = e[$], D = v ? k : {};
9111
+ if ($ < n || $ >= A) {
9112
+ D.skip = !0;
9113
9113
  continue;
9114
9114
  }
9115
- const w = this.getParsed($), _ = Fe(w[h]), P = A[f] = i.getPixelForValue(w[f], $), I = A[h] = o || _ ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, w, l) : w[h], $);
9116
- A.skip = isNaN(P) || isNaN(I) || _, A.stop = $ > 0 && Math.abs(w[f] - E[f]) > g, m && (A.parsed = w, A.raw = c.data[$]), d && (A.options = u || this.resolveDataElementOptions($, k.active ? "active" : a)), v || this.updateElement(k, $, A, a), E = w;
9115
+ const w = this.getParsed($), _ = Fe(w[h]), P = D[f] = i.getPixelForValue(w[f], $), I = D[h] = o || _ ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, w, l) : w[h], $);
9116
+ D.skip = isNaN(P) || isNaN(I) || _, D.stop = $ > 0 && Math.abs(w[f] - E[f]) > g, m && (D.parsed = w, D.raw = c.data[$]), d && (D.options = u || this.resolveDataElementOptions($, k.active ? "active" : a)), v || this.updateElement(k, $, D, a), E = w;
9117
9117
  }
9118
9118
  }
9119
9119
  getMaxOverflow() {
@@ -9937,14 +9937,14 @@ function ly(t, e, n, s) {
9937
9937
  const m = i - a, g = r - o;
9938
9938
  if (t.isHorizontal()) {
9939
9939
  if (h = lt(s, o, r), Re(n)) {
9940
- const v = Object.keys(n)[0], D = n[v];
9941
- y = u[v].getPixelForValue(D) + m - e;
9940
+ const v = Object.keys(n)[0], A = n[v];
9941
+ y = u[v].getPixelForValue(A) + m - e;
9942
9942
  } else n === "center" ? y = (c.bottom + c.top) / 2 + m - e : y = rl(t, n, e);
9943
9943
  f = r - o;
9944
9944
  } else {
9945
9945
  if (Re(n)) {
9946
- const v = Object.keys(n)[0], D = n[v];
9947
- h = u[v].getPixelForValue(D) - g + e;
9946
+ const v = Object.keys(n)[0], A = n[v];
9947
+ h = u[v].getPixelForValue(A) - g + e;
9948
9948
  } else n === "center" ? h = (c.left + c.right) / 2 - g + e : h = rl(t, n, e);
9949
9949
  y = lt(s, i, a), d = n === "left" ? -nt : nt;
9950
9950
  }
@@ -10187,20 +10187,20 @@ class fs extends ln {
10187
10187
  }
10188
10188
  _computeLabelSizes(e, n, s) {
10189
10189
  const { ctx: a, _longestTextCache: o } = this, i = [], r = [], l = Math.floor(n / ll(n, s));
10190
- let c = 0, u = 0, d, f, h, y, m, g, v, D, T, E, $;
10190
+ let c = 0, u = 0, d, f, h, y, m, g, v, A, T, E, $;
10191
10191
  for (d = 0; d < n; d += l) {
10192
10192
  if (y = e[d].label, m = this._resolveTickFontOptions(d), a.font = g = m.string, v = o[g] = o[g] || {
10193
10193
  data: {},
10194
10194
  gc: []
10195
- }, D = m.lineHeight, T = E = 0, !Fe(y) && !Ze(y))
10196
- T = Ir(a, v.data, v.gc, T, y), E = D;
10195
+ }, A = m.lineHeight, T = E = 0, !Fe(y) && !Ze(y))
10196
+ T = Ir(a, v.data, v.gc, T, y), E = A;
10197
10197
  else if (Ze(y))
10198
10198
  for (f = 0, h = y.length; f < h; ++f)
10199
- $ = y[f], !Fe($) && !Ze($) && (T = Ir(a, v.data, v.gc, T, $), E += D);
10199
+ $ = y[f], !Fe($) && !Ze($) && (T = Ir(a, v.data, v.gc, T, $), E += A);
10200
10200
  i.push(T), r.push(E), c = Math.max(T, c), u = Math.max(E, u);
10201
10201
  }
10202
10202
  ay(o, n);
10203
- const k = i.indexOf(c), A = r.indexOf(u), w = (_) => ({
10203
+ const k = i.indexOf(c), D = r.indexOf(u), w = (_) => ({
10204
10204
  width: i[_] || 0,
10205
10205
  height: r[_] || 0
10206
10206
  });
@@ -10208,7 +10208,7 @@ class fs extends ln {
10208
10208
  first: w(0),
10209
10209
  last: w(n - 1),
10210
10210
  widest: w(k),
10211
- highest: w(A),
10211
+ highest: w(D),
10212
10212
  widths: i,
10213
10213
  heights: r
10214
10214
  };
@@ -10261,38 +10261,38 @@ class fs extends ln {
10261
10261
  const n = this.axis, s = this.chart, a = this.options, { grid: o, position: i, border: r } = a, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), f = vs(o), h = [], y = r.setContext(this.getContext()), m = y.display ? y.width : 0, g = m / 2, v = function(N) {
10262
10262
  return Pn(s, N, m);
10263
10263
  };
10264
- let D, T, E, $, k, A, w, _, P, I, V, U;
10264
+ let A, T, E, $, k, D, w, _, P, I, V, U;
10265
10265
  if (i === "top")
10266
- D = v(this.bottom), A = this.bottom - f, _ = D - g, I = v(e.top) + g, U = e.bottom;
10266
+ A = v(this.bottom), D = this.bottom - f, _ = A - g, I = v(e.top) + g, U = e.bottom;
10267
10267
  else if (i === "bottom")
10268
- D = v(this.top), I = e.top, U = v(e.bottom) - g, A = D + g, _ = this.top + f;
10268
+ A = v(this.top), I = e.top, U = v(e.bottom) - g, D = A + g, _ = this.top + f;
10269
10269
  else if (i === "left")
10270
- D = v(this.right), k = this.right - f, w = D - g, P = v(e.left) + g, V = e.right;
10270
+ A = v(this.right), k = this.right - f, w = A - g, P = v(e.left) + g, V = e.right;
10271
10271
  else if (i === "right")
10272
- D = v(this.left), P = e.left, V = v(e.right) - g, k = D + g, w = this.left + f;
10272
+ A = v(this.left), P = e.left, V = v(e.right) - g, k = A + g, w = this.left + f;
10273
10273
  else if (n === "x") {
10274
10274
  if (i === "center")
10275
- D = v((e.top + e.bottom) / 2 + 0.5);
10275
+ A = v((e.top + e.bottom) / 2 + 0.5);
10276
10276
  else if (Re(i)) {
10277
10277
  const N = Object.keys(i)[0], Y = i[N];
10278
- D = v(this.chart.scales[N].getPixelForValue(Y));
10278
+ A = v(this.chart.scales[N].getPixelForValue(Y));
10279
10279
  }
10280
- I = e.top, U = e.bottom, A = D + g, _ = A + f;
10280
+ I = e.top, U = e.bottom, D = A + g, _ = D + f;
10281
10281
  } else if (n === "y") {
10282
10282
  if (i === "center")
10283
- D = v((e.left + e.right) / 2);
10283
+ A = v((e.left + e.right) / 2);
10284
10284
  else if (Re(i)) {
10285
10285
  const N = Object.keys(i)[0], Y = i[N];
10286
- D = v(this.chart.scales[N].getPixelForValue(Y));
10286
+ A = v(this.chart.scales[N].getPixelForValue(Y));
10287
10287
  }
10288
- k = D - g, w = k - f, P = e.left, V = e.right;
10288
+ k = A - g, w = k - f, P = e.left, V = e.right;
10289
10289
  }
10290
10290
  const G = Oe(a.ticks.maxTicksLimit, d), se = Math.max(1, Math.ceil(d / G));
10291
10291
  for (T = 0; T < d; T += se) {
10292
10292
  const N = this.getContext(T), Y = o.setContext(N), Q = r.setContext(N), j = Y.lineWidth, R = Y.color, Z = Q.dash || [], J = Q.dashOffset, re = Y.tickWidth, fe = Y.tickColor, ke = Y.tickBorderDash || [], Ce = Y.tickBorderDashOffset;
10293
- E = sy(this, T, l), E !== void 0 && ($ = Pn(s, E, j), c ? k = w = P = V = $ : A = _ = I = U = $, h.push({
10293
+ E = sy(this, T, l), E !== void 0 && ($ = Pn(s, E, j), c ? k = w = P = V = $ : D = _ = I = U = $, h.push({
10294
10294
  tx1: k,
10295
- ty1: A,
10295
+ ty1: D,
10296
10296
  tx2: w,
10297
10297
  ty2: _,
10298
10298
  x1: P,
@@ -10309,21 +10309,21 @@ class fs extends ln {
10309
10309
  tickBorderDashOffset: Ce
10310
10310
  }));
10311
10311
  }
10312
- return this._ticksLength = d, this._borderValue = D, h;
10312
+ return this._ticksLength = d, this._borderValue = A, h;
10313
10313
  }
10314
10314
  _computeLabelItems(e) {
10315
10315
  const n = this.axis, s = this.options, { position: a, ticks: o } = s, i = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = o, f = vs(s.grid), h = f + u, y = d ? -u : h, m = -tn(this.labelRotation), g = [];
10316
- let v, D, T, E, $, k, A, w, _, P, I, V, U = "middle";
10316
+ let v, A, T, E, $, k, D, w, _, P, I, V, U = "middle";
10317
10317
  if (a === "top")
10318
- k = this.bottom - y, A = this._getXAxisLabelAlignment();
10318
+ k = this.bottom - y, D = this._getXAxisLabelAlignment();
10319
10319
  else if (a === "bottom")
10320
- k = this.top + y, A = this._getXAxisLabelAlignment();
10320
+ k = this.top + y, D = this._getXAxisLabelAlignment();
10321
10321
  else if (a === "left") {
10322
10322
  const se = this._getYAxisLabelAlignment(f);
10323
- A = se.textAlign, $ = se.x;
10323
+ D = se.textAlign, $ = se.x;
10324
10324
  } else if (a === "right") {
10325
10325
  const se = this._getYAxisLabelAlignment(f);
10326
- A = se.textAlign, $ = se.x;
10326
+ D = se.textAlign, $ = se.x;
10327
10327
  } else if (n === "x") {
10328
10328
  if (a === "center")
10329
10329
  k = (e.top + e.bottom) / 2 + h;
@@ -10331,7 +10331,7 @@ class fs extends ln {
10331
10331
  const se = Object.keys(a)[0], N = a[se];
10332
10332
  k = this.chart.scales[se].getPixelForValue(N) + h;
10333
10333
  }
10334
- A = this._getXAxisLabelAlignment();
10334
+ D = this._getXAxisLabelAlignment();
10335
10335
  } else if (n === "y") {
10336
10336
  if (a === "center")
10337
10337
  $ = (e.left + e.right) / 2 - h;
@@ -10339,17 +10339,17 @@ class fs extends ln {
10339
10339
  const se = Object.keys(a)[0], N = a[se];
10340
10340
  $ = this.chart.scales[se].getPixelForValue(N);
10341
10341
  }
10342
- A = this._getYAxisLabelAlignment(f).textAlign;
10342
+ D = this._getYAxisLabelAlignment(f).textAlign;
10343
10343
  }
10344
10344
  n === "y" && (l === "start" ? U = "top" : l === "end" && (U = "bottom"));
10345
10345
  const G = this._getLabelSizes();
10346
- for (v = 0, D = r.length; v < D; ++v) {
10346
+ for (v = 0, A = r.length; v < A; ++v) {
10347
10347
  T = r[v], E = T.label;
10348
10348
  const se = o.setContext(this.getContext(v));
10349
10349
  w = this.getPixelForTick(v) + o.labelOffset, _ = this._resolveTickFontOptions(v), P = _.lineHeight, I = Ze(E) ? E.length : 1;
10350
10350
  const N = I / 2, Y = se.color, Q = se.textStrokeColor, j = se.textStrokeWidth;
10351
- let R = A;
10352
- i ? ($ = w, A === "inner" && (v === D - 1 ? R = this.options.reverse ? "left" : "right" : v === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), a === "top" ? c === "near" || m !== 0 ? V = -I * P + P / 2 : c === "center" ? V = -G.highest.height / 2 - N * P + P : V = -G.highest.height + P / 2 : c === "near" || m !== 0 ? V = P / 2 : c === "center" ? V = G.highest.height / 2 - N * P : V = G.highest.height - I * P, d && (V *= -1), m !== 0 && !se.showLabelBackdrop && ($ += P / 2 * Math.sin(m))) : (k = w, V = (1 - I) * P / 2);
10351
+ let R = D;
10352
+ i ? ($ = w, D === "inner" && (v === A - 1 ? R = this.options.reverse ? "left" : "right" : v === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), a === "top" ? c === "near" || m !== 0 ? V = -I * P + P / 2 : c === "center" ? V = -G.highest.height / 2 - N * P + P : V = -G.highest.height + P / 2 : c === "near" || m !== 0 ? V = P / 2 : c === "center" ? V = G.highest.height / 2 - N * P : V = G.highest.height - I * P, d && (V *= -1), m !== 0 && !se.showLabelBackdrop && ($ += P / 2 * Math.sin(m))) : (k = w, V = (1 - I) * P / 2);
10353
10353
  let Z;
10354
10354
  if (se.showLabelBackdrop) {
10355
10355
  const J = Mt(se.backdropPadding), re = G.heights[v], fe = G.widths[v];
@@ -10362,7 +10362,7 @@ class fs extends ln {
10362
10362
  ke -= re;
10363
10363
  break;
10364
10364
  }
10365
- switch (A) {
10365
+ switch (D) {
10366
10366
  case "center":
10367
10367
  Ce -= fe / 2;
10368
10368
  break;
@@ -10370,7 +10370,7 @@ class fs extends ln {
10370
10370
  Ce -= fe;
10371
10371
  break;
10372
10372
  case "inner":
10373
- v === D - 1 ? Ce -= fe : v > 0 && (Ce -= fe / 2);
10373
+ v === A - 1 ? Ce -= fe : v > 0 && (Ce -= fe / 2);
10374
10374
  break;
10375
10375
  }
10376
10376
  Z = {
@@ -11604,26 +11604,26 @@ function Wa(t, e, n, s, a, o) {
11604
11604
  const se = u > 0 ? u - s : 0, N = d > 0 ? d - s : 0, Y = (se + N) / 2, Q = Y !== 0 ? y * Y / (Y + s) : y;
11605
11605
  h = (y - Q) / 2;
11606
11606
  }
11607
- const m = Math.max(1e-3, y * d - n / je) / d, g = (y - m) / 2, v = l + g + h, D = a - g - h, { outerStart: T, outerEnd: E, innerStart: $, innerEnd: k } = Ry(e, f, d, D - v), A = d - T, w = d - E, _ = v + T / A, P = D - E / w, I = f + $, V = f + k, U = v + $ / I, G = D - k / V;
11607
+ const m = Math.max(1e-3, y * d - n / je) / d, g = (y - m) / 2, v = l + g + h, A = a - g - h, { outerStart: T, outerEnd: E, innerStart: $, innerEnd: k } = Ry(e, f, d, A - v), D = d - T, w = d - E, _ = v + T / D, P = A - E / w, I = f + $, V = f + k, U = v + $ / I, G = A - k / V;
11608
11608
  if (t.beginPath(), o) {
11609
11609
  const se = (_ + P) / 2;
11610
11610
  if (t.arc(i, r, d, _, se), t.arc(i, r, d, se, P), E > 0) {
11611
11611
  const j = Xn(w, P, i, r);
11612
- t.arc(j.x, j.y, E, P, D + nt);
11612
+ t.arc(j.x, j.y, E, P, A + nt);
11613
11613
  }
11614
- const N = Xn(V, D, i, r);
11614
+ const N = Xn(V, A, i, r);
11615
11615
  if (t.lineTo(N.x, N.y), k > 0) {
11616
11616
  const j = Xn(V, G, i, r);
11617
- t.arc(j.x, j.y, k, D + nt, G + Math.PI);
11617
+ t.arc(j.x, j.y, k, A + nt, G + Math.PI);
11618
11618
  }
11619
- const Y = (D - k / f + (v + $ / f)) / 2;
11620
- if (t.arc(i, r, f, D - k / f, Y, !0), t.arc(i, r, f, Y, v + $ / f, !0), $ > 0) {
11619
+ const Y = (A - k / f + (v + $ / f)) / 2;
11620
+ if (t.arc(i, r, f, A - k / f, Y, !0), t.arc(i, r, f, Y, v + $ / f, !0), $ > 0) {
11621
11621
  const j = Xn(I, U, i, r);
11622
11622
  t.arc(j.x, j.y, $, U + Math.PI, v - nt);
11623
11623
  }
11624
- const Q = Xn(A, v, i, r);
11624
+ const Q = Xn(D, v, i, r);
11625
11625
  if (t.lineTo(Q.x, Q.y), T > 0) {
11626
- const j = Xn(A, _, i, r);
11626
+ const j = Xn(D, _, i, r);
11627
11627
  t.arc(j.x, j.y, T, v - nt, _);
11628
11628
  }
11629
11629
  } else {
@@ -11763,11 +11763,11 @@ function Vy(t, e, n, s) {
11763
11763
  function jy(t, e, n, s) {
11764
11764
  const a = e.points, { count: o, start: i, ilen: r } = Wu(a, n, s), { move: l = !0, reverse: c } = s || {};
11765
11765
  let u = 0, d = 0, f, h, y, m, g, v;
11766
- const D = (E) => (i + (c ? r - E : E)) % o, T = () => {
11766
+ const A = (E) => (i + (c ? r - E : E)) % o, T = () => {
11767
11767
  m !== g && (t.lineTo(u, g), t.lineTo(u, m), t.lineTo(u, v));
11768
11768
  };
11769
- for (l && (h = a[D(0)], t.moveTo(h.x, h.y)), f = 0; f <= r; ++f) {
11770
- if (h = a[D(f)], h.skip)
11769
+ for (l && (h = a[A(0)], t.moveTo(h.x, h.y)), f = 0; f <= r; ++f) {
11770
+ if (h = a[A(f)], h.skip)
11771
11771
  continue;
11772
11772
  const E = h.x, $ = h.y, k = E | 0;
11773
11773
  k === y ? ($ < m ? m = $ : $ > g && (g = $), u = (d * u + E) / ++d) : (T(), t.lineTo(E, $), y = k, d = 0, m = g = $), v = $;
@@ -12531,7 +12531,7 @@ class Dl extends ln {
12531
12531
  const { ctx: o, maxHeight: i, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = i - e;
12532
12532
  let d = r, f = 0, h = 0, y = 0, m = 0;
12533
12533
  return this.legendItems.forEach((g, v) => {
12534
- const { itemWidth: D, itemHeight: T } = vv(s, n, o, g, a);
12534
+ const { itemWidth: A, itemHeight: T } = vv(s, n, o, g, a);
12535
12535
  v > 0 && h + T + 2 * r > u && (d += f + r, c.push({
12536
12536
  width: f,
12537
12537
  height: h
@@ -12539,9 +12539,9 @@ class Dl extends ln {
12539
12539
  left: y,
12540
12540
  top: h,
12541
12541
  col: m,
12542
- width: D,
12542
+ width: A,
12543
12543
  height: T
12544
- }, f = Math.max(f, D), h += T + r;
12544
+ }, f = Math.max(f, A), h += T + r;
12545
12545
  }), d += f, c.push({
12546
12546
  width: f,
12547
12547
  height: h
@@ -12574,7 +12574,7 @@ class Dl extends ln {
12574
12574
  const { options: e, columnSizes: n, lineWidths: s, ctx: a } = this, { align: o, labels: i } = e, r = Xe.color, l = ns(e.rtl, this.left, this.width), c = ut(i.font), { padding: u } = i, d = c.size, f = d / 2;
12575
12575
  let h;
12576
12576
  this.drawTitle(), a.textAlign = l.textAlign("left"), a.textBaseline = "middle", a.lineWidth = 0.5, a.font = c.string;
12577
- const { boxWidth: y, boxHeight: m, itemHeight: g } = Sl(i, d), v = function(k, A, w) {
12577
+ const { boxWidth: y, boxHeight: m, itemHeight: g } = Sl(i, d), v = function(k, D, w) {
12578
12578
  if (isNaN(y) || y <= 0 || isNaN(m) || m < 0)
12579
12579
  return;
12580
12580
  a.save();
@@ -12585,10 +12585,10 @@ class Dl extends ln {
12585
12585
  pointStyle: w.pointStyle,
12586
12586
  rotation: w.rotation,
12587
12587
  borderWidth: _
12588
- }, I = l.xPlus(k, y / 2), V = A + f;
12588
+ }, I = l.xPlus(k, y / 2), V = D + f;
12589
12589
  gu(a, P, I, V, i.pointStyleWidth && y);
12590
12590
  } else {
12591
- const P = A + Math.max((d - m) / 2, 0), I = l.leftForLtr(k, y), V = ts(w.borderRadius);
12591
+ const P = D + Math.max((d - m) / 2, 0), I = l.leftForLtr(k, y), V = ts(w.borderRadius);
12592
12592
  a.beginPath(), Object.values(V).some((U) => U !== 0) ? La(a, {
12593
12593
  x: I,
12594
12594
  y: P,
@@ -12598,8 +12598,8 @@ class Dl extends ln {
12598
12598
  }) : a.rect(I, P, y, m), a.fill(), _ !== 0 && a.stroke();
12599
12599
  }
12600
12600
  a.restore();
12601
- }, D = function(k, A, w) {
12602
- Fs(a, w.text, k, A + g / 2, c, {
12601
+ }, A = function(k, D, w) {
12602
+ Fs(a, w.text, k, D + g / 2, c, {
12603
12603
  strikethrough: w.hidden,
12604
12604
  textAlign: l.textAlign(w.textAlign)
12605
12605
  });
@@ -12614,13 +12614,13 @@ class Dl extends ln {
12614
12614
  line: 0
12615
12615
  }, _u(this.ctx, e.textDirection);
12616
12616
  const $ = g + u;
12617
- this.legendItems.forEach((k, A) => {
12617
+ this.legendItems.forEach((k, D) => {
12618
12618
  a.strokeStyle = k.fontColor, a.fillStyle = k.fontColor;
12619
12619
  const w = a.measureText(k.text).width, _ = l.textAlign(k.textAlign || (k.textAlign = i.textAlign)), P = y + f + w;
12620
12620
  let I = h.x, V = h.y;
12621
- l.setWidth(this.width), T ? A > 0 && I + P + u > this.right && (V = h.y += $, h.line++, I = h.x = lt(o, this.left + u, this.right - s[h.line])) : A > 0 && V + $ > this.bottom && (I = h.x = I + n[h.line].width + u, h.line++, V = h.y = lt(o, this.top + E + u, this.bottom - n[h.line].height));
12621
+ l.setWidth(this.width), T ? D > 0 && I + P + u > this.right && (V = h.y += $, h.line++, I = h.x = lt(o, this.left + u, this.right - s[h.line])) : D > 0 && V + $ > this.bottom && (I = h.x = I + n[h.line].width + u, h.line++, V = h.y = lt(o, this.top + E + u, this.bottom - n[h.line].height));
12622
12622
  const U = l.x(I);
12623
- if (v(U, V, k), I = Kg(_, I + y + f, T ? I + P : this.right, e.rtl), D(l.x(I), V, k), T)
12623
+ if (v(U, V, k), I = Kg(_, I + y + f, T ? I + P : this.right, e.rtl), A(l.x(I), V, k), T)
12624
12624
  h.x += P + u;
12625
12625
  else if (typeof k.text != "string") {
12626
12626
  const G = c.lineHeight;
@@ -12946,13 +12946,13 @@ function Al(t, e) {
12946
12946
  m += h * E + (v - h) * l.lineHeight + (v - 1) * e.bodySpacing;
12947
12947
  }
12948
12948
  f && (m += e.footerMarginTop + f * u.lineHeight + (f - 1) * e.footerSpacing);
12949
- let D = 0;
12949
+ let A = 0;
12950
12950
  const T = function(E) {
12951
- g = Math.max(g, n.measureText(E).width + D);
12951
+ g = Math.max(g, n.measureText(E).width + A);
12952
12952
  };
12953
- return n.save(), n.font = c.string, Ve(t.title, T), n.font = l.string, Ve(t.beforeBody.concat(t.afterBody), T), D = e.displayColors ? i + 2 + e.boxPadding : 0, Ve(s, (E) => {
12953
+ return n.save(), n.font = c.string, Ve(t.title, T), n.font = l.string, Ve(t.beforeBody.concat(t.afterBody), T), A = e.displayColors ? i + 2 + e.boxPadding : 0, Ve(s, (E) => {
12954
12954
  Ve(E.before, T), Ve(E.lines, T), Ve(E.after, T);
12955
- }), D = 0, n.font = u.string, Ve(t.footer, T), n.restore(), g += y.width, {
12955
+ }), A = 0, n.font = u.string, Ve(t.footer, T), n.restore(), g += y.width, {
12956
12956
  width: g,
12957
12957
  height: m
12958
12958
  };
@@ -13156,11 +13156,11 @@ class Yo extends ln {
13156
13156
  }
13157
13157
  getCaretPosition(e, n, s) {
13158
13158
  const { xAlign: a, yAlign: o } = this, { caretSize: i, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: u, bottomRight: d } = ts(r), { x: f, y: h } = e, { width: y, height: m } = n;
13159
- let g, v, D, T, E, $;
13160
- return o === "center" ? (E = h + m / 2, a === "left" ? (g = f, v = g - i, T = E + i, $ = E - i) : (g = f + y, v = g + i, T = E - i, $ = E + i), D = g) : (a === "left" ? v = f + Math.max(l, u) + i : a === "right" ? v = f + y - Math.max(c, d) - i : v = this.caretX, o === "top" ? (T = h, E = T - i, g = v - i, D = v + i) : (T = h + m, E = T + i, g = v + i, D = v - i), $ = T), {
13159
+ let g, v, A, T, E, $;
13160
+ return o === "center" ? (E = h + m / 2, a === "left" ? (g = f, v = g - i, T = E + i, $ = E - i) : (g = f + y, v = g + i, T = E - i, $ = E + i), A = g) : (a === "left" ? v = f + Math.max(l, u) + i : a === "right" ? v = f + y - Math.max(c, d) - i : v = this.caretX, o === "top" ? (T = h, E = T - i, g = v - i, A = v + i) : (T = h + m, E = T + i, g = v + i, A = v - i), $ = T), {
13161
13161
  x1: g,
13162
13162
  x2: v,
13163
- x3: D,
13163
+ x3: A,
13164
13164
  y1: T,
13165
13165
  y2: E,
13166
13166
  y3: $
@@ -13188,7 +13188,7 @@ class Yo extends ln {
13188
13188
  } else {
13189
13189
  e.lineWidth = Re(i.borderWidth) ? Math.max(...Object.values(i.borderWidth)) : i.borderWidth || 1, e.strokeStyle = i.borderColor, e.setLineDash(i.borderDash || []), e.lineDashOffset = i.borderDashOffset || 0;
13190
13190
  const m = a.leftForLtr(f, c), g = a.leftForLtr(a.xPlus(f, 1), c - 2), v = ts(i.borderRadius);
13191
- Object.values(v).some((D) => D !== 0) ? (e.beginPath(), e.fillStyle = o.multiKeyBackground, La(e, {
13191
+ Object.values(v).some((A) => A !== 0) ? (e.beginPath(), e.fillStyle = o.multiKeyBackground, La(e, {
13192
13192
  x: m,
13193
13193
  y,
13194
13194
  w: c,
@@ -13210,9 +13210,9 @@ class Yo extends ln {
13210
13210
  const y = ns(s.rtl, this.x, this.width), m = function(w) {
13211
13211
  n.fillText(w, y.x(e.x + h), e.y + f / 2), e.y += f + o;
13212
13212
  }, g = y.textAlign(i);
13213
- let v, D, T, E, $, k, A;
13213
+ let v, A, T, E, $, k, D;
13214
13214
  for (n.textAlign = i, n.textBaseline = "middle", n.font = d.string, e.x = ba(this, g, s), n.fillStyle = s.bodyColor, Ve(this.beforeBody, m), h = r && g !== "right" ? i === "center" ? c / 2 + u : c + 2 + u : 0, E = 0, k = a.length; E < k; ++E) {
13215
- for (v = a[E], D = this.labelTextColors[E], n.fillStyle = D, Ve(v.before, m), T = v.lines, r && T.length && (this._drawColorBox(n, e, E, y, s), f = Math.max(d.lineHeight, l)), $ = 0, A = T.length; $ < A; ++$)
13215
+ for (v = a[E], A = this.labelTextColors[E], n.fillStyle = A, Ve(v.before, m), T = v.lines, r && T.length && (this._drawColorBox(n, e, E, y, s), f = Math.max(d.lineHeight, l)), $ = 0, D = T.length; $ < D; ++$)
13216
13216
  m(T[$]), f = d.lineHeight;
13217
13217
  Ve(v.after, m);
13218
13218
  }
@@ -13495,9 +13495,9 @@ ye(Go, "id", "category"), ye(Go, "defaults", {
13495
13495
  }
13496
13496
  });
13497
13497
  function Iv(t, e) {
13498
- const n = [], { bounds: a, step: o, min: i, max: r, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: f } = t, h = o || 1, y = u - 1, { min: m, max: g } = e, v = !Fe(i), D = !Fe(r), T = !Fe(c), E = (g - m) / (d + 1);
13499
- let $ = Pr((g - m) / y / h) * h, k, A, w, _;
13500
- if ($ < 1e-14 && !v && !D)
13498
+ const n = [], { bounds: a, step: o, min: i, max: r, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: f } = t, h = o || 1, y = u - 1, { min: m, max: g } = e, v = !Fe(i), A = !Fe(r), T = !Fe(c), E = (g - m) / (d + 1);
13499
+ let $ = Pr((g - m) / y / h) * h, k, D, w, _;
13500
+ if ($ < 1e-14 && !v && !A)
13501
13501
  return [
13502
13502
  {
13503
13503
  value: m
@@ -13506,23 +13506,23 @@ function Iv(t, e) {
13506
13506
  value: g
13507
13507
  }
13508
13508
  ];
13509
- _ = Math.ceil(g / $) - Math.floor(m / $), _ > y && ($ = Pr(_ * $ / y / h) * h), Fe(l) || (k = Math.pow(10, l), $ = Math.ceil($ * k) / k), a === "ticks" ? (A = Math.floor(m / $) * $, w = Math.ceil(g / $) * $) : (A = m, w = g), v && D && o && Vg((r - i) / o, $ / 1e3) ? (_ = Math.round(Math.min((r - i) / $, u)), $ = (r - i) / _, A = i, w = r) : T ? (A = v ? i : A, w = D ? r : w, _ = c - 1, $ = (w - A) / _) : (_ = (w - A) / $, Ss(_, Math.round(_), $ / 1e3) ? _ = Math.round(_) : _ = Math.ceil(_));
13510
- const P = Math.max(Or($), Or(A));
13511
- k = Math.pow(10, Fe(l) ? P : l), A = Math.round(A * k) / k, w = Math.round(w * k) / k;
13509
+ _ = Math.ceil(g / $) - Math.floor(m / $), _ > y && ($ = Pr(_ * $ / y / h) * h), Fe(l) || (k = Math.pow(10, l), $ = Math.ceil($ * k) / k), a === "ticks" ? (D = Math.floor(m / $) * $, w = Math.ceil(g / $) * $) : (D = m, w = g), v && A && o && Vg((r - i) / o, $ / 1e3) ? (_ = Math.round(Math.min((r - i) / $, u)), $ = (r - i) / _, D = i, w = r) : T ? (D = v ? i : D, w = A ? r : w, _ = c - 1, $ = (w - D) / _) : (_ = (w - D) / $, Ss(_, Math.round(_), $ / 1e3) ? _ = Math.round(_) : _ = Math.ceil(_));
13510
+ const P = Math.max(Or($), Or(D));
13511
+ k = Math.pow(10, Fe(l) ? P : l), D = Math.round(D * k) / k, w = Math.round(w * k) / k;
13512
13512
  let I = 0;
13513
- for (v && (f && A !== i ? (n.push({
13513
+ for (v && (f && D !== i ? (n.push({
13514
13514
  value: i
13515
- }), A < i && I++, Ss(Math.round((A + I * $) * k) / k, i, El(i, E, t)) && I++) : A < i && I++); I < _; ++I) {
13516
- const V = Math.round((A + I * $) * k) / k;
13517
- if (D && V > r)
13515
+ }), D < i && I++, Ss(Math.round((D + I * $) * k) / k, i, El(i, E, t)) && I++) : D < i && I++); I < _; ++I) {
13516
+ const V = Math.round((D + I * $) * k) / k;
13517
+ if (A && V > r)
13518
13518
  break;
13519
13519
  n.push({
13520
13520
  value: V
13521
13521
  });
13522
13522
  }
13523
- return D && f && w !== r ? n.length && Ss(n[n.length - 1].value, r, El(r, E, t)) ? n[n.length - 1].value = r : n.push({
13523
+ return A && f && w !== r ? n.length && Ss(n[n.length - 1].value, r, El(r, E, t)) ? n[n.length - 1].value = r : n.push({
13524
13524
  value: r
13525
- }) : (!D || w === r) && n.push({
13525
+ }) : (!A || w === r) && n.push({
13526
13526
  value: w
13527
13527
  }), n;
13528
13528
  }
@@ -14345,12 +14345,12 @@ const Wv = {
14345
14345
  _ !== I && (y.value = I), s("update:modelValue", P);
14346
14346
  }, g = () => {
14347
14347
  y.value = "", s("update:modelValue", null), s("clear");
14348
- }, v = M(() => !a.clearable || a.disabled || a.readonly ? !1 : a.hideClearWhenEmpty ? y.value.length > 0 : !0), D = M(() => !!a.error), T = M(() => {
14348
+ }, v = M(() => !a.clearable || a.disabled || a.readonly ? !1 : a.hideClearWhenEmpty ? y.value.length > 0 : !0), A = M(() => !!a.error), T = M(() => {
14349
14349
  const { class: w, maxlength: _, maxLength: P, ...I } = n;
14350
14350
  return I;
14351
14351
  }), E = M(() => y.value.length), $ = M(() => a.showCharCount ? (l.value ?? 0) > 0 : !1), k = M(
14352
14352
  () => $.value && E.value > 0
14353
- ), A = M(() => `${E.value} / ${l.value}`);
14353
+ ), D = M(() => `${E.value} / ${l.value}`);
14354
14354
  return (w, _) => (p(), C("div", {
14355
14355
  class: ce(["flex flex-col gap-1 w-full", b(n).class]),
14356
14356
  "aria-busy": a.skeleton
@@ -14394,7 +14394,7 @@ const Wv = {
14394
14394
  "w-full h-10 flex items-center gap-2 rounded-lg border px-3 py-2 bg-white dark:bg-neutral-900 text-sm text-foreground dark:text-gray-300 border-gray-300 dark:border-gray-700 focus-within:ring-1 focus-within:ring-white",
14395
14395
  "pl-10",
14396
14396
  v.value ? "pr-10" : "",
14397
- D.value ? "border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px] outline-none" : "outline-none"
14397
+ A.value ? "border-destructive focus:ring-destructive focus-visible:ring-destructive focus-visible:ring-[0.5px] outline-none" : "outline-none"
14398
14398
  ]
14399
14399
  }), null, 16, ux), [
14400
14400
  [rc, y.value]
@@ -14407,9 +14407,9 @@ const Wv = {
14407
14407
  onClick: g
14408
14408
  }, " ✕ ")
14409
14409
  ])) : H("", !0),
14410
- k.value && !D.value ? (p(), C("p", fx, W(A.value), 1)) : H("", !0)
14410
+ k.value && !A.value ? (p(), C("p", fx, W(D.value), 1)) : H("", !0)
14411
14411
  ]),
14412
- D.value ? (p(), C("p", hx, W(a.error), 1)) : H("", !0)
14412
+ A.value ? (p(), C("p", hx, W(a.error), 1)) : H("", !0)
14413
14413
  ], 64))
14414
14414
  ], 10, sx));
14415
14415
  }
@@ -16254,7 +16254,7 @@ const Jw = {
16254
16254
  ), v = M(() => {
16255
16255
  if (s.maxDaysAhead && s.maxDaysAhead > 0)
16256
16256
  return y(m(/* @__PURE__ */ new Date(), s.maxDaysAhead));
16257
- }), D = ee(null), T = ee(null), E = (U) => {
16257
+ }), A = ee(null), T = ee(null), E = (U) => {
16258
16258
  T.value = { month: U.month, year: U.year };
16259
16259
  }, $ = ee(!1);
16260
16260
  let k = null;
@@ -16264,11 +16264,11 @@ const Jw = {
16264
16264
  }), an(() => {
16265
16265
  k == null || k.disconnect(), k = null;
16266
16266
  }), Xw(Ld(s, "tone"));
16267
- const A = (U) => {
16267
+ const D = (U) => {
16268
16268
  const G = new Date(U), se = G.getDay(), N = G.getDate() - se + (se === 0 ? -6 : 1);
16269
16269
  return G.setDate(N), h(G);
16270
16270
  }, w = (U) => {
16271
- const G = A(U);
16271
+ const G = D(U);
16272
16272
  return G.setDate(G.getDate() + 6), y(G);
16273
16273
  }, _ = (U) => {
16274
16274
  const G = new Date(U);
@@ -16282,7 +16282,7 @@ const Jw = {
16282
16282
  return [
16283
16283
  {
16284
16284
  label: s.locale === "id" ? "Minggu Ini" : "This Week",
16285
- range: [A(U), w(U)]
16285
+ range: [D(U), w(U)]
16286
16286
  },
16287
16287
  {
16288
16288
  label: s.locale === "id" ? "Bulan Ini" : "This Month",
@@ -16300,10 +16300,10 @@ const Jw = {
16300
16300
  const se = Gl(U[0], G), N = Gl(U[1], G);
16301
16301
  c.value = [se, N], await sn();
16302
16302
  const Y = U[0], Q = Y.getMonth(), j = Y.getFullYear();
16303
- T.value && T.value.month === Q && T.value.year === j || (Z = D.value) == null || Z.setMonthYear({
16303
+ T.value && T.value.month === Q && T.value.year === j || (Z = A.value) == null || Z.setMonthYear({
16304
16304
  month: Q,
16305
16305
  year: j
16306
- }), (J = D.value) == null || J.openMenu();
16306
+ }), (J = A.value) == null || J.openMenu();
16307
16307
  };
16308
16308
  return (U, G) => (p(), C("div", {
16309
16309
  class: ce(["flex flex-col gap-1 w-full", b(n).class])
@@ -16325,7 +16325,7 @@ const Jw = {
16325
16325
  }, 8, ["for"])) : H("", !0),
16326
16326
  F(b(dh), {
16327
16327
  ref_key: "dpRef",
16328
- ref: D,
16328
+ ref: A,
16329
16329
  modelValue: c.value,
16330
16330
  "onUpdate:modelValue": G[1] || (G[1] = (se) => c.value = se),
16331
16331
  dark: $.value,
@@ -16406,7 +16406,7 @@ const Jw = {
16406
16406
  variant: "outline",
16407
16407
  onClick: G[0] || (G[0] = (Y) => {
16408
16408
  var Q;
16409
- return (Q = D.value) == null ? void 0 : Q.closeMenu();
16409
+ return (Q = A.value) == null ? void 0 : Q.closeMenu();
16410
16410
  })
16411
16411
  }, {
16412
16412
  default: O(() => [
@@ -17399,7 +17399,7 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17399
17399
  function v() {
17400
17400
  r.value = o.value, l.value = i.value;
17401
17401
  }
17402
- function D(_) {
17402
+ function A(_) {
17403
17403
  const P = _.trim();
17404
17404
  if (!P) return { a: "", b: null };
17405
17405
  if (P.includes(" - ")) {
@@ -17417,7 +17417,7 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17417
17417
  return { a: P, b: null };
17418
17418
  }
17419
17419
  function T() {
17420
- const { a: _, b: P } = D(l.value);
17420
+ const { a: _, b: P } = A(l.value);
17421
17421
  if (!_ && !P)
17422
17422
  return r.value = null, !0;
17423
17423
  const I = _ ? h(_) : null;
@@ -17458,7 +17458,7 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17458
17458
  }
17459
17459
  o.value = P, i.value = P ? m(P) : "", r.value = o.value, l.value = i.value, E(P), a.value = !1;
17460
17460
  }
17461
- function A() {
17461
+ function D() {
17462
17462
  v(), a.value = !1;
17463
17463
  }
17464
17464
  function w() {
@@ -17536,7 +17536,7 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17536
17536
  F(b(Ie), {
17537
17537
  variant: "outline",
17538
17538
  type: "button",
17539
- onClick: A
17539
+ onClick: D
17540
17540
  }, {
17541
17541
  default: O(() => [...P[8] || (P[8] = [
17542
17542
  ge("Cancel", -1)
@@ -17946,13 +17946,13 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17946
17946
  n.disabled || ($ = a.value) == null || $.click();
17947
17947
  }
17948
17948
  function d($) {
17949
- const k = $ / 1024, A = k / 1024;
17950
- return A >= 1 ? `${A.toFixed(2)} MB` : k >= 1 ? `${k.toFixed(1)} KB` : `${$} B`;
17949
+ const k = $ / 1024, D = k / 1024;
17950
+ return D >= 1 ? `${D.toFixed(2)} MB` : k >= 1 ? `${k.toFixed(1)} KB` : `${$} B`;
17951
17951
  }
17952
17952
  function f($) {
17953
- var A;
17953
+ var D;
17954
17954
  if (!$) return "File tidak valid";
17955
- if ((A = n.accept) != null && A.includes("image/") && !$.type.startsWith("image/"))
17955
+ if ((D = n.accept) != null && D.includes("image/") && !$.type.startsWith("image/"))
17956
17956
  return "Hanya file gambar yang diizinkan";
17957
17957
  const k = (n.maxSizeMb ?? 2) * 1024 * 1024;
17958
17958
  return $.size > k ? `Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB` : null;
@@ -17963,28 +17963,28 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17963
17963
  function y($) {
17964
17964
  if (i.value = null, !$.length) return;
17965
17965
  if (n.mode === "single") {
17966
- const A = $[0], w = f(A);
17966
+ const D = $[0], w = f(D);
17967
17967
  if (w) {
17968
17968
  i.value = w, s("error", w);
17969
17969
  return;
17970
17970
  }
17971
- n.showSelected && h(A), s("picked", A);
17971
+ n.showSelected && h(D), s("picked", D);
17972
17972
  return;
17973
17973
  }
17974
17974
  const k = [];
17975
- for (const A of $) {
17976
- const w = f(A);
17975
+ for (const D of $) {
17976
+ const w = f(D);
17977
17977
  if (w) {
17978
17978
  i.value = w, s("error", w);
17979
17979
  return;
17980
17980
  }
17981
- k.push(A);
17981
+ k.push(D);
17982
17982
  }
17983
17983
  k.length && (n.showSelected && h(k[0]), s("picked:multiple", k));
17984
17984
  }
17985
17985
  function m($) {
17986
- const k = $.target, A = Array.from(k.files ?? []);
17987
- y(A), k.value = "";
17986
+ const k = $.target, D = Array.from(k.files ?? []);
17987
+ y(D), k.value = "";
17988
17988
  }
17989
17989
  function g() {
17990
17990
  n.disabled || (o.value = !0);
@@ -17992,15 +17992,15 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
17992
17992
  function v() {
17993
17993
  n.disabled || (o.value = !0);
17994
17994
  }
17995
- function D() {
17995
+ function A() {
17996
17996
  o.value = !1;
17997
17997
  }
17998
17998
  function T($) {
17999
17999
  var w, _;
18000
18000
  if (n.disabled) return;
18001
18001
  o.value = !1;
18002
- const k = Array.from(((w = $.dataTransfer) == null ? void 0 : w.files) ?? []), A = (_ = n.accept) != null && _.includes("image/") ? k.filter((P) => P.type.startsWith("image/")) : k;
18003
- y(A);
18002
+ const k = Array.from(((w = $.dataTransfer) == null ? void 0 : w.files) ?? []), D = (_ = n.accept) != null && _.includes("image/") ? k.filter((P) => P.type.startsWith("image/")) : k;
18003
+ y(D);
18004
18004
  }
18005
18005
  const E = M(
18006
18006
  () => (n.accept || "file/*").split(",").map(($) => $.trim()).filter(Boolean).map(($) => $ === "image/*" ? "IMAGE" : $.replace(/^image\//, "").replace(/^\./, "")).join(", ")
@@ -18031,7 +18031,7 @@ const L1 = { class: "relative w-full" }, V1 = { class: "mt-2 flex justify-end ga
18031
18031
  onClick: u,
18032
18032
  onDragenter: qe(g, ["prevent"]),
18033
18033
  onDragover: qe(v, ["prevent"]),
18034
- onDragleave: qe(D, ["prevent"]),
18034
+ onDragleave: qe(A, ["prevent"]),
18035
18035
  onDrop: qe(T, ["prevent"])
18036
18036
  }, [
18037
18037
  x("div", Z1, [
@@ -18281,8 +18281,8 @@ const yk = { class: "space-y-3" }, vk = {
18281
18281
  return k ? k.split(/[,\s;]+/g).map((w) => w.trim().toLowerCase()).filter(Boolean).map((w) => w.includes("/") || w.startsWith(".") ? w : `.${w}`) : [];
18282
18282
  });
18283
18283
  function u(k) {
18284
- const A = k.lastIndexOf(".");
18285
- return A >= 0 ? k.slice(A).toLowerCase() : "";
18284
+ const D = k.lastIndexOf(".");
18285
+ return D >= 0 ? k.slice(D).toLowerCase() : "";
18286
18286
  }
18287
18287
  const d = M(() => {
18288
18288
  if (c.value.length) {
@@ -18293,13 +18293,13 @@ const yk = { class: "space-y-3" }, vk = {
18293
18293
  }), f = M(() => c.value.length ? c.value.join(", ") : n.accept || "Semua File");
18294
18294
  function h(k) {
18295
18295
  if (c.value.length) {
18296
- const A = (k.type || "").toLowerCase(), w = u(k.name);
18297
- return c.value.some((_) => _.includes("/") ? A === _ : _.startsWith(".") ? w === _ : w === `.${_}`);
18296
+ const D = (k.type || "").toLowerCase(), w = u(k.name);
18297
+ return c.value.some((_) => _.includes("/") ? D === _ : _.startsWith(".") ? w === _ : w === `.${_}`);
18298
18298
  }
18299
18299
  if (n.accept) {
18300
18300
  if (n.accept === "*/*") return !0;
18301
- const A = n.accept.split(",").map((P) => P.trim().toLowerCase()), w = (k.type || "").toLowerCase(), _ = u(k.name);
18302
- return A.some((P) => {
18301
+ const D = n.accept.split(",").map((P) => P.trim().toLowerCase()), w = (k.type || "").toLowerCase(), _ = u(k.name);
18302
+ return D.some((P) => {
18303
18303
  if (P.endsWith("/*")) {
18304
18304
  const I = P.slice(0, -2);
18305
18305
  return w.startsWith(I);
@@ -18315,22 +18315,22 @@ const yk = { class: "space-y-3" }, vk = {
18315
18315
  async function m(k) {
18316
18316
  return k ? h(k) ? n.minSizeMb != null && k.size < y(n.minSizeMb) ? `Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB` : n.maxSizeMb != null && k.size > y(n.maxSizeMb) ? `Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB` : null : `File Type not allowed. Allowed: ${f.value}` : "File tidak valid";
18317
18317
  }
18318
- const { DCodeApi: g } = $t(), v = xd(), D = ee(!1);
18318
+ const { DCodeApi: g } = $t(), v = xd(), A = ee(!1);
18319
18319
  async function T(k) {
18320
- var A;
18320
+ var D;
18321
18321
  if (n.uploadFn) {
18322
18322
  try {
18323
- D.value = !0;
18323
+ A.value = !0;
18324
18324
  const w = await n.uploadFn(k);
18325
18325
  a.value = k, s("uploaded", w);
18326
18326
  } catch (w) {
18327
18327
  console.error("Upload Error", w), v.error("Upload Failed", (w == null ? void 0 : w.message) || "Unknown error"), r((w == null ? void 0 : w.message) || "Upload Failed");
18328
18328
  } finally {
18329
- D.value = !1;
18329
+ A.value = !1;
18330
18330
  }
18331
18331
  return;
18332
18332
  }
18333
- if (!((A = n.endpoint) != null && A.apiUrl)) {
18333
+ if (!((D = n.endpoint) != null && D.apiUrl)) {
18334
18334
  a.value = k;
18335
18335
  return;
18336
18336
  }
@@ -18339,7 +18339,7 @@ const yk = { class: "space-y-3" }, vk = {
18339
18339
  return;
18340
18340
  }
18341
18341
  try {
18342
- D.value = !0;
18342
+ A.value = !0;
18343
18343
  const w = new FormData();
18344
18344
  w.append("doc", k);
18345
18345
  const _ = (n.endpoint.apiMethod || "POST").toUpperCase(), P = n.endpoint.apiUrl, I = await g("", "", w, {
@@ -18354,16 +18354,16 @@ const yk = { class: "space-y-3" }, vk = {
18354
18354
  } catch (w) {
18355
18355
  console.error("Upload Error", w), v.error("Upload Failed", (w == null ? void 0 : w.message) || "Unknown error"), r((w == null ? void 0 : w.message) || "Upload Failed");
18356
18356
  } finally {
18357
- D.value = !1;
18357
+ A.value = !1;
18358
18358
  }
18359
18359
  }
18360
18360
  async function E(k) {
18361
18361
  var w;
18362
18362
  if (n.disabled) return;
18363
18363
  l();
18364
- const A = await m(k);
18365
- if (A) {
18366
- r(A);
18364
+ const D = await m(k);
18365
+ if (D) {
18366
+ r(D);
18367
18367
  return;
18368
18368
  }
18369
18369
  o.value = k, n.uploadFn || (w = n.endpoint) != null && w.apiUrl ? await T(k) : a.value = k;
@@ -18377,8 +18377,8 @@ const yk = { class: "space-y-3" }, vk = {
18377
18377
  k && !o.value && (o.value = k), k || (o.value = null);
18378
18378
  },
18379
18379
  { immediate: !0 }
18380
- ), (k, A) => (p(), C("div", yk, [
18381
- a.value ? D.value ? (p(), C("div", vk, [...A[1] || (A[1] = [
18380
+ ), (k, D) => (p(), C("div", yk, [
18381
+ a.value ? A.value ? (p(), C("div", vk, [...D[1] || (D[1] = [
18382
18382
  x("span", { class: "text-sm text-muted-foreground animate-pulse" }, "Uploading...", -1)
18383
18383
  ])])) : (p(), X(vd, {
18384
18384
  key: 2,
@@ -18399,10 +18399,10 @@ const yk = { class: "space-y-3" }, vk = {
18399
18399
  hint: t.hint,
18400
18400
  accept: d.value,
18401
18401
  maxSizeMb: t.maxSizeMb,
18402
- disabled: t.disabled || D.value,
18402
+ disabled: t.disabled || A.value,
18403
18403
  onPicked: E,
18404
18404
  error: i.value,
18405
- onError: A[0] || (A[0] = (w) => r(w))
18405
+ onError: D[0] || (D[0] = (w) => r(w))
18406
18406
  }, null, 8, ["label", "hint", "accept", "maxSizeMb", "disabled", "error"]))
18407
18407
  ]));
18408
18408
  }
@@ -18454,7 +18454,7 @@ const yk = { class: "space-y-3" }, vk = {
18454
18454
  "camelCase",
18455
18455
  "children",
18456
18456
  "IconNode"
18457
- ]), D = async () => {
18457
+ ]), A = async () => {
18458
18458
  if (h.value || y.value) return;
18459
18459
  y.value = !0, await new Promise((re) => setTimeout(re, 0));
18460
18460
  const J = Object.keys(a).filter((re) => !v.has(re)).filter((re) => /^[A-Z]/.test(re)).filter(
@@ -18469,7 +18469,7 @@ const yk = { class: "space-y-3" }, vk = {
18469
18469
  if (!h.value) return [];
18470
18470
  const J = (d.value ?? "").trim().toLowerCase();
18471
18471
  return J ? m.value.filter((re) => re.toLowerCase().includes(J)) : m.value;
18472
- }), A = M(() => k.value.slice(0, g.value));
18472
+ }), D = M(() => k.value.slice(0, g.value));
18473
18473
  Be(
18474
18474
  () => d.value,
18475
18475
  () => {
@@ -18491,7 +18491,7 @@ const yk = { class: "space-y-3" }, vk = {
18491
18491
  f.value = !1;
18492
18492
  return;
18493
18493
  }
18494
- c.value = !0, await D(), re && (d.value = "", E.value = ""), g.value = n.pageSize, await I();
18494
+ c.value = !0, await A(), re && (d.value = "", E.value = ""), g.value = n.pageSize, await I();
18495
18495
  }, U = () => {
18496
18496
  c.value = !1, d.value = "", E.value = u.value, g.value = n.pageSize;
18497
18497
  }, G = async () => {
@@ -18610,7 +18610,7 @@ const yk = { class: "space-y-3" }, vk = {
18610
18610
  key: 2,
18611
18611
  class: ce(["grid gap-2", w.value])
18612
18612
  }, [
18613
- (p(!0), C(xe, null, Ne(A.value, (fe) => (p(), C("button", {
18613
+ (p(!0), C(xe, null, Ne(D.value, (fe) => (p(), C("button", {
18614
18614
  key: fe,
18615
18615
  type: "button",
18616
18616
  class: ce(["group rounded-lg border p-2 hover:bg-muted/40 transition", u.value === fe ? "ring-1 ring-primary" : ""]),
@@ -18625,7 +18625,7 @@ const yk = { class: "space-y-3" }, vk = {
18625
18625
  ])
18626
18626
  ], 10, $k))), 128))
18627
18627
  ], 2)),
18628
- h.value && k.value.length > 0 ? (p(), C("div", Tk, " Showing " + W(A.value.length) + " / " + W(k.value.length), 1)) : H("", !0)
18628
+ h.value && k.value.length > 0 ? (p(), C("div", Tk, " Showing " + W(D.value.length) + " / " + W(k.value.length), 1)) : H("", !0)
18629
18629
  ], 36)
18630
18630
  ])) : H("", !0)
18631
18631
  ])
@@ -18679,7 +18679,7 @@ const yk = { class: "space-y-3" }, vk = {
18679
18679
  r = null, o.value && (o.value.innerHTML = ""), i.value = null;
18680
18680
  }
18681
18681
  }
18682
- async function d(g, v, D, T, E) {
18682
+ async function d(g, v, A, T, E) {
18683
18683
  const $ = await new Promise((w, _) => {
18684
18684
  const P = URL.createObjectURL(g), I = new Image();
18685
18685
  I.onload = () => {
@@ -18688,9 +18688,9 @@ const yk = { class: "space-y-3" }, vk = {
18688
18688
  URL.revokeObjectURL(P), _(V);
18689
18689
  }, I.src = P;
18690
18690
  }), k = document.createElement("canvas");
18691
- k.width = v, k.height = D;
18692
- const A = k.getContext("2d");
18693
- return A ? (A.drawImage($, 0, 0, v, D), await new Promise((w) => {
18691
+ k.width = v, k.height = A;
18692
+ const D = k.getContext("2d");
18693
+ return D ? (D.drawImage($, 0, 0, v, A), await new Promise((w) => {
18694
18694
  k.toBlob((_) => w(_ || g), T, E);
18695
18695
  })) : g;
18696
18696
  }
@@ -18757,10 +18757,10 @@ const yk = { class: "space-y-3" }, vk = {
18757
18757
  }), r.on("file-editor:complete", async (g) => {
18758
18758
  const v = ++c;
18759
18759
  try {
18760
- const D = g.data, T = D.type || g.type || "image/jpeg";
18761
- let E = D;
18760
+ const A = g.data, T = A.type || g.type || "image/jpeg";
18761
+ let E = A;
18762
18762
  if (n.outputWidth && n.outputHeight && (E = await d(
18763
- D,
18763
+ A,
18764
18764
  n.outputWidth,
18765
18765
  n.outputHeight,
18766
18766
  T,
@@ -18773,11 +18773,11 @@ const yk = { class: "space-y-3" }, vk = {
18773
18773
  }));
18774
18774
  }
18775
18775
  async function m(g, v = "CROP_RESULT") {
18776
- const D = URL.createObjectURL(g);
18776
+ const A = URL.createObjectURL(g);
18777
18777
  try {
18778
18778
  const T = await new Promise((E, $) => {
18779
18779
  const k = new Image();
18780
- k.onload = () => E(k), k.onerror = $, k.src = D;
18780
+ k.onload = () => E(k), k.onerror = $, k.src = A;
18781
18781
  });
18782
18782
  console.group(v), console.log("file:", g), console.table({
18783
18783
  name: g.name,
@@ -18787,9 +18787,9 @@ const yk = { class: "space-y-3" }, vk = {
18787
18787
  width: T.naturalWidth,
18788
18788
  height: T.naturalHeight,
18789
18789
  ratio: +(T.naturalWidth / T.naturalHeight).toFixed(4)
18790
- }), console.log("previewUrl:", D), console.groupEnd();
18790
+ }), console.log("previewUrl:", A), console.groupEnd();
18791
18791
  } finally {
18792
- URL.revokeObjectURL(D);
18792
+ URL.revokeObjectURL(A);
18793
18793
  }
18794
18794
  }
18795
18795
  return Be(
@@ -18807,7 +18807,7 @@ const yk = { class: "space-y-3" }, vk = {
18807
18807
  l = !0, c++, u();
18808
18808
  }), (g, v) => (p(), X(b(bd), {
18809
18809
  open: a.value,
18810
- "onUpdate:open": v[2] || (v[2] = (D) => a.value = D)
18810
+ "onUpdate:open": v[2] || (v[2] = (A) => a.value = A)
18811
18811
  }, {
18812
18812
  default: O(() => [
18813
18813
  F(b(yd), {
@@ -19033,13 +19033,13 @@ const yk = { class: "space-y-3" }, vk = {
19033
19033
  }, R.src = j;
19034
19034
  }) : null;
19035
19035
  }
19036
- async function D(N) {
19036
+ async function A(N) {
19037
19037
  if (!(n.minWidth != null || n.minHeight != null || n.maxWidth != null || n.maxHeight != null)) return null;
19038
19038
  const Q = await v(N);
19039
19039
  return Q ? n.minWidth != null && Q.w < n.minWidth ? `Lebar gambar minimal ${n.minWidth}px` : n.minHeight != null && Q.h < n.minHeight ? `Tinggi gambar minimal ${n.minHeight}px` : n.maxWidth != null && Q.w > n.maxWidth ? `Lebar gambar maksimal ${n.maxWidth}px` : n.maxHeight != null && Q.h > n.maxHeight ? `Tinggi gambar maksimal ${n.maxHeight}px` : null : "Gagal membaca dimensi gambar";
19040
19040
  }
19041
19041
  async function T(N) {
19042
- return N ? m(N) ? n.minSizeMb != null && N.size < g(n.minSizeMb) ? `Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB` : n.maxSizeMb != null && N.size > g(n.maxSizeMb) ? `Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB` : await D(N) : `only Allowed: ${y.value}` : "File tidak valid";
19042
+ return N ? m(N) ? n.minSizeMb != null && N.size < g(n.minSizeMb) ? `Ukuran file terlalu kecil. Minimal ${n.minSizeMb}MB` : n.maxSizeMb != null && N.size > g(n.maxSizeMb) ? `Ukuran file terlalu besar. Maks ${n.maxSizeMb}MB` : await A(N) : `only Allowed: ${y.value}` : "File tidak valid";
19043
19043
  }
19044
19044
  function E(N) {
19045
19045
  n.disabled || (i.value = N, o.value = !0);
@@ -19054,7 +19054,7 @@ const yk = { class: "space-y-3" }, vk = {
19054
19054
  }
19055
19055
  r.value = N, E(N);
19056
19056
  }
19057
- const { DCodeApi: k } = $t(), A = xd(), w = ee(!1);
19057
+ const { DCodeApi: k } = $t(), D = xd(), w = ee(!1);
19058
19058
  ee(null);
19059
19059
  function _(N, Y) {
19060
19060
  return !N || !Y ? null : N.replace(/\/+$/, "") + "/" + Y.replace(/^\/+/, "");
@@ -19074,7 +19074,7 @@ const yk = { class: "space-y-3" }, vk = {
19074
19074
  const Q = await n.uploadFn(N);
19075
19075
  a.value = N, s("uploaded", Q);
19076
19076
  } catch (Q) {
19077
- console.error("Upload Error", Q), A.error("Upload Failed", (Q == null ? void 0 : Q.message) || "Unknown error"), c((Q == null ? void 0 : Q.message) || "Upload Failed");
19077
+ console.error("Upload Error", Q), D.error("Upload Failed", (Q == null ? void 0 : Q.message) || "Unknown error"), c((Q == null ? void 0 : Q.message) || "Upload Failed");
19078
19078
  } finally {
19079
19079
  w.value = !1;
19080
19080
  }
@@ -19102,7 +19102,7 @@ const yk = { class: "space-y-3" }, vk = {
19102
19102
  }), J = (Z == null ? void 0 : Z.data) ?? Z;
19103
19103
  P(J), a.value = N, s("uploaded", J);
19104
19104
  } catch (Q) {
19105
- console.error("Upload Error", Q), A.error("Upload Failed", (Q == null ? void 0 : Q.message) || "Unknown error"), c((Q == null ? void 0 : Q.message) || "Upload Failed");
19105
+ console.error("Upload Error", Q), D.error("Upload Failed", (Q == null ? void 0 : Q.message) || "Unknown error"), c((Q == null ? void 0 : Q.message) || "Upload Failed");
19106
19106
  } finally {
19107
19107
  w.value = !1;
19108
19108
  }
@@ -19282,7 +19282,7 @@ const yk = { class: "space-y-3" }, vk = {
19282
19282
  ), m = M(() => {
19283
19283
  var ae;
19284
19284
  return !!((ae = a.endpoint) != null && ae.apiUrl) || !!a.fetchItems;
19285
- }), g = ee([]), v = ee(!1), D = ee(!1), T = M(() => {
19285
+ }), g = ee([]), v = ee(!1), A = ee(!1), T = M(() => {
19286
19286
  var de;
19287
19287
  const ae = (de = a.endpoint) == null ? void 0 : de.apiOptions;
19288
19288
  if (ae)
@@ -19317,7 +19317,7 @@ const yk = { class: "space-y-3" }, vk = {
19317
19317
  }), At = (Ke == null ? void 0 : Ke.data) ?? Ke;
19318
19318
  de = (At == null ? void 0 : At.data) ?? At;
19319
19319
  }
19320
- g.value = Array.isArray(de) ? de : [], D.value = !0;
19320
+ g.value = Array.isArray(de) ? de : [], A.value = !0;
19321
19321
  } catch (de) {
19322
19322
  console.error("[DCodeMultiSelectChips][fetchOptions] ERROR:", de), g.value = [];
19323
19323
  } finally {
@@ -19328,12 +19328,12 @@ const yk = { class: "space-y-3" }, vk = {
19328
19328
  Be(
19329
19329
  () => E.value,
19330
19330
  () => {
19331
- g.value = [], D.value = !1;
19331
+ g.value = [], A.value = !1;
19332
19332
  }
19333
19333
  ), wt(() => {
19334
19334
  a.autoFetchOnMount && m.value && k();
19335
19335
  });
19336
- const A = M(() => {
19336
+ const D = M(() => {
19337
19337
  const ae = y.value;
19338
19338
  if (a.returnObject) return ae;
19339
19339
  const de = /* @__PURE__ */ new Map();
@@ -19344,7 +19344,7 @@ const yk = { class: "space-y-3" }, vk = {
19344
19344
  [a.itemTitle]: String(me)
19345
19345
  }
19346
19346
  );
19347
- }), w = M(() => a.maxChips === null ? A.value : A.value.slice(0, a.maxChips));
19347
+ }), w = M(() => a.maxChips === null ? D.value : D.value.slice(0, a.maxChips));
19348
19348
  function _(ae) {
19349
19349
  const de = y.value;
19350
19350
  if (a.returnObject) {
@@ -19396,7 +19396,7 @@ const yk = { class: "space-y-3" }, vk = {
19396
19396
  async function Ce() {
19397
19397
  a.disabled || (j.value = !0, J.value = 0, requestAnimationFrame(() => {
19398
19398
  Q.value && (Q.value.scrollTop = 0), Z.value = 0;
19399
- }), m.value && a.autoFetchOnOpen && (a.refreshOnOpen || !D.value) && !v.value && await k());
19399
+ }), m.value && a.autoFetchOnOpen && (a.refreshOnOpen || !A.value) && !v.value && await k());
19400
19400
  }
19401
19401
  function De() {
19402
19402
  j.value = !1;
@@ -19496,7 +19496,7 @@ const yk = { class: "space-y-3" }, vk = {
19496
19496
  ae && ne(ae);
19497
19497
  }
19498
19498
  const We = M(
19499
- () => a.clearable && !a.disabled && A.value.length > 0
19499
+ () => a.clearable && !a.disabled && D.value.length > 0
19500
19500
  ), Ge = M(() => u.value ? "border-red-500 ring-[0.5px] ring-red-500" : j.value ? "border-gray-700 ring-[0.5px] ring-gray-700 dark:border-gray-300 dark:ring-gray-300" : "");
19501
19501
  return (ae, de) => on((p(), C("div", {
19502
19502
  class: ce(["flex flex-col gap-1 w-full", b(n).class]),
@@ -19535,7 +19535,7 @@ const yk = { class: "space-y-3" }, vk = {
19535
19535
  }, {
19536
19536
  default: O(() => [
19537
19537
  x("div", Zk, [
19538
- A.value.length ? (p(), C("div", e_, [
19538
+ D.value.length ? (p(), C("div", e_, [
19539
19539
  (p(!0), C(xe, null, Ne(w.value, (me, Se) => (p(), X(b(wn), {
19540
19540
  key: `chip-${h(me, Se)}`,
19541
19541
  variant: "secondary",
@@ -19552,12 +19552,12 @@ const yk = { class: "space-y-3" }, vk = {
19552
19552
  ]),
19553
19553
  _: 2
19554
19554
  }, 1024))), 128)),
19555
- a.maxChips !== null && A.value.length > a.maxChips ? (p(), X(b(wn), {
19555
+ a.maxChips !== null && D.value.length > a.maxChips ? (p(), X(b(wn), {
19556
19556
  key: 0,
19557
19557
  variant: "secondary"
19558
19558
  }, {
19559
19559
  default: O(() => [
19560
- ge(" +" + W(A.value.length - (a.maxChips ?? 0)), 1)
19560
+ ge(" +" + W(D.value.length - (a.maxChips ?? 0)), 1)
19561
19561
  ]),
19562
19562
  _: 1
19563
19563
  })) : H("", !0)
@@ -19682,7 +19682,7 @@ const yk = { class: "space-y-3" }, vk = {
19682
19682
  }, c = (m) => m.match(/[a-zA-Z0-9]/) ? m.match(/[a-zA-Z0-9]/)[0] : "", u = (m, g) => {
19683
19683
  o.value[m] = c(g), s("updateOtp", o.value.join(""));
19684
19684
  }, d = (m, g) => {
19685
- const v = m.key, D = /^\d$/.test(v), T = /^[a-zA-Z]$/.test(v);
19685
+ const v = m.key, A = /^\d$/.test(v), T = /^[a-zA-Z]$/.test(v);
19686
19686
  if (v === "Backspace") {
19687
19687
  if (m.preventDefault(), o.value[g]) {
19688
19688
  u(g, "");
@@ -19699,21 +19699,21 @@ const yk = { class: "space-y-3" }, vk = {
19699
19699
  m.preventDefault(), l(g + 1);
19700
19700
  return;
19701
19701
  }
19702
- if (D || T) {
19702
+ if (A || T) {
19703
19703
  m.preventDefault(), u(g, v), g < i.value - 1 && l(g + 1);
19704
19704
  return;
19705
19705
  }
19706
19706
  v.length === 1 && m.preventDefault();
19707
19707
  }, f = (m, g) => {
19708
- const v = m.target, D = v.value ?? "", T = c(D);
19708
+ const v = m.target, A = v.value ?? "", T = c(A);
19709
19709
  v.value = T, u(g, T), T && g < i.value - 1 && l(g + 1);
19710
19710
  }, h = (m, g) => {
19711
19711
  var E;
19712
19712
  m.preventDefault();
19713
- const D = (((E = m.clipboardData) == null ? void 0 : E.getData("text")) ?? "").replaceAll(/[^a-zA-Z0-9]/g, "");
19714
- if (!D) return;
19713
+ const A = (((E = m.clipboardData) == null ? void 0 : E.getData("text")) ?? "").replaceAll(/[^a-zA-Z0-9]/g, "");
19714
+ if (!A) return;
19715
19715
  let T = g;
19716
- for (const $ of D) {
19716
+ for (const $ of A) {
19717
19717
  if (T >= i.value) break;
19718
19718
  o.value[T] = $, T++;
19719
19719
  }
@@ -19735,9 +19735,9 @@ const yk = { class: "space-y-3" }, vk = {
19735
19735
  autocomplete: "one-time-code",
19736
19736
  "aria-label": "OTP digit",
19737
19737
  class: "flex-1 w-auto min-w-8 max-w-14 aspect-square h-auto p-0 text-center text-lg sm:text-xl font-medium",
19738
- onKeydown: (D) => d(D, v - 1),
19739
- onInput: (D) => f(D, v - 1),
19740
- onPaste: (D) => h(D, v - 1)
19738
+ onKeydown: (A) => d(A, v - 1),
19739
+ onInput: (A) => f(A, v - 1),
19740
+ onPaste: (A) => h(A, v - 1)
19741
19741
  }, null, 8, ["value", "onKeydown", "onInput", "onPaste"]))), 128))
19742
19742
  ])
19743
19743
  ]));
@@ -20143,14 +20143,14 @@ const yk = { class: "space-y-3" }, vk = {
20143
20143
  const $ = a.max - a.min;
20144
20144
  return (a.modelValue - a.min) / $ * 100;
20145
20145
  }), m = ($) => {
20146
- const k = $.target, A = parseFloat(k.value);
20147
- s("update:modelValue", A), s("input", A);
20146
+ const k = $.target, D = parseFloat(k.value);
20147
+ s("update:modelValue", D), s("input", D);
20148
20148
  }, g = ($) => {
20149
- const k = $.target, A = parseFloat(k.value);
20150
- s("change", A);
20149
+ const k = $.target, D = parseFloat(k.value);
20150
+ s("change", D);
20151
20151
  }, v = () => {
20152
20152
  i.value = !0;
20153
- }, D = () => {
20153
+ }, A = () => {
20154
20154
  i.value = !1;
20155
20155
  }, T = ($) => {
20156
20156
  const k = a.max - a.min;
@@ -20241,19 +20241,19 @@ const yk = { class: "space-y-3" }, vk = {
20241
20241
  onInput: m,
20242
20242
  onChange: g,
20243
20243
  onMousedown: v,
20244
- onMouseup: D,
20244
+ onMouseup: A,
20245
20245
  onTouchstart: v,
20246
- onTouchend: D
20246
+ onTouchend: A
20247
20247
  }, null, 42, Q_)
20248
20248
  ]),
20249
20249
  t.marks.length > 0 ? (p(), C("div", Z_, [
20250
- (p(!0), C(xe, null, Ne(t.marks, (A) => (p(), C("div", {
20251
- key: A.value,
20250
+ (p(!0), C(xe, null, Ne(t.marks, (D) => (p(), C("div", {
20251
+ key: D.value,
20252
20252
  class: "absolute flex flex-col items-center",
20253
- style: Qe({ left: `${T(A.value)}%`, transform: "translateX(-50%)" })
20253
+ style: Qe({ left: `${T(D.value)}%`, transform: "translateX(-50%)" })
20254
20254
  }, [
20255
20255
  k[0] || (k[0] = x("div", { class: "w-1 h-2 bg-gray-400 rounded-full" }, null, -1)),
20256
- x("span", e2, W(A.label), 1)
20256
+ x("span", e2, W(D.label), 1)
20257
20257
  ], 4))), 128))
20258
20258
  ])) : H("", !0)
20259
20259
  ]),
@@ -20669,7 +20669,7 @@ const yk = { class: "space-y-3" }, vk = {
20669
20669
  te !== v.value && (v.value = te);
20670
20670
  }
20671
20671
  );
20672
- const D = ee(!1), T = ee(!1), E = (z) => z.split(/(\s+)/).map((te) => {
20672
+ const A = ee(!1), T = ee(!1), E = (z) => z.split(/(\s+)/).map((te) => {
20673
20673
  if (te.trim() === "") return te;
20674
20674
  const pe = te.toLowerCase();
20675
20675
  return pe.charAt(0).toUpperCase() + pe.slice(1);
@@ -20692,11 +20692,11 @@ const yk = { class: "space-y-3" }, vk = {
20692
20692
  default:
20693
20693
  return z;
20694
20694
  }
20695
- }, A = (z) => {
20695
+ }, D = (z) => {
20696
20696
  if (!z) return null;
20697
20697
  const te = Array.isArray(z) ? z.join("") : z;
20698
20698
  return te ? new Set(te) : null;
20699
- }, w = M(() => A(r.allowChars)), _ = (z, te) => (z.lastIndex = 0, z.test(te)), P = (z) => {
20699
+ }, w = M(() => D(r.allowChars)), _ = (z, te) => (z.lastIndex = 0, z.test(te)), P = (z) => {
20700
20700
  if (r.valueType === "free" || r.valueType === "email" || r.valueType === "password")
20701
20701
  return !0;
20702
20702
  const te = z === " ", pe = /\d/.test(z), Me = new RegExp("\\p{L}", "u").test(z), Je = new RegExp("\\p{N}", "u").test(z);
@@ -20739,22 +20739,22 @@ const yk = { class: "space-y-3" }, vk = {
20739
20739
  z.setRangeText(te, pe, Me, "end"), R(z, N(z.value));
20740
20740
  }, J = (z) => {
20741
20741
  var Me;
20742
- if (!Y || D.value || T.value || !((Me = z.inputType) != null && Me.startsWith("insert"))) return;
20742
+ if (!Y || A.value || T.value || !((Me = z.inputType) != null && Me.startsWith("insert"))) return;
20743
20743
  const te = z.data;
20744
20744
  if (te == null) return;
20745
20745
  const pe = N(te);
20746
20746
  pe !== te && (z.preventDefault(), pe.length > 0 && Z(Y, pe));
20747
20747
  }, re = (z) => {
20748
20748
  var Me;
20749
- if (!Y || D.value || T.value) return;
20749
+ if (!Y || A.value || T.value) return;
20750
20750
  const te = ((Me = z.clipboardData) == null ? void 0 : Me.getData("text")) ?? "", pe = N(te);
20751
20751
  pe !== te && (z.preventDefault(), pe.length > 0 && Z(Y, pe));
20752
20752
  }, fe = (z) => {
20753
- if (!Y || D.value || T.value) return;
20753
+ if (!Y || A.value || T.value) return;
20754
20754
  const te = z.target, pe = te.value ?? "", Me = N(pe);
20755
20755
  Me === pe ? j(Me) : R(te, Me);
20756
- }, ke = () => D.value = !0, Ce = () => {
20757
- if (D.value = !1, !Y) return;
20756
+ }, ke = () => A.value = !0, Ce = () => {
20757
+ if (A.value = !1, !Y) return;
20758
20758
  const z = Y.value ?? "", te = N(z);
20759
20759
  te === z ? j(te) : R(Y, te);
20760
20760
  };
@@ -20911,7 +20911,7 @@ const yk = { class: "space-y-3" }, vk = {
20911
20911
  z !== m.value && (m.value = z);
20912
20912
  }
20913
20913
  );
20914
- const g = ee(!1), v = ee(!1), D = (ne) => ne.split(/(\s+)/).map((z) => {
20914
+ const g = ee(!1), v = ee(!1), A = (ne) => ne.split(/(\s+)/).map((z) => {
20915
20915
  if (z.trim() === "") return z;
20916
20916
  const te = z.toLowerCase();
20917
20917
  return te.charAt(0).toUpperCase() + te.slice(1);
@@ -20925,7 +20925,7 @@ const yk = { class: "space-y-3" }, vk = {
20925
20925
  case "lowercase":
20926
20926
  return ne.toLowerCase();
20927
20927
  case "titlecase":
20928
- return D(ne);
20928
+ return A(ne);
20929
20929
  case "sentencecase":
20930
20930
  return T(ne);
20931
20931
  case "none":
@@ -20945,7 +20945,7 @@ const yk = { class: "space-y-3" }, vk = {
20945
20945
  if (!ne) return null;
20946
20946
  const z = Array.isArray(ne) ? ne.join("") : ne;
20947
20947
  return z ? new Set(z) : null;
20948
- }, A = M(() => k(a.allowChars)), w = (ne, z) => (ne.lastIndex = 0, ne.test(z)), _ = (ne) => {
20948
+ }, D = M(() => k(a.allowChars)), w = (ne, z) => (ne.lastIndex = 0, ne.test(z)), _ = (ne) => {
20949
20949
  if (ne === `
20950
20950
  `) return a.valueType !== "number";
20951
20951
  if (a.valueType === "free") return !0;
@@ -20954,7 +20954,7 @@ const yk = { class: "space-y-3" }, vk = {
20954
20954
  }, P = (ne) => {
20955
20955
  let z = "";
20956
20956
  for (const te of ne) {
20957
- const pe = !!A.value && A.value.has(te);
20957
+ const pe = !!D.value && D.value.has(te);
20958
20958
  a.pattern && !pe && !w(a.pattern, te) || !pe && !_(te) || (z += te);
20959
20959
  }
20960
20960
  return z;
@@ -21600,10 +21600,20 @@ const yk = { class: "space-y-3" }, vk = {
21600
21600
  typeof o != "function" && console.error("[DCodeWizardTabs] useApi() must expose DCodeApi()");
21601
21601
  const i = ee(n.defaultTab), r = M({
21602
21602
  get() {
21603
- return n.modelValue ?? i.value;
21603
+ var k;
21604
+ if (typeof n.modelValue == "string") {
21605
+ const D = (k = n.tabs) == null ? void 0 : k.findIndex((w) => w.key === n.modelValue);
21606
+ if (D !== void 0 && D >= 0) return D;
21607
+ }
21608
+ return (typeof n.modelValue == "number" ? n.modelValue : void 0) ?? i.value;
21604
21609
  },
21605
21610
  set(k) {
21606
- n.modelValue === void 0 ? i.value = k : s("update:modelValue", k);
21611
+ var D;
21612
+ if (i.value = k, typeof n.modelValue == "string") {
21613
+ const w = (D = n.tabs) == null ? void 0 : D[k];
21614
+ w ? s("update:modelValue", w.key) : s("update:modelValue", k);
21615
+ } else
21616
+ s("update:modelValue", k);
21607
21617
  }
21608
21618
  }), l = M(() => {
21609
21619
  var k;
@@ -21624,48 +21634,49 @@ const yk = { class: "space-y-3" }, vk = {
21624
21634
  return typeof n.apiOptions == "function" ? n.apiOptions() : n.apiOptions;
21625
21635
  }
21626
21636
  function y(k) {
21627
- const A = k.endpoint || {};
21637
+ const D = k.endpoint || {};
21628
21638
  return {
21629
- apiModule: k.apiModule || A.apiModule,
21630
- apiAction: k.apiAction || A.apiAction,
21631
- apiUrl: A.apiUrl,
21632
- apiMethod: A.apiMethod || "GET",
21639
+ apiModule: k.apiModule || D.apiModule,
21640
+ apiAction: k.apiAction || D.apiAction,
21641
+ apiUrl: D.apiUrl,
21642
+ apiMethod: D.apiMethod || "GET",
21633
21643
  apiParams: k.apiParams
21634
21644
  };
21635
21645
  }
21636
21646
  function m(k) {
21637
21647
  if (n.isWizard || !n.allowTabClick || n.disabled) return !1;
21638
- const A = n.tabs[k];
21639
- return !(!A || A.disabled);
21648
+ const D = n.tabs[k];
21649
+ return !(!D || D.disabled);
21640
21650
  }
21641
21651
  async function g(k) {
21642
21652
  if (typeof k.tab.fetchData == "function") {
21643
21653
  const U = await k.tab.fetchData(), G = (U == null ? void 0 : U.data) ?? U;
21644
21654
  return (G == null ? void 0 : G.data) ?? G;
21645
21655
  }
21656
+ const D = y(k.tab);
21657
+ if (!(D.apiModule && D.apiAction || D.apiUrl))
21658
+ return null;
21646
21659
  if (typeof o != "function") throw new Error("DCodeApi is not available");
21647
- const A = y(k.tab);
21648
- if (!(A.apiModule && A.apiAction || A.apiUrl)) throw new Error(`Tab "${k.tab.key}" missing apiModule/apiAction or endpoint.apiUrl`);
21649
21660
  const _ = h();
21650
21661
  let P;
21651
- if (A.apiUrl)
21662
+ if (D.apiUrl)
21652
21663
  P = await o("", "", _, {
21653
- _url: A.apiUrl,
21654
- _method: A.apiMethod,
21655
- _data: A.apiParams ?? void 0
21664
+ _url: D.apiUrl,
21665
+ _method: D.apiMethod,
21666
+ _data: D.apiParams ?? void 0
21656
21667
  });
21657
21668
  else {
21658
- const U = { ..._, ...A.apiParams };
21659
- P = await o(A.apiModule, A.apiAction, U);
21669
+ const U = { ..._, ...D.apiParams };
21670
+ P = await o(D.apiModule, D.apiAction, U);
21660
21671
  }
21661
21672
  const I = (P == null ? void 0 : P.data) ?? P;
21662
21673
  return (I == null ? void 0 : I.data) ?? I;
21663
21674
  }
21664
- async function v(k, { force: A = !1 } = {}) {
21675
+ async function v(k, { force: D = !1 } = {}) {
21665
21676
  const w = u(k), _ = n.tabs[w];
21666
21677
  if (!_) return;
21667
21678
  const P = f(_);
21668
- if (!(n.cache && P.loaded && !A) && !P.loading) {
21679
+ if (!(n.cache && P.loaded && !D) && !P.loading) {
21669
21680
  P.loading = !0, P.error = null;
21670
21681
  try {
21671
21682
  const I = await g({ tabIndex: w, tab: _ });
@@ -21678,9 +21689,9 @@ const yk = { class: "space-y-3" }, vk = {
21678
21689
  }
21679
21690
  }
21680
21691
  }
21681
- function D(k) {
21682
- const A = u(k);
21683
- m(A) && A !== r.value && (r.value = A);
21692
+ function A(k) {
21693
+ const D = u(k);
21694
+ m(D) && D !== r.value && (r.value = D);
21684
21695
  }
21685
21696
  function T(k = r.value) {
21686
21697
  return v(k, { force: !0 });
@@ -21696,15 +21707,15 @@ const yk = { class: "space-y-3" }, vk = {
21696
21707
  return Be(
21697
21708
  () => n.tabs,
21698
21709
  (k) => {
21699
- for (const A of k ?? []) f(A);
21710
+ for (const D of k ?? []) f(D);
21700
21711
  },
21701
21712
  { immediate: !0 }
21702
21713
  ), Be(
21703
21714
  () => r.value,
21704
21715
  async (k) => {
21705
21716
  var w;
21706
- const A = (w = n.tabs) == null ? void 0 : w[k];
21707
- A && s("change", { tabIndex: k, tab: A }), await v(k);
21717
+ const D = (w = n.tabs) == null ? void 0 : w[k];
21718
+ D && s("change", { tabIndex: k, tab: D }), await v(k);
21708
21719
  },
21709
21720
  { immediate: !0 }
21710
21721
  ), Be(
@@ -21713,7 +21724,7 @@ const yk = { class: "space-y-3" }, vk = {
21713
21724
  k && await v(r.value);
21714
21725
  },
21715
21726
  { immediate: !0 }
21716
- ), (k, A) => (p(), X(b(cs), {
21727
+ ), (k, D) => (p(), X(b(cs), {
21717
21728
  class: ce(["w-full", { "flex flex-row": t.isVertical }])
21718
21729
  }, {
21719
21730
  default: O(() => [
@@ -21750,7 +21761,7 @@ const yk = { class: "space-y-3" }, vk = {
21750
21761
  }, W(w.title), 3)
21751
21762
  ]))), 128)) : (p(!0), C(xe, { key: 0 }, Ne(t.tabs, (w, _) => (p(), C("div", {
21752
21763
  key: w.key,
21753
- onClick: (P) => D(_),
21764
+ onClick: (P) => A(_),
21754
21765
  style: Qe({ zIndex: t.tabs.length - _ }),
21755
21766
  class: "relative flex-1 group"
21756
21767
  }, [
@@ -21782,7 +21793,7 @@ const yk = { class: "space-y-3" }, vk = {
21782
21793
  type: "button",
21783
21794
  variant: "ghost",
21784
21795
  disabled: !m(_),
21785
- onClick: (P) => D(_),
21796
+ onClick: (P) => A(_),
21786
21797
  class: ce(["relative min-h-[3rem] h-auto py-2 flex items-center justify-center gap-2 px-4 transition-all rounded-none", b(_e)(
21787
21798
  "border-b border-r border-slate-200 dark:border-zinc-700",
21788
21799
  !t.isVertical && _ === t.tabs.length - 1 && "border-r-0",
@@ -21819,7 +21830,7 @@ const yk = { class: "space-y-3" }, vk = {
21819
21830
  tab: c.value,
21820
21831
  tabIndex: r.value
21821
21832
  }, () => [
21822
- A[0] || (A[0] = x("div", { class: "rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground" }, "Loading...", -1))
21833
+ D[0] || (D[0] = x("div", { class: "rounded-lg border bg-muted/30 px-4 py-3 text-sm text-muted-foreground" }, "Loading...", -1))
21823
21834
  ]) : he(k.$slots, `tab-${c.value.key}`, {
21824
21835
  key: 1,
21825
21836
  tab: c.value,
@@ -21829,9 +21840,9 @@ const yk = { class: "space-y-3" }, vk = {
21829
21840
  reload: T
21830
21841
  }, () => [
21831
21842
  x("div", rM, [
21832
- A[1] || (A[1] = ge(" Slot ", -1)),
21843
+ D[1] || (D[1] = ge(" Slot ", -1)),
21833
21844
  x("code", lM, "tab-" + W(c.value.key), 1),
21834
- A[2] || (A[2] = ge(" belum dibuat. ", -1))
21845
+ D[2] || (D[2] = ge(" belum dibuat. ", -1))
21835
21846
  ])
21836
21847
  ])
21837
21848
  ], 64)) : H("", !0)
@@ -21850,7 +21861,7 @@ const yk = { class: "space-y-3" }, vk = {
21850
21861
  onClick: E,
21851
21862
  disabled: r.value <= 0
21852
21863
  }, {
21853
- default: O(() => [...A[3] || (A[3] = [
21864
+ default: O(() => [...D[3] || (D[3] = [
21854
21865
  ge(" Sebelumnya ", -1)
21855
21866
  ])]),
21856
21867
  _: 1
@@ -21860,7 +21871,7 @@ const yk = { class: "space-y-3" }, vk = {
21860
21871
  type: "button",
21861
21872
  onClick: $
21862
21873
  }, {
21863
- default: O(() => [...A[4] || (A[4] = [
21874
+ default: O(() => [...D[4] || (D[4] = [
21864
21875
  ge(" Selanjutnya ", -1)
21865
21876
  ])]),
21866
21877
  _: 1
@@ -21958,8 +21969,8 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
21958
21969
  layoutCode: {}
21959
21970
  },
21960
21971
  setup(t) {
21961
- var A, w;
21962
- const e = t, n = (w = (A = jd()) == null ? void 0 : A.appContext) == null ? void 0 : w.app;
21972
+ var D, w;
21973
+ const e = t, n = (w = (D = jd()) == null ? void 0 : D.appContext) == null ? void 0 : w.app;
21963
21974
  n && !n._context.provides[Symbol.for("vue-router-route-location")] && n.provide(Symbol.for("vue-router-route-location"), {
21964
21975
  query: {},
21965
21976
  params: {},
@@ -21998,14 +22009,14 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
21998
22009
  return _ ? _[1] : null;
21999
22010
  }), d = ee({}), f = ee(null), h = ee(!0), y = ee(!1), { onReady: m, handleAction: g } = Ad(
22000
22011
  e.layoutCode
22001
- ), v = ee(e.layoutCode), D = M(() => {
22012
+ ), v = ee(e.layoutCode), A = M(() => {
22002
22013
  var I;
22003
22014
  if (!f.value) return "";
22004
22015
  const _ = ((I = r == null ? void 0 : r.value) == null ? void 0 : I.toLowerCase()) || "en";
22005
22016
  return (_ === "en" || _.startsWith("en-") ? f.value.titleEN : f.value.titleID) || f.value.title || e.layoutCode;
22006
22017
  });
22007
22018
  Be(
22008
- D,
22019
+ A,
22009
22020
  (_) => {
22010
22021
  _ && l(_);
22011
22022
  },
@@ -22912,7 +22923,7 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
22912
22923
  const s = t, a = n, { apiUrl: o } = $t(), i = si(), r = Cc(), { locale: l } = Ga(), c = ee(""), u = ee(1), d = ee(s.perPage), f = ee({
22913
22924
  key: "",
22914
22925
  direction: "asc"
22915
- }), h = ee([]), y = ee(!1), m = ee(0), g = ee({}), v = ee([]), D = ee(null), T = ee(!0), E = ee([]), $ = ee([]), k = ee([]), A = ee(!1), w = ee(!1), _ = ee({}), P = ee(null), I = ee(null), V = ee(null), U = ee([]), G = M(() => {
22926
+ }), h = ee([]), y = ee(!1), m = ee(0), g = ee({}), v = ee([]), A = ee(null), T = ee(!0), E = ee([]), $ = ee([]), k = ee([]), D = ee(!1), w = ee(!1), _ = ee({}), P = ee(null), I = ee(null), V = ee(null), U = ee([]), G = M(() => {
22916
22927
  if (gt.value.length === 0) return !1;
22917
22928
  const S = gt.value.map((L) => {
22918
22929
  const oe = De.value.find((K) => K.type === "CHECKBOX"), B = (oe == null ? void 0 : oe.keyCheckbox) || "id";
@@ -22963,22 +22974,22 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
22963
22974
  const j = (S) => S && typeof S == "string" && S.trim() ? S : void 0, R = M(
22964
22975
  () => {
22965
22976
  var S, L, oe, B;
22966
- return j((L = (S = D.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiModule) || j((B = (oe = D.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiModule) || s.apiModule;
22977
+ return j((L = (S = A.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiModule) || j((B = (oe = A.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiModule) || s.apiModule;
22967
22978
  }
22968
22979
  ), Z = M(
22969
22980
  () => {
22970
22981
  var S, L, oe, B;
22971
- return j((L = (S = D.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiAction) || j((B = (oe = D.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiAction) || s.apiAction;
22982
+ return j((L = (S = A.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiAction) || j((B = (oe = A.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiAction) || s.apiAction;
22972
22983
  }
22973
22984
  ), J = M(
22974
22985
  () => {
22975
22986
  var S, L, oe, B;
22976
- return j((L = (S = D.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiMethod) || j((B = (oe = D.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiMethod) || s.apiMethod || "POST";
22987
+ return j((L = (S = A.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiMethod) || j((B = (oe = A.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiMethod) || s.apiMethod || "POST";
22977
22988
  }
22978
22989
  ), re = M(
22979
22990
  () => {
22980
22991
  var S, L, oe, B;
22981
- return j((L = (S = D.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiUrl) || j((B = (oe = D.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiUrl) || s.apiUrl;
22992
+ return j((L = (S = A.value) == null ? void 0 : S.endpoint) == null ? void 0 : L.apiUrl) || j((B = (oe = A.value) == null ? void 0 : oe.endpointGlobal) == null ? void 0 : B.apiUrl) || s.apiUrl;
22982
22993
  }
22983
22994
  );
22984
22995
  M(() => s.permissionBase ? s.permissionBase : i.meta.permissionPath ? i.meta.permissionPath : i.path);
@@ -22995,7 +23006,7 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
22995
23006
  }, Ce = () => {
22996
23007
  let S = null;
22997
23008
  if (s.tableConfig && (S = s.tableConfig), S) {
22998
- D.value = S, S.headers && (v.value = S.headers.map((B) => {
23009
+ A.value = S, S.headers && (v.value = S.headers.map((B) => {
22999
23010
  var Ae, Ee, He, rt, bt, Zs, Hi, Ui, qi, Yi;
23000
23011
  if (B.key === "action" || ((Ae = B.custom) == null ? void 0 : Ae.type) === "ACTION" || ((Ee = B.custom) == null ? void 0 : Ee.type) === "action") {
23001
23012
  const un = ((He = B.custom) == null ? void 0 : He.actionCustom) || ((rt = B.custom) == null ? void 0 : rt.action);
@@ -23322,7 +23333,7 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
23322
23333
  });
23323
23334
  }, Wi = (S, L) => {
23324
23335
  if (S.requireConfirm) {
23325
- P.value = { button: S, row: L }, A.value = !0;
23336
+ P.value = { button: S, row: L }, D.value = !0;
23326
23337
  return;
23327
23338
  }
23328
23339
  if (S.openDialog) {
@@ -23416,7 +23427,7 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
23416
23427
  }
23417
23428
  }
23418
23429
  }, Ni = () => {
23419
- A.value = !1, P.value = null;
23430
+ D.value = !1, P.value = null;
23420
23431
  }, Od = M(() => P.value ? P.value.button.confirmTitle || "Confirm" : ""), Td = M(() => P.value ? P.value.button.confirmMessage || "Confirm" : "");
23421
23432
  e({
23422
23433
  fetchData: it,
@@ -23857,8 +23868,8 @@ const hM = { class: "w-full" }, pM = { class: "relative mx-auto min-h-[37.5rem]"
23857
23868
  ])
23858
23869
  ])) : H("", !0),
23859
23870
  F(Qo, {
23860
- modelValue: A.value,
23861
- "onUpdate:modelValue": L[5] || (L[5] = (B) => A.value = B),
23871
+ modelValue: D.value,
23872
+ "onUpdate:modelValue": L[5] || (L[5] = (B) => D.value = B),
23862
23873
  title: Od.value,
23863
23874
  icon: "AlertCircle",
23864
23875
  "max-width": 450,