@roku-ui/vue 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -907,9 +907,9 @@ function dn(...e) {
907
907
  };
908
908
  return (f) => {
909
909
  const v = Y(s), g = Date.now() - t, m = () => l = f();
910
- return c(), v <= 0 ? (t = Date.now(), m()) : (g > v && (i || !n) ? (t = Date.now(), m()) : o && (l = new Promise((x, $) => {
911
- a = u ? $ : x, r = setTimeout(() => {
912
- t = Date.now(), n = !0, x(m()), c();
910
+ return c(), v <= 0 ? (t = Date.now(), m()) : (g > v && (i || !n) ? (t = Date.now(), m()) : o && (l = new Promise((w, $) => {
911
+ a = u ? $ : w, r = setTimeout(() => {
912
+ t = Date.now(), n = !0, w(m()), c();
913
913
  }, Math.max(0, v - g));
914
914
  })), !i && !r && (r = setTimeout(() => n = !0, v)), n = !1, l);
915
915
  };
@@ -1171,23 +1171,23 @@ function Cn(e, t, r, n = {}) {
1171
1171
  shallow: c,
1172
1172
  window: d = ae,
1173
1173
  eventFilter: f,
1174
- onError: v = (w) => {
1175
- console.error(w);
1174
+ onError: v = (x) => {
1175
+ console.error(x);
1176
1176
  },
1177
1177
  initOnMounted: g
1178
1178
  } = n, m = (c ? gt : _)(t);
1179
1179
  if (!r)
1180
1180
  try {
1181
1181
  r = _n("getDefaultStorage", () => {
1182
- var w;
1183
- return (w = ae) == null ? void 0 : w.localStorage;
1182
+ var x;
1183
+ return (x = ae) == null ? void 0 : x.localStorage;
1184
1184
  })();
1185
- } catch (w) {
1186
- v(w);
1185
+ } catch (x) {
1186
+ v(x);
1187
1187
  }
1188
1188
  if (!r)
1189
1189
  return m;
1190
- const x = Y(t), $ = kn(x), b = (a = n.serializer) != null ? a : $n[$], { pause: A, resume: T } = gn(
1190
+ const w = Y(t), $ = kn(w), b = (a = n.serializer) != null ? a : $n[$], { pause: A, resume: T } = gn(
1191
1191
  m,
1192
1192
  () => M(m.value),
1193
1193
  { flush: l, deep: s, eventFilter: f }
@@ -1195,11 +1195,11 @@ function Cn(e, t, r, n = {}) {
1195
1195
  d && o && Be(() => {
1196
1196
  r instanceof Storage ? N(d, "storage", H) : N(d, Pt, I), g && H();
1197
1197
  }), g || H();
1198
- function C(w, R) {
1198
+ function C(x, R) {
1199
1199
  if (d) {
1200
1200
  const V = {
1201
1201
  key: e,
1202
- oldValue: w,
1202
+ oldValue: x,
1203
1203
  newValue: R,
1204
1204
  storageArea: r
1205
1205
  };
@@ -1208,48 +1208,48 @@ function Cn(e, t, r, n = {}) {
1208
1208
  }));
1209
1209
  }
1210
1210
  }
1211
- function M(w) {
1211
+ function M(x) {
1212
1212
  try {
1213
1213
  const R = r.getItem(e);
1214
- if (w == null)
1214
+ if (x == null)
1215
1215
  C(R, null), r.removeItem(e);
1216
1216
  else {
1217
- const V = b.write(w);
1217
+ const V = b.write(x);
1218
1218
  R !== V && (r.setItem(e, V), C(R, V));
1219
1219
  }
1220
1220
  } catch (R) {
1221
1221
  v(R);
1222
1222
  }
1223
1223
  }
1224
- function y(w) {
1225
- const R = w ? w.newValue : r.getItem(e);
1224
+ function y(x) {
1225
+ const R = x ? x.newValue : r.getItem(e);
1226
1226
  if (R == null)
1227
- return i && x != null && r.setItem(e, b.write(x)), x;
1228
- if (!w && u) {
1227
+ return i && w != null && r.setItem(e, b.write(w)), w;
1228
+ if (!x && u) {
1229
1229
  const V = b.read(R);
1230
- return typeof u == "function" ? u(V, x) : $ === "object" && !Array.isArray(V) ? { ...x, ...V } : V;
1230
+ return typeof u == "function" ? u(V, w) : $ === "object" && !Array.isArray(V) ? { ...w, ...V } : V;
1231
1231
  } else return typeof R != "string" ? R : b.read(R);
1232
1232
  }
1233
- function H(w) {
1234
- if (!(w && w.storageArea !== r)) {
1235
- if (w && w.key == null) {
1236
- m.value = x;
1233
+ function H(x) {
1234
+ if (!(x && x.storageArea !== r)) {
1235
+ if (x && x.key == null) {
1236
+ m.value = w;
1237
1237
  return;
1238
1238
  }
1239
- if (!(w && w.key !== e)) {
1239
+ if (!(x && x.key !== e)) {
1240
1240
  A();
1241
1241
  try {
1242
- (w == null ? void 0 : w.newValue) !== b.write(m.value) && (m.value = y(w));
1242
+ (x == null ? void 0 : x.newValue) !== b.write(m.value) && (m.value = y(x));
1243
1243
  } catch (R) {
1244
1244
  v(R);
1245
1245
  } finally {
1246
- w ? nt(T) : T();
1246
+ x ? nt(T) : T();
1247
1247
  }
1248
1248
  }
1249
1249
  }
1250
1250
  }
1251
- function I(w) {
1252
- H(w.detail);
1251
+ function I(x) {
1252
+ H(x.detail);
1253
1253
  }
1254
1254
  return m;
1255
1255
  }
@@ -1266,20 +1266,20 @@ function Mn(e, t = {}) {
1266
1266
  let s = 0, o = !0;
1267
1267
  if (ge) {
1268
1268
  const i = typeof t == "function" ? { onDrop: t } : t, u = (r = i.multiple) != null ? r : !0, c = (n = i.preventDefaultForUnhandled) != null ? n : !1, d = (m) => {
1269
- var x, $;
1270
- const b = Array.from(($ = (x = m.dataTransfer) == null ? void 0 : x.files) != null ? $ : []);
1269
+ var w, $;
1270
+ const b = Array.from(($ = (w = m.dataTransfer) == null ? void 0 : w.files) != null ? $ : []);
1271
1271
  return b.length === 0 ? null : u ? b : [b[0]];
1272
1272
  }, f = (m) => {
1273
1273
  if (i.dataTypes) {
1274
- const x = h(i.dataTypes);
1275
- return typeof x == "function" ? x(m) : x ? x.some(($) => m.includes($)) : !0;
1274
+ const w = h(i.dataTypes);
1275
+ return typeof w == "function" ? w(m) : w ? w.some(($) => m.includes($)) : !0;
1276
1276
  }
1277
1277
  return !0;
1278
1278
  }, v = (m) => {
1279
- var x, $;
1280
- const b = Array.from(($ = (x = m.dataTransfer) == null ? void 0 : x.items) != null ? $ : []), A = b.filter((M) => M.kind === "file").map((M) => M.type), T = f(A), C = u || b.filter((M) => M.kind === "file").length <= 1;
1279
+ var w, $;
1280
+ const b = Array.from(($ = (w = m.dataTransfer) == null ? void 0 : w.items) != null ? $ : []), A = b.filter((M) => M.kind === "file").map((M) => M.type), T = f(A), C = u || b.filter((M) => M.kind === "file").length <= 1;
1281
1281
  return T && C;
1282
- }, g = (m, x) => {
1282
+ }, g = (m, w) => {
1283
1283
  var $, b, A, T;
1284
1284
  if (o = v(m), !o) {
1285
1285
  c && m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "none");
@@ -1287,7 +1287,7 @@ function Mn(e, t = {}) {
1287
1287
  }
1288
1288
  m.preventDefault(), m.dataTransfer && (m.dataTransfer.dropEffect = "copy");
1289
1289
  const C = d(m);
1290
- switch (x) {
1290
+ switch (w) {
1291
1291
  case "enter":
1292
1292
  s += 1, a.value = !0, ($ = i.onEnter) == null || $.call(i, null, m);
1293
1293
  break;
@@ -1352,13 +1352,13 @@ function $e(e, t = {}) {
1352
1352
  const b = $.getBoundingClientRect();
1353
1353
  o.value = b.height, i.value = b.bottom, u.value = b.left, c.value = b.right, d.value = b.top, f.value = b.width, v.value = b.x, g.value = b.y;
1354
1354
  }
1355
- function x() {
1355
+ function w() {
1356
1356
  s === "sync" ? m() : s === "next-frame" && requestAnimationFrame(() => m());
1357
1357
  }
1358
- return wt(e, x), K(() => Z(e), ($) => !$ && x()), xt(e, x, {
1358
+ return wt(e, w), K(() => Z(e), ($) => !$ && w()), xt(e, w, {
1359
1359
  attributeFilter: ["style", "class"]
1360
- }), a && N("scroll", x, { capture: !0, passive: !0 }), n && N("resize", x, { passive: !0 }), Be(() => {
1361
- l && x();
1360
+ }), a && N("scroll", w, { capture: !0, passive: !0 }), n && N("resize", w, { passive: !0 }), Be(() => {
1361
+ l && w();
1362
1362
  }), {
1363
1363
  height: o,
1364
1364
  bottom: i,
@@ -1368,7 +1368,7 @@ function $e(e, t = {}) {
1368
1368
  width: f,
1369
1369
  x: v,
1370
1370
  y: g,
1371
- update: x
1371
+ update: w
1372
1372
  };
1373
1373
  }
1374
1374
  function We(e, t = {}) {
@@ -1459,7 +1459,7 @@ function En(e, t = {}) {
1459
1459
  }
1460
1460
  });
1461
1461
  function m(y, H) {
1462
- var I, w, R, V;
1462
+ var I, x, R, V;
1463
1463
  if (!u)
1464
1464
  return;
1465
1465
  const P = Y(e);
@@ -1467,13 +1467,13 @@ function En(e, t = {}) {
1467
1467
  return;
1468
1468
  (R = P instanceof Document ? u.document.body : P) == null || R.scrollTo({
1469
1469
  top: (I = Y(H)) != null ? I : g.value,
1470
- left: (w = Y(y)) != null ? w : v.value,
1470
+ left: (x = Y(y)) != null ? x : v.value,
1471
1471
  behavior: Y(i)
1472
1472
  });
1473
1473
  const X = ((V = P == null ? void 0 : P.document) == null ? void 0 : V.documentElement) || (P == null ? void 0 : P.documentElement) || P;
1474
1474
  v != null && (d.value = X.scrollLeft), g != null && (f.value = X.scrollTop);
1475
1475
  }
1476
- const x = _(!1), $ = Ve({
1476
+ const w = _(!1), $ = Ve({
1477
1477
  left: !0,
1478
1478
  right: !1,
1479
1479
  top: !0,
@@ -1484,25 +1484,25 @@ function En(e, t = {}) {
1484
1484
  top: !1,
1485
1485
  bottom: !1
1486
1486
  }), A = (y) => {
1487
- x.value && (x.value = !1, b.left = !1, b.right = !1, b.top = !1, b.bottom = !1, a(y));
1487
+ w.value && (w.value = !1, b.left = !1, b.right = !1, b.top = !1, b.bottom = !1, a(y));
1488
1488
  }, T = rr(A, r + n), C = (y) => {
1489
1489
  var H;
1490
1490
  if (!u)
1491
1491
  return;
1492
- const I = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Z(y), { display: w, flexDirection: R } = getComputedStyle(I), V = I.scrollLeft;
1492
+ const I = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Z(y), { display: x, flexDirection: R } = getComputedStyle(I), V = I.scrollLeft;
1493
1493
  b.left = V < d.value, b.right = V > d.value;
1494
1494
  const P = Math.abs(V) <= (s.left || 0), X = Math.abs(V) + I.clientWidth >= I.scrollWidth - (s.right || 0) - Dt;
1495
- w === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
1495
+ x === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
1496
1496
  let j = I.scrollTop;
1497
1497
  y === u.document && !j && (j = u.document.body.scrollTop), b.top = j < f.value, b.bottom = j > f.value;
1498
1498
  const he = Math.abs(j) <= (s.top || 0), z = Math.abs(j) + I.clientHeight >= I.scrollHeight - (s.bottom || 0) - Dt;
1499
- w === "flex" && R === "column-reverse" ? ($.top = z, $.bottom = he) : ($.top = he, $.bottom = z), f.value = j;
1499
+ x === "flex" && R === "column-reverse" ? ($.top = z, $.bottom = he) : ($.top = he, $.bottom = z), f.value = j;
1500
1500
  }, M = (y) => {
1501
1501
  var H;
1502
1502
  if (!u)
1503
1503
  return;
1504
1504
  const I = (H = y.target.documentElement) != null ? H : y.target;
1505
- C(I), x.value = !0, T(y), l(y);
1505
+ C(I), w.value = !0, T(y), l(y);
1506
1506
  };
1507
1507
  return N(
1508
1508
  e,
@@ -1526,7 +1526,7 @@ function En(e, t = {}) {
1526
1526
  ), {
1527
1527
  x: v,
1528
1528
  y: g,
1529
- isScrolling: x,
1529
+ isScrolling: w,
1530
1530
  arrivedState: $,
1531
1531
  directions: b,
1532
1532
  measure() {
@@ -1562,38 +1562,38 @@ function In(e = {}) {
1562
1562
  },
1563
1563
  current: s
1564
1564
  }, i = t ? Ve(o) : o, u = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set();
1565
- function d(m, x) {
1566
- m in i && (t ? i[m] = x : i[m].value = x);
1565
+ function d(m, w) {
1566
+ m in i && (t ? i[m] = w : i[m].value = w);
1567
1567
  }
1568
1568
  function f() {
1569
1569
  s.clear();
1570
1570
  for (const m of c)
1571
1571
  d(m, !1);
1572
1572
  }
1573
- function v(m, x) {
1573
+ function v(m, w) {
1574
1574
  var $, b;
1575
1575
  const A = ($ = m.key) == null ? void 0 : $.toLowerCase(), C = [(b = m.code) == null ? void 0 : b.toLowerCase(), A].filter(Boolean);
1576
- A && (x ? s.add(A) : s.delete(A));
1576
+ A && (w ? s.add(A) : s.delete(A));
1577
1577
  for (const M of C)
1578
- c.add(M), d(M, x);
1579
- A === "meta" && !x ? (u.forEach((M) => {
1578
+ c.add(M), d(M, w);
1579
+ A === "meta" && !w ? (u.forEach((M) => {
1580
1580
  s.delete(M), d(M, !1);
1581
- }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && x && [...s, ...C].forEach((M) => u.add(M));
1581
+ }), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && w && [...s, ...C].forEach((M) => u.add(M));
1582
1582
  }
1583
1583
  N(r, "keydown", (m) => (v(m, !0), l(m)), { passive: a }), N(r, "keyup", (m) => (v(m, !1), l(m)), { passive: a }), N("blur", f, { passive: !0 }), N("focus", f, { passive: !0 });
1584
1584
  const g = new Proxy(
1585
1585
  i,
1586
1586
  {
1587
- get(m, x, $) {
1588
- if (typeof x != "string")
1589
- return Reflect.get(m, x, $);
1590
- if (x = x.toLowerCase(), x in n && (x = n[x]), !(x in i))
1591
- if (/[+_-]/.test(x)) {
1592
- const A = x.split(/[+_-]/g).map((T) => T.trim());
1593
- i[x] = p(() => A.every((T) => Y(g[T])));
1587
+ get(m, w, $) {
1588
+ if (typeof w != "string")
1589
+ return Reflect.get(m, w, $);
1590
+ if (w = w.toLowerCase(), w in n && (w = n[w]), !(w in i))
1591
+ if (/[+_-]/.test(w)) {
1592
+ const A = w.split(/[+_-]/g).map((T) => T.trim());
1593
+ i[w] = p(() => A.every((T) => Y(g[T])));
1594
1594
  } else
1595
- i[x] = _(!1);
1596
- const b = Reflect.get(m, x, $);
1595
+ i[w] = _(!1);
1596
+ const b = Reflect.get(m, w, $);
1597
1597
  return t ? Y(b) : b;
1598
1598
  }
1599
1599
  }
@@ -1626,14 +1626,14 @@ function st(e = {}) {
1626
1626
  const M = v(C.touches[0]);
1627
1627
  M && ([c.value, d.value] = M, f.value = "touch");
1628
1628
  }
1629
- }, x = () => {
1629
+ }, w = () => {
1630
1630
  if (!u || !l)
1631
1631
  return;
1632
1632
  const C = v(u);
1633
1633
  u instanceof MouseEvent && C && (c.value = C[0] + l.scrollX, d.value = C[1] + l.scrollY);
1634
1634
  }, $ = () => {
1635
1635
  c.value = a.x, d.value = a.y;
1636
- }, b = i ? (C) => i(() => g(C), {}) : (C) => g(C), A = i ? (C) => i(() => m(C), {}) : (C) => m(C), T = i ? () => i(() => x(), {}) : () => x();
1636
+ }, b = i ? (C) => i(() => g(C), {}) : (C) => g(C), A = i ? (C) => i(() => m(C), {}) : (C) => m(C), T = i ? () => i(() => w(), {}) : () => w();
1637
1637
  if (s) {
1638
1638
  const C = { passive: !0 };
1639
1639
  N(s, ["mousemove", "dragover"], b, C), r && t !== "movement" && (N(s, ["touchstart", "touchmove"], A, C), n && N(s, "touchend", $, C)), o && t === "page" && N(l, "scroll", T, { passive: !0 });
@@ -2925,8 +2925,8 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
2925
2925
  let i = 0, u = 0, c = 0, d = 0, f = 0, v = 0;
2926
2926
  const g = [];
2927
2927
  for (let m = 0; m < a.value.length; m++) {
2928
- const x = r.value[m];
2929
- x && (x.position || (x.position = t.position), x.position === "top-left" ? (g.push(i), i += a.value[m].height + t.gap) : x.position === "top-right" ? (g.push(u), u += a.value[m].height + t.gap) : x.position === "top" ? (g.push(c), c += a.value[m].height + t.gap) : x.position === "bottom-left" ? (g.push(d), d += a.value[m].height + t.gap) : x.position === "bottom-right" ? (g.push(f), f += a.value[m].height + t.gap) : x.position === "bottom" && (g.push(v), v += a.value[m].height + t.gap));
2928
+ const w = r.value[m];
2929
+ w && (w.position || (w.position = t.position), w.position === "top-left" ? (g.push(i), i += a.value[m].height + t.gap) : w.position === "top-right" ? (g.push(u), u += a.value[m].height + t.gap) : w.position === "top" ? (g.push(c), c += a.value[m].height + t.gap) : w.position === "bottom-left" ? (g.push(d), d += a.value[m].height + t.gap) : w.position === "bottom-right" ? (g.push(f), f += a.value[m].height + t.gap) : w.position === "bottom" && (g.push(v), v += a.value[m].height + t.gap));
2930
2930
  }
2931
2931
  return g;
2932
2932
  });
@@ -3077,7 +3077,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3077
3077
  }
3078
3078
  ] : []);
3079
3079
  let g;
3080
- const m = p(() => He(r.value).value[5]), x = p(() => {
3080
+ const m = p(() => He(r.value).value[5]), w = p(() => {
3081
3081
  var b;
3082
3082
  return t.loading ? (g ? g.play() : g = (b = o.value) == null ? void 0 : b.animate(v.value, {
3083
3083
  duration: 1e3,
@@ -3132,7 +3132,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3132
3132
  },
3133
3133
  h(a).class
3134
3134
  ]]),
3135
- style: O([h(a).style, x.value, $.value])
3135
+ style: O([h(a).style, w.value, $.value])
3136
3136
  }, {
3137
3137
  default: ee(() => [
3138
3138
  D(b.$slots, "default")
@@ -3493,7 +3493,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3493
3493
  type: "text",
3494
3494
  index: { dark: 6, light: 4 }
3495
3495
  });
3496
- function x(b) {
3496
+ function w(b) {
3497
3497
  l.value === b && o.value ? (n("select", 0), l.value = 0) : (n("select", b + 1), l.value = b + 1);
3498
3498
  }
3499
3499
  const $ = p(() => {
@@ -3515,7 +3515,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3515
3515
  class: "pr-1",
3516
3516
  onMouseover: (M) => i.value = C + 1,
3517
3517
  onMouseleave: A[0] || (A[0] = (M) => i.value = -1),
3518
- onPointerdown: (M) => x(C)
3518
+ onPointerdown: (M) => w(C)
3519
3519
  }, [
3520
3520
  F("i", Q({ ref_for: !0 }, d(C) ? h(g)[C].value : h(m), {
3521
3521
  class: ["active:translate-y-1px", [f(C)]]
@@ -3638,7 +3638,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3638
3638
  }, [
3639
3639
  at(F("input", Q({
3640
3640
  id: h(o),
3641
- "onUpdate:modelValue": m[0] || (m[0] = (x) => r.value = x)
3641
+ "onUpdate:modelValue": m[0] || (m[0] = (w) => r.value = w)
3642
3642
  }, g.$attrs, {
3643
3643
  class: "hidden",
3644
3644
  type: "checkbox"
@@ -3654,10 +3654,10 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3654
3654
  ref: n,
3655
3655
  class: B([[l.value.wrapper, ...d.value.wrapper, h(v).class], "relative inline-block"]),
3656
3656
  style: O([h(v).style, f.value.wrapper]),
3657
- onPointerdown: m[1] || (m[1] = (x) => a.value = !0),
3658
- onPointerup: m[2] || (m[2] = (x) => a.value = !1),
3659
- onPointerleave: m[3] || (m[3] = (x) => a.value = !1),
3660
- onPointerenter: m[4] || (m[4] = (x) => x.buttons === 1 && (a.value = !0))
3657
+ onPointerdown: m[1] || (m[1] = (w) => a.value = !0),
3658
+ onPointerup: m[2] || (m[2] = (w) => a.value = !1),
3659
+ onPointerleave: m[3] || (m[3] = (w) => a.value = !1),
3660
+ onPointerenter: m[4] || (m[4] = (w) => w.buttons === 1 && (a.value = !0))
3661
3661
  }, [
3662
3662
  F("div", {
3663
3663
  class: B(["absolute top-50% -translate-y-50%", [l.value.indicator, d.value.indicator, s.value.indicator, r.value ? l.value.active : l.value.inactive, h(v).class]]),
@@ -3760,24 +3760,24 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3760
3760
  const r = e, n = lr(), a = $e(n), l = _(), s = $e(() => l.value), o = p(() => {
3761
3761
  if (r.height)
3762
3762
  return r.height;
3763
- const w = n.value ? Number.parseFloat(getComputedStyle(n.value).paddingTop) + Number.parseFloat(getComputedStyle(n.value).paddingBottom) : 0, R = n.value ? Number.parseFloat(getComputedStyle(n.value).marginTop) + Number.parseFloat(getComputedStyle(n.value).marginBottom) : 0;
3764
- return a.height.value - w - R;
3763
+ const x = n.value ? Number.parseFloat(getComputedStyle(n.value).paddingTop) + Number.parseFloat(getComputedStyle(n.value).paddingBottom) : 0, R = n.value ? Number.parseFloat(getComputedStyle(n.value).marginTop) + Number.parseFloat(getComputedStyle(n.value).marginBottom) : 0;
3764
+ return a.height.value - x - R;
3765
3765
  }), i = _(), u = On(() => i.value), { x: c, y: d } = En(() => i.value), f = p(() => {
3766
- var w;
3767
- return (((w = i.value) == null ? void 0 : w.scrollHeight) ?? 0) - (u.value ?? 0);
3768
- }), v = Bn(() => i.value), g = p(() => d.value / f.value || 0), m = p(() => i.value ? u.value / v.value * u.value : 0), x = p(() => u.value - m.value), $ = p(() => {
3766
+ var x;
3767
+ return (((x = i.value) == null ? void 0 : x.scrollHeight) ?? 0) - (u.value ?? 0);
3768
+ }), v = Bn(() => i.value), g = p(() => d.value / f.value || 0), m = p(() => i.value ? u.value / v.value * u.value : 0), w = p(() => u.value - m.value), $ = p(() => {
3769
3769
  if (!i.value)
3770
3770
  return null;
3771
- const w = g.value * x.value;
3771
+ const x = g.value * w.value;
3772
3772
  return {
3773
3773
  x: c.value,
3774
3774
  y: d.value,
3775
3775
  barHeight: m.value,
3776
- barTop: w
3776
+ barTop: x
3777
3777
  };
3778
3778
  }), b = _(!1), A = _(0), T = _(""), C = _(0), M = st({ type: "client" });
3779
- N(() => l.value, "pointerdown", (w) => {
3780
- b.value = !0, A.value = w.clientY, C.value = d.value, T.value = document.body.style.userSelect, document.body.style.userSelect = "none";
3779
+ N(() => l.value, "pointerdown", (x) => {
3780
+ b.value = !0, A.value = x.clientY, C.value = d.value, T.value = document.body.style.userSelect, document.body.style.userSelect = "none";
3781
3781
  }), N(() => document, "pointermove", () => {
3782
3782
  if (!b.value)
3783
3783
  return;
@@ -3785,7 +3785,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3785
3785
  d.value = C.value;
3786
3786
  return;
3787
3787
  }
3788
- const R = (M.y.value - A.value) / x.value;
3788
+ const R = (M.y.value - A.value) / w.value;
3789
3789
  d.value = C.value + R * f.value;
3790
3790
  }), N(() => document, "pointerup", () => {
3791
3791
  b.value = !1, document.body.style.userSelect = T.value;
@@ -3793,7 +3793,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3793
3793
  $el: i
3794
3794
  });
3795
3795
  const y = We(() => l.value), H = Ne("bg", { dark: 5, light: 6 }, 0.5), I = Ne("bg", { dark: 2, light: 9 }, 0.5);
3796
- return (w, R) => (S(), k("div", {
3796
+ return (x, R) => (S(), k("div", {
3797
3797
  style: O([{
3798
3798
  height: `${o.value}px`
3799
3799
  }, { overflow: "hidden", "max-height": "fit-content", position: "relative" }])
@@ -3801,7 +3801,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3801
3801
  $.value ? (S(), k("div", {
3802
3802
  key: 0,
3803
3803
  style: O({
3804
- width: `${w.barWidth}px`
3804
+ width: `${x.barWidth}px`
3805
3805
  }),
3806
3806
  class: "absolute right-0 z-999 h-full"
3807
3807
  }, [
@@ -3812,7 +3812,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3812
3812
  style: O([
3813
3813
  {
3814
3814
  right: "0px",
3815
- width: `${w.barWidth}px`,
3815
+ width: `${x.barWidth}px`,
3816
3816
  top: `${$.value.barTop}px`,
3817
3817
  height: `${$.value.barHeight}px`
3818
3818
  },
@@ -3827,13 +3827,13 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3827
3827
  ref_key: "scrollDomRef",
3828
3828
  ref: i,
3829
3829
  style: O({
3830
- paddingRight: `${w.barWidth}px`,
3830
+ paddingRight: `${x.barWidth}px`,
3831
3831
  scrollbarWidth: "none",
3832
3832
  height: "100%",
3833
3833
  overflowY: "scroll"
3834
3834
  })
3835
3835
  }, [
3836
- D(w.$slots, "default")
3836
+ D(x.$slots, "default")
3837
3837
  ], 4)
3838
3838
  ], 4));
3839
3839
  }
@@ -3859,7 +3859,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3859
3859
  searchable: { type: Boolean, default: !1 },
3860
3860
  filter: { type: Function, default: (e, t) => e.includes(t) }
3861
3861
  }, {
3862
- modelValue: { default: void 0 },
3862
+ modelValue: {},
3863
3863
  modelModifiers: {}
3864
3864
  }),
3865
3865
  emits: /* @__PURE__ */ te(["change", "input"], ["update:modelValue"]),
@@ -3874,24 +3874,23 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3874
3874
  }), K(l, () => {
3875
3875
  n("change", l.value);
3876
3876
  });
3877
- const d = p(() => l.value), f = p(() => g(d.value)), v = p(() => r.options.findIndex((z) => R(z, d.value)));
3878
- function g(z) {
3877
+ const d = p(() => l.value), f = p(() => m(d.value)), v = p(() => r.options.findIndex((z) => R(z, d.value))), g = _(f.value);
3878
+ K(f, () => {
3879
+ g.value = f.value;
3880
+ });
3881
+ function m(z) {
3879
3882
  return z ? typeof z == "string" || typeof z == "symbol" || typeof z == "number" ? String(z) : z.label ? z.label : z.id : "";
3880
3883
  }
3881
- function m(z) {
3884
+ function w(z) {
3882
3885
  if (z)
3883
3886
  return typeof z == "string" || typeof z == "symbol" || typeof z == "number" ? z : z.id;
3884
3887
  }
3885
- const x = _("");
3886
- K(f, () => {
3887
- x.value = f.value;
3888
- });
3889
3888
  function $(z) {
3890
3889
  i.value = !0;
3891
3890
  const U = z.target;
3892
- x.value = U.value, n("input", x.value);
3891
+ g.value = U.value, n("input", g.value);
3893
3892
  }
3894
- const b = p(() => r.searchable && x.value !== f.value ? r.options.filter((z) => r.filter(g(z), x.value)) : r.options);
3893
+ const b = p(() => r.searchable && g.value !== f.value ? r.options.filter((z) => r.filter(m(z), g.value)) : r.options);
3895
3894
  Ae("ArrowDown", (z) => {
3896
3895
  i.value && (z.preventDefault(), c.value === -1 && u.value !== -1 ? c.value = u.value : c.value === -1 && u.value === -1 && v.value !== -1 && (c.value = v.value), c.value = (c.value + 1) % r.options.length);
3897
3896
  }), Ae("ArrowUp", (z) => {
@@ -3928,7 +3927,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3928
3927
  K([i], () => {
3929
3928
  c.value = -1, u.value = -1;
3930
3929
  });
3931
- const w = p(() => i.value && ge ? H.value === 0 ? !1 : document.documentElement.clientHeight - I.value > H.value : !1);
3930
+ const x = p(() => i.value && ge ? H.value === 0 ? !1 : document.documentElement.clientHeight - I.value > H.value : !1);
3932
3931
  function R(z, U) {
3933
3932
  return U ? typeof z == "string" || typeof z == "symbol" || typeof z == "number" ? z === U : typeof U == "string" || typeof U == "symbol" || typeof U == "number" ? !1 : z.id === U.id : !1;
3934
3933
  }
@@ -3950,7 +3949,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3950
3949
  placeholder: z.placeholder,
3951
3950
  style: O([h(a).style]),
3952
3951
  readonly: !z.searchable,
3953
- value: x.value,
3952
+ value: g.value,
3954
3953
  "aria-label": z.ariaLabel,
3955
3954
  "aria-haspopup": "listbox",
3956
3955
  autocomplete: "off",
@@ -3964,7 +3963,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3964
3963
  ref_key: "dropdownRef",
3965
3964
  ref: y,
3966
3965
  class: B(["absolute z-10 mt-2 w-full flex-col overflow-hidden border rounded p-1", [h(P).class, M.value.dropdown, {
3967
- "bottom-10": !w.value
3966
+ "bottom-10": !x.value
3968
3967
  }]]),
3969
3968
  style: O([h(P).style])
3970
3969
  }, [
@@ -3974,7 +3973,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3974
3973
  ])
3975
3974
  ])) : (S(), k(ne, { key: 1 }, [
3976
3975
  (S(!0), k(ne, null, ke(b.value, (ue, ye) => (S(), k("div", {
3977
- key: m(ue),
3976
+ key: w(ue),
3978
3977
  class: B([[
3979
3978
  c.value === ye && h(j).class,
3980
3979
  u.value === ye && c.value === -1 && h(X).class
@@ -3991,7 +3990,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
3991
3990
  data: ue,
3992
3991
  selected: R(ue, d.value)
3993
3992
  }, () => [
3994
- Je(me(g(ue)), 1)
3993
+ Je(me(m(ue)), 1)
3995
3994
  ]),
3996
3995
  R(ue, d.value) ? (S(), k("div", el, U[3] || (U[3] = [
3997
3996
  F("i", { class: "i-fluent-checkmark-12-filled h-3 w-3" }, null, -1)
@@ -4051,8 +4050,8 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4051
4050
  bottom: Math.max(f.value.y, v.value.y)
4052
4051
  }, { target: $.target, shift: o.value, ctrl: i.value }));
4053
4052
  });
4054
- const x = p(() => c.value ? c.value.parentElement : null);
4055
- return N(x, "scroll", ($) => {
4053
+ const w = p(() => c.value ? c.value.parentElement : null);
4054
+ return N(w, "scroll", ($) => {
4056
4055
  g.value && (v.value = {
4057
4056
  x: d.x.value - m.left.value,
4058
4057
  y: d.y.value - m.top.value
@@ -4104,8 +4103,8 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4104
4103
  const t = e;
4105
4104
  function r(M, y, H) {
4106
4105
  const I = [];
4107
- for (let w = M; w <= y; w += H)
4108
- I.push(w);
4106
+ for (let x = M; x <= y; x += H)
4107
+ I.push(x);
4109
4108
  return I[I.length - 1] !== y && I.push(y), I;
4110
4109
  }
4111
4110
  function n(M, y) {
@@ -4114,8 +4113,8 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4114
4113
  return H;
4115
4114
  H.push(y[0]);
4116
4115
  const I = (y.length - 1) / (M - 1);
4117
- for (let w = 1; w < M - 1; w++)
4118
- H.push(y[Math.round(w * I)]);
4116
+ for (let x = 1; x < M - 1; x++)
4117
+ H.push(y[Math.round(x * I)]);
4119
4118
  return H.push(y[y.length - 1]), H;
4120
4119
  }
4121
4120
  const a = p(() => t.options ? t.options.length : t.tickNum ?? 0), l = p(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = p(() => n(a.value, l.value)), o = se(e, "modelValue"), i = p(() => l.value.length ?? 0), u = _(l.value.includes(o.value) ? l.value.indexOf(o.value) : 0);
@@ -4125,8 +4124,8 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4125
4124
  if (typeof M == "number") {
4126
4125
  let H = 1 / 0;
4127
4126
  for (let I = 0; I < l.value.length; I++) {
4128
- const w = Math.abs(l.value[I] - M);
4129
- w < H && (H = w, y = I);
4127
+ const x = Math.abs(l.value[I] - M);
4128
+ x < H && (H = x, y = I);
4130
4129
  }
4131
4130
  } else
4132
4131
  y = 0;
@@ -4138,7 +4137,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4138
4137
  }), we(() => {
4139
4138
  u.value = c(o.value);
4140
4139
  });
4141
- const m = _(), x = _(), $ = _(!1);
4140
+ const m = _(), w = _(), $ = _(!1);
4142
4141
  function b(M) {
4143
4142
  if (!$.value)
4144
4143
  return;
@@ -4147,7 +4146,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4147
4146
  return;
4148
4147
  }
4149
4148
  M.preventDefault(), M.stopPropagation();
4150
- const H = $e(m), { clientX: I } = M, w = H.left.value, V = H.right.value - w, P = Math.round((I - w) / V * (i.value - 1));
4149
+ const H = $e(m), { clientX: I } = M, x = H.left.value, V = H.right.value - x, P = Math.round((I - x) / V * (i.value - 1));
4151
4150
  if (P < 0) {
4152
4151
  u.value = 0;
4153
4152
  return;
@@ -4237,7 +4236,7 @@ const El = /* @__PURE__ */ ia(ua, [["render", da]]), Rl = /* @__PURE__ */ W({
4237
4236
  u.value !== -1 ? (S(), k("div", {
4238
4237
  key: 0,
4239
4238
  ref_key: "indicator",
4240
- ref: x,
4239
+ ref: w,
4241
4240
  class: B(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [T.value.indicator, C.value.indicator, nl]]),
4242
4241
  style: O([
4243
4242
  `--i-bg: ${v.value}`,
@@ -4551,8 +4550,8 @@ function cl(...e) {
4551
4550
  };
4552
4551
  return (d) => {
4553
4552
  const f = le(s), v = Date.now() - t, g = () => l = d();
4554
- return c(), f <= 0 ? (t = Date.now(), g()) : (v > f && (i || !n) ? (t = Date.now(), g()) : o && (l = new Promise((m, x) => {
4555
- a = u ? x : m, r = setTimeout(() => {
4553
+ return c(), f <= 0 ? (t = Date.now(), g()) : (v > f && (i || !n) ? (t = Date.now(), g()) : o && (l = new Promise((m, w) => {
4554
+ a = u ? w : m, r = setTimeout(() => {
4556
4555
  t = Date.now(), n = !0, m(g()), c();
4557
4556
  }, Math.max(0, f - v));
4558
4557
  })), !i && !r && (r = setTimeout(() => n = !0, f)), n = !1, l);
@@ -4720,7 +4719,7 @@ function bl(e, t = {}) {
4720
4719
  }
4721
4720
  });
4722
4721
  function m(y, H) {
4723
- var I, w, R, V;
4722
+ var I, x, R, V;
4724
4723
  if (!u)
4725
4724
  return;
4726
4725
  const P = le(e);
@@ -4728,13 +4727,13 @@ function bl(e, t = {}) {
4728
4727
  return;
4729
4728
  (R = P instanceof Document ? u.document.body : P) == null || R.scrollTo({
4730
4729
  top: (I = le(H)) != null ? I : g.value,
4731
- left: (w = le(y)) != null ? w : v.value,
4730
+ left: (x = le(y)) != null ? x : v.value,
4732
4731
  behavior: le(i)
4733
4732
  });
4734
4733
  const X = ((V = P == null ? void 0 : P.document) == null ? void 0 : V.documentElement) || (P == null ? void 0 : P.documentElement) || P;
4735
4734
  v != null && (d.value = X.scrollLeft), g != null && (f.value = X.scrollTop);
4736
4735
  }
4737
- const x = _(!1), $ = Ve({
4736
+ const w = _(!1), $ = Ve({
4738
4737
  left: !0,
4739
4738
  right: !1,
4740
4739
  top: !0,
@@ -4745,25 +4744,25 @@ function bl(e, t = {}) {
4745
4744
  top: !1,
4746
4745
  bottom: !1
4747
4746
  }), A = (y) => {
4748
- x.value && (x.value = !1, b.left = !1, b.right = !1, b.top = !1, b.bottom = !1, a(y));
4747
+ w.value && (w.value = !1, b.left = !1, b.right = !1, b.top = !1, b.bottom = !1, a(y));
4749
4748
  }, T = fl(A, r + n), C = (y) => {
4750
4749
  var H;
4751
4750
  if (!u)
4752
4751
  return;
4753
- const I = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Ce(y), { display: w, flexDirection: R } = getComputedStyle(I), V = I.scrollLeft;
4752
+ const I = ((H = y == null ? void 0 : y.document) == null ? void 0 : H.documentElement) || (y == null ? void 0 : y.documentElement) || Ce(y), { display: x, flexDirection: R } = getComputedStyle(I), V = I.scrollLeft;
4754
4753
  b.left = V < d.value, b.right = V > d.value;
4755
4754
  const P = Math.abs(V) <= (s.left || 0), X = Math.abs(V) + I.clientWidth >= I.scrollWidth - (s.right || 0) - Wt;
4756
- w === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
4755
+ x === "flex" && R === "row-reverse" ? ($.left = X, $.right = P) : ($.left = P, $.right = X), d.value = V;
4757
4756
  let j = I.scrollTop;
4758
4757
  y === u.document && !j && (j = u.document.body.scrollTop), b.top = j < f.value, b.bottom = j > f.value;
4759
4758
  const he = Math.abs(j) <= (s.top || 0), z = Math.abs(j) + I.clientHeight >= I.scrollHeight - (s.bottom || 0) - Wt;
4760
- w === "flex" && R === "column-reverse" ? ($.top = z, $.bottom = he) : ($.top = he, $.bottom = z), f.value = j;
4759
+ x === "flex" && R === "column-reverse" ? ($.top = z, $.bottom = he) : ($.top = he, $.bottom = z), f.value = j;
4761
4760
  }, M = (y) => {
4762
4761
  var H;
4763
4762
  if (!u)
4764
4763
  return;
4765
4764
  const I = (H = y.target.documentElement) != null ? H : y.target;
4766
- C(I), x.value = !0, T(y), l(y);
4765
+ C(I), w.value = !0, T(y), l(y);
4767
4766
  };
4768
4767
  return Ft(
4769
4768
  e,
@@ -4787,7 +4786,7 @@ function bl(e, t = {}) {
4787
4786
  ), {
4788
4787
  x: v,
4789
4788
  y: g,
4790
- isScrolling: x,
4789
+ isScrolling: w,
4791
4790
  arrivedState: $,
4792
4791
  directions: b,
4793
4792
  measure() {
@@ -4818,19 +4817,19 @@ const ro = /* @__PURE__ */ W({
4818
4817
  return r.itemWidth ? h(r.itemWidth) * l.value + a.value * (l.value - 1) + s.value * 2 : r.wrapperWidth ? h(r.wrapperWidth) : ((T = (A = o.value) == null ? void 0 : A.parentElement) == null ? void 0 : T.clientWidth) ?? 0;
4819
4818
  }), f = p(() => r.itemWidth ? h(r.itemWidth) : (d.value - s.value * 2 - a.value * (l.value - 1)) / l.value);
4820
4819
  function v(A, T, C, M) {
4821
- const y = h(A), H = Array.from({ length: h(T) }).fill(0), I = [], w = Math.max(0, d.value - h(M) * 2 - f.value * y.length - h(C) * y.length) / 2;
4820
+ const y = h(A), H = Array.from({ length: h(T) }).fill(0), I = [], x = Math.max(0, d.value - h(M) * 2 - f.value * y.length - h(C) * y.length) / 2;
4822
4821
  for (let R = 0; R < y.length; R++) {
4823
- const V = y[R], P = H.indexOf(Math.min(...H)), X = P * (f.value + h(C)) + h(M) + w, j = H[P];
4822
+ const V = y[R], P = H.indexOf(Math.min(...H)), X = P * (f.value + h(C)) + h(M) + x, j = H[P];
4824
4823
  I.push({ x: X, y: j, width: V.width.value, height: V.height.value }), H[P] += V.height.value + h(C);
4825
4824
  }
4826
4825
  return I;
4827
4826
  }
4828
- const g = p(() => v(c, l, a, s)), m = p(() => i(g.value) ? Math.max(...g.value.map((A) => A.y + A.height)) : 0), x = p(() => {
4827
+ const g = p(() => v(c, l, a, s)), m = p(() => i(g.value) ? Math.max(...g.value.map((A) => A.y + A.height)) : 0), w = p(() => {
4829
4828
  var A;
4830
4829
  return ((A = n.default) == null ? void 0 : A.call(n)) ?? [];
4831
4830
  }), $ = p(() => {
4832
4831
  const A = [];
4833
- return x.value.forEach((T) => {
4832
+ return w.value.forEach((T) => {
4834
4833
  i(T.children) ? T.children.forEach((C) => {
4835
4834
  A.push(C);
4836
4835
  }) : A.push(T);
@@ -4888,35 +4887,35 @@ const ro = /* @__PURE__ */ W({
4888
4887
  },
4889
4888
  setup(e, { expose: t }) {
4890
4889
  const r = e, n = p(() => h(r.rangeExpand) ?? 0), a = lt(), l = p(() => h(r.gap) ?? 16), s = p(() => h(r.rowCount) ?? 3), o = p(() => h(r.paddingX) ?? 0), i = _(), u = p(() => i.value && i.value.$el ? i.value.$el : i.value);
4891
- function c(w) {
4892
- return Array.isArray(w);
4890
+ function c(x) {
4891
+ return Array.isArray(x);
4893
4892
  }
4894
4893
  const d = p(() => {
4895
- var w, R;
4896
- return r.itemWidth ? h(r.itemWidth) * s.value + l.value * (s.value - 1) + o.value * 2 : r.wrapperWidth ? h(r.wrapperWidth) : ((R = (w = u.value) == null ? void 0 : w.parentElement) == null ? void 0 : R.clientWidth) ?? 0;
4897
- }), f = p(() => r.itemWidth ? h(r.itemWidth) : (d.value - o.value * 2 - l.value * (s.value - 1)) / s.value), v = p(() => h(r.items).map((w) => {
4898
- const R = f.value / w.width;
4894
+ var x, R;
4895
+ return r.itemWidth ? h(r.itemWidth) * s.value + l.value * (s.value - 1) + o.value * 2 : r.wrapperWidth ? h(r.wrapperWidth) : ((R = (x = u.value) == null ? void 0 : x.parentElement) == null ? void 0 : R.clientWidth) ?? 0;
4896
+ }), f = p(() => r.itemWidth ? h(r.itemWidth) : (d.value - o.value * 2 - l.value * (s.value - 1)) / s.value), v = p(() => h(r.items).map((x) => {
4897
+ const R = f.value / x.width;
4899
4898
  return {
4900
4899
  width: f.value,
4901
- height: w.height * R
4900
+ height: x.height * R
4902
4901
  };
4903
4902
  }));
4904
- function g(w, R, V, P) {
4905
- const X = h(w), j = Array.from({ length: h(R) }).fill(0), he = [], z = Math.max(0, d.value - h(P) * 2 - f.value * X.length - h(V) * X.length) / 2;
4903
+ function g(x, R, V, P) {
4904
+ const X = h(x), j = Array.from({ length: h(R) }).fill(0), he = [], z = Math.max(0, d.value - h(P) * 2 - f.value * X.length - h(V) * X.length) / 2;
4906
4905
  for (let U = 0; U < X.length; U++) {
4907
4906
  const ue = X[U], ye = j.indexOf(Math.min(...j)), Ue = ye * (f.value + h(V)) + h(P) + z, yr = j[ye];
4908
4907
  he.push({ x: Ue, y: yr, width: ue.width, height: ue.height }), j[ye] += ue.height + h(V);
4909
4908
  }
4910
4909
  return he;
4911
4910
  }
4912
- const m = p(() => g(v, s, l, o)), x = p(() => c(m.value) ? Math.max(...m.value.map((w) => w.y + w.height)) : 0), $ = p(() => {
4913
- var w;
4914
- return ((w = a.default) == null ? void 0 : w.call(a)) ?? [];
4911
+ const m = p(() => g(v, s, l, o)), w = p(() => c(m.value) ? Math.max(...m.value.map((x) => x.y + x.height)) : 0), $ = p(() => {
4912
+ var x;
4913
+ return ((x = a.default) == null ? void 0 : x.call(a)) ?? [];
4915
4914
  });
4916
- function b(w) {
4915
+ function b(x) {
4917
4916
  if (!c(m.value))
4918
4917
  return {};
4919
- const R = m.value[w];
4918
+ const R = m.value[x];
4920
4919
  return R ? {
4921
4920
  left: `${R.x ?? 0}px`,
4922
4921
  top: `${R.y ?? 0}px`,
@@ -4926,37 +4925,37 @@ const ro = /* @__PURE__ */ W({
4926
4925
  const A = _(!1), T = p(() => A.value ? "smooth" : "auto"), C = bl(u, {
4927
4926
  behavior: T
4928
4927
  }), M = p(() => {
4929
- var w;
4928
+ var x;
4930
4929
  return [
4931
4930
  C.y.value - n.value,
4932
- C.y.value + (((w = u.value) == null ? void 0 : w.clientHeight) ?? 0) + n.value
4931
+ C.y.value + (((x = u.value) == null ? void 0 : x.clientHeight) ?? 0) + n.value
4933
4932
  ];
4934
- }), y = p(() => m.value.map((w) => {
4935
- const R = w.y, V = w.y + w.height;
4933
+ }), y = p(() => m.value.map((x) => {
4934
+ const R = x.y, V = x.y + x.height;
4936
4935
  return R >= M.value[0] && R <= M.value[1] || V >= M.value[0] && V <= M.value[1] || R <= M.value[0] && V >= M.value[1];
4937
4936
  })), H = p(() => {
4938
- const w = [];
4937
+ const x = [];
4939
4938
  return $.value.forEach((R, V) => {
4940
4939
  if (c(R.children))
4941
4940
  R.children.forEach((P, X) => {
4942
- y.value[X] && w.push([P, X]);
4941
+ y.value[X] && x.push([P, X]);
4943
4942
  });
4944
4943
  else {
4945
4944
  if (!y.value[V])
4946
4945
  return;
4947
- w.push([R, V]);
4946
+ x.push([R, V]);
4948
4947
  }
4949
- }), w;
4948
+ }), x;
4950
4949
  });
4951
4950
  t({
4952
4951
  scroll: C,
4953
- scrollTo: (w, R = !1) => {
4952
+ scrollTo: (x, R = !1) => {
4954
4953
  const V = A.value;
4955
- A.value = R, C.y.value = w, A.value = V;
4954
+ A.value = R, C.y.value = x, A.value = V;
4956
4955
  }
4957
4956
  });
4958
4957
  const I = p(() => r.is ?? "div");
4959
- return (w, R) => (S(), q(_e(I.value), {
4958
+ return (x, R) => (S(), q(_e(I.value), {
4960
4959
  ref_key: "wrapper",
4961
4960
  ref: i,
4962
4961
  style: {
@@ -4966,7 +4965,7 @@ const ro = /* @__PURE__ */ W({
4966
4965
  default: ee(() => [
4967
4966
  F("div", {
4968
4967
  style: O({
4969
- height: `${x.value}px`,
4968
+ height: `${w.value}px`,
4970
4969
  width: `${d.value}px`,
4971
4970
  margin: "0 auto",
4972
4971
  position: "relative"