@teammodlr/ui-kit 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, renderSlot as A, ref as b, watch as W, computed as f, openBlock as m, createElementBlock as k, normalizeClass as g, normalizeStyle as ee, inject as ie, onMounted as ce, resolveComponent as ne, createBlock as Z, mergeProps as Ce, reactive as me, toRef as J, provide as ke, Fragment as Q, renderList as fe, createElementVNode as S, createVNode as X, withCtx as U, createTextVNode as re, toDisplayString as N, createCommentVNode as F, onBeforeUnmount as Bt, resolveDynamicComponent as jt, readonly as Hn, onUnmounted as ma, defineExpose as He, withDirectives as Xe, vModelCheckbox as ga, getCurrentScope as qn, onScopeDispose as Gn, unref as ya, getCurrentInstance as Un, watchEffect as gt, nextTick as Ae, toHandlers as at, Teleport as Ie, Transition as Re, withModifiers as je, withKeys as Ze, vShow as ba, vModelRadio as Kn, vModelText as Xn, toRaw as Yt } from "vue";
1
+ import { defineComponent as R, renderSlot as A, ref as b, watch as W, computed as p, openBlock as m, createElementBlock as k, normalizeClass as g, normalizeStyle as ee, inject as ie, onMounted as ce, resolveComponent as ne, createBlock as Z, mergeProps as Ce, reactive as me, toRef as J, provide as ke, Fragment as Q, renderList as fe, createElementVNode as S, createVNode as X, withCtx as U, createTextVNode as re, toDisplayString as N, createCommentVNode as F, onBeforeUnmount as Bt, resolveDynamicComponent as jt, readonly as Hn, onUnmounted as ma, defineExpose as He, withDirectives as Xe, vModelCheckbox as ga, getCurrentScope as qn, onScopeDispose as Gn, unref as ya, getCurrentInstance as Un, watchEffect as gt, nextTick as Ae, toHandlers as at, Teleport as Ie, Transition as Re, withModifiers as je, withKeys as Ze, vShow as ba, vModelRadio as Kn, vModelText as Xn, toRaw as Yt } from "vue";
2
2
  const Yn = {
3
3
  h: {
4
4
  type: Function,
@@ -53,9 +53,9 @@ const Yn = {
53
53
  },
54
54
  { immediate: !0 }
55
55
  );
56
- const n = f(() => ({
56
+ const n = p(() => ({
57
57
  "m-image": !0
58
- })), r = f(() => ({}));
58
+ })), r = p(() => ({}));
59
59
  return {
60
60
  source: a,
61
61
  computedClasses: n,
@@ -105,14 +105,14 @@ const $a = Symbol("AVATAR_GROUP_STATE"), or = R({
105
105
  error: (e) => !0
106
106
  },
107
107
  setup(e, { emit: t }) {
108
- const a = ie($a, void 0), n = b(null), r = b(!0), o = b("md"), s = f(() => a == null ? void 0 : a.size), l = f(() => a == null ? void 0 : a.rounded), i = f(() => !!a), u = f(() => s.value || e.size), d = f(() => l.value || e.rounded), c = f(() => [
108
+ const a = ie($a, void 0), n = b(null), r = b(!0), o = b("md"), s = p(() => a == null ? void 0 : a.size), l = p(() => a == null ? void 0 : a.rounded), i = p(() => !!a), u = p(() => s.value || e.size), d = p(() => l.value || e.rounded), c = p(() => [
109
109
  er,
110
110
  [rr[u.value]],
111
111
  {
112
112
  [ar]: i.value,
113
113
  [nr]: d.value
114
114
  }
115
- ]), p = (v) => {
115
+ ]), f = (v) => {
116
116
  r.value = !1, t("error", v);
117
117
  };
118
118
  return ce(() => {
@@ -123,7 +123,7 @@ const $a = Symbol("AVATAR_GROUP_STATE"), or = R({
123
123
  classes: c,
124
124
  imageExists: r,
125
125
  imageClass: tr,
126
- handleImageLoadError: p
126
+ handleImageLoadError: f
127
127
  };
128
128
  }
129
129
  });
@@ -178,7 +178,7 @@ const ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
178
178
  max: J(e, "max")
179
179
  });
180
180
  ke($a, t);
181
- const a = f(() => e.options.slice(0, e.max)), n = f(() => e.options.length - e.max);
181
+ const a = p(() => e.options.slice(0, e.max)), n = p(() => e.options.length - e.max);
182
182
  return {
183
183
  style: ur,
184
184
  avatars: a,
@@ -230,7 +230,7 @@ const br = R({
230
230
  }
231
231
  },
232
232
  setup(e) {
233
- const t = f(() => [
233
+ const t = p(() => [
234
234
  vr,
235
235
  yr[e.variant],
236
236
  {
@@ -282,7 +282,7 @@ const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
282
282
  }, n = me({
283
283
  separator: J(e, "seperator"),
284
284
  refreshItems: a
285
- }), r = f(() => [
285
+ }), r = p(() => [
286
286
  Sa
287
287
  ]);
288
288
  return ke(ka, n), {
@@ -414,7 +414,7 @@ const Ca = Symbol("BUTTON_GROUP_STATE"), Et = Symbol("FORM_STATE"), Ur = R({
414
414
  }
415
415
  },
416
416
  setup(e, { slots: t }) {
417
- const a = ie(Ca, null), n = ie(Et, null), r = ie("dropdown", null), o = b("md"), s = b(!1), l = b(0), i = J(e, "loading"), u = f(() => r == null ? void 0 : r.isOpen.value), d = f(() => a == null ? void 0 : a.size), c = f(() => d.value || e.size), p = f(() => !!t["icon-left"]), v = f(() => !!t["icon-right"]), $ = f(() => [
417
+ const a = ie(Ca, null), n = ie(Et, null), r = ie("dropdown", null), o = b("md"), s = b(!1), l = b(0), i = J(e, "loading"), u = p(() => r == null ? void 0 : r.isOpen.value), d = p(() => a == null ? void 0 : a.size), c = p(() => d.value || e.size), f = p(() => !!t["icon-left"]), v = p(() => !!t["icon-right"]), $ = p(() => [
418
418
  _r,
419
419
  [Wr[c.value]],
420
420
  Hr[e.variant],
@@ -426,16 +426,16 @@ const Ca = Symbol("BUTTON_GROUP_STATE"), Et = Symbol("FORM_STATE"), Ur = R({
426
426
  [Dr]: e.icon,
427
427
  [Pr]: (n == null ? void 0 : n.loading) || i.value
428
428
  }
429
- ]), w = f(() => [
429
+ ]), w = p(() => [
430
430
  qr,
431
431
  {
432
432
  [Gr]: s.value
433
433
  }
434
- ]), y = f(() => [
434
+ ]), y = p(() => [
435
435
  Rr
436
- ]), h = f(() => [
436
+ ]), h = p(() => [
437
437
  Ir
438
- ]), M = f(() => e.to ? "nuxt-link" : e.href ? "a" : "button");
438
+ ]), M = p(() => e.to ? "nuxt-link" : e.href ? "a" : "button");
439
439
  return ce(() => {
440
440
  o.value = d.value || e.size;
441
441
  }), Bt(() => {
@@ -447,7 +447,7 @@ const Ca = Symbol("BUTTON_GROUP_STATE"), Et = Symbol("FORM_STATE"), Ur = R({
447
447
  computedBorderClasses: y,
448
448
  computedBorderStateClasses: h,
449
449
  computedTag: M,
450
- hasIconLeft: p,
450
+ hasIconLeft: f,
451
451
  hasIconRight: v,
452
452
  handleClick: (T) => {
453
453
  if (e.disabled) {
@@ -555,7 +555,7 @@ const x = (e, { focus: t, emit: a, withListeners: n = !0 }) => {
555
555
  o.value = "", r.value = !0, a("update:modelValue", "");
556
556
  }, c = ($) => {
557
557
  o.value = $;
558
- }, p = ($) => {
558
+ }, f = ($) => {
559
559
  $ = $ || e.modelValue, r.value = !1;
560
560
  for (let w = 0; w < e.rules.length; w++) {
561
561
  const y = e.rules[w];
@@ -573,7 +573,7 @@ const x = (e, { focus: t, emit: a, withListeners: n = !0 }) => {
573
573
  return o.value = h, !1;
574
574
  }
575
575
  return o.value = "", !0;
576
- }, v = n ? f(() => ({
576
+ }, v = n ? p(() => ({
577
577
  blur: ($) => a("blur", $),
578
578
  focus: ($) => a("focus", $),
579
579
  input: ($) => {
@@ -586,7 +586,7 @@ const x = (e, { focus: t, emit: a, withListeners: n = !0 }) => {
586
586
  i.value,
587
587
  t,
588
588
  // @ts-ignore
589
- p,
589
+ f,
590
590
  // @ts-ignore
591
591
  c
592
592
  );
@@ -599,7 +599,7 @@ const x = (e, { focus: t, emit: a, withListeners: n = !0 }) => {
599
599
  insideForm: (u == null ? void 0 : u.insideForm) ?? !1,
600
600
  inputListeners: v,
601
601
  reset: d,
602
- validate: p,
602
+ validate: f,
603
603
  setError: c,
604
604
  //@ts-ignore
605
605
  formDisabled: (u == null ? void 0 : u.disabled.value) || !1,
@@ -684,17 +684,17 @@ const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
684
684
  validate: u,
685
685
  setError: d,
686
686
  formError: c,
687
- formDisabled: p,
687
+ formDisabled: f,
688
688
  formLoading: v,
689
689
  inputListeners: $
690
- } = x(e, { focus: r, emit: a }), w = f(() => p || e.disabled || e.loading), y = J(e, "name"), h = f(() => !!t.default), M = f(() => [
690
+ } = x(e, { focus: r, emit: a }), w = p(() => f || e.disabled || e.loading), y = J(e, "name"), h = p(() => !!t.default), M = p(() => [
691
691
  Ta,
692
692
  [ja[e.size]],
693
693
  {
694
694
  [Oa]: w.value,
695
695
  [Ba]: e.indeterminate
696
696
  }
697
- ]), O = f(() => c.value || e.error), T = f({
697
+ ]), O = p(() => c.value || e.error), T = p({
698
698
  get() {
699
699
  return e.modelValue;
700
700
  },
@@ -787,11 +787,11 @@ function K(...e) {
787
787
  Array.isArray(a) || (a = [a]), Array.isArray(n) || (n = [n]);
788
788
  const o = [], s = () => {
789
789
  o.forEach((d) => d()), o.length = 0;
790
- }, l = (d, c, p, v) => (d.addEventListener(c, p, v), () => d.removeEventListener(c, p, v)), i = W(
790
+ }, l = (d, c, f, v) => (d.addEventListener(c, f, v), () => d.removeEventListener(c, f, v)), i = W(
791
791
  () => [Ne(t), pt(r)],
792
792
  ([d, c]) => {
793
793
  s(), d && o.push(
794
- ...a.flatMap((p) => n.map((v) => l(d, p, v, c)))
794
+ ...a.flatMap((f) => n.map((v) => l(d, f, v, c)))
795
795
  );
796
796
  },
797
797
  { immediate: !0, flush: "post" }
@@ -805,39 +805,39 @@ function At(e, t, a = {}) {
805
805
  const { window: n = Ye, ignore: r = [], capture: o = !0, detectIframe: s = !1 } = a;
806
806
  if (!n)
807
807
  return;
808
- uo && !Zt && (Zt = !0, Array.from(n.document.body.children).forEach((p) => p.addEventListener("click", vt)), n.document.documentElement.addEventListener("click", vt));
808
+ uo && !Zt && (Zt = !0, Array.from(n.document.body.children).forEach((f) => f.addEventListener("click", vt)), n.document.documentElement.addEventListener("click", vt));
809
809
  let l = !0;
810
- const i = (p) => r.some((v) => {
810
+ const i = (f) => r.some((v) => {
811
811
  if (typeof v == "string")
812
- return Array.from(n.document.querySelectorAll(v)).some(($) => $ === p.target || p.composedPath().includes($));
812
+ return Array.from(n.document.querySelectorAll(v)).some(($) => $ === f.target || f.composedPath().includes($));
813
813
  {
814
814
  const $ = Ne(v);
815
- return $ && (p.target === $ || p.composedPath().includes($));
815
+ return $ && (f.target === $ || f.composedPath().includes($));
816
816
  }
817
817
  }), d = [
818
- K(n, "click", (p) => {
818
+ K(n, "click", (f) => {
819
819
  const v = Ne(e);
820
- if (!(!v || v === p.target || p.composedPath().includes(v))) {
821
- if (p.detail === 0 && (l = !i(p)), !l) {
820
+ if (!(!v || v === f.target || f.composedPath().includes(v))) {
821
+ if (f.detail === 0 && (l = !i(f)), !l) {
822
822
  l = !0;
823
823
  return;
824
824
  }
825
- t(p);
825
+ t(f);
826
826
  }
827
827
  }, { passive: !0, capture: o }),
828
- K(n, "pointerdown", (p) => {
828
+ K(n, "pointerdown", (f) => {
829
829
  const v = Ne(e);
830
- v && (l = !p.composedPath().includes(v) && !i(p));
830
+ v && (l = !f.composedPath().includes(v) && !i(f));
831
831
  }, { passive: !0 }),
832
- s && K(n, "blur", (p) => {
832
+ s && K(n, "blur", (f) => {
833
833
  setTimeout(() => {
834
834
  var v;
835
835
  const $ = Ne(e);
836
- ((v = n.document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !($ != null && $.contains(n.document.activeElement)) && t(p);
836
+ ((v = n.document.activeElement) == null ? void 0 : v.tagName) === "IFRAME" && !($ != null && $.contains(n.document.activeElement)) && t(f);
837
837
  }, 0);
838
838
  })
839
839
  ].filter(Boolean);
840
- return () => d.forEach((p) => p());
840
+ return () => d.forEach((f) => f());
841
841
  }
842
842
  function fo() {
843
843
  const e = b(!1);
@@ -847,7 +847,7 @@ function fo() {
847
847
  }
848
848
  function po(e) {
849
849
  const t = fo();
850
- return f(() => (t.value, !!e()));
850
+ return p(() => (t.value, !!e()));
851
851
  }
852
852
  function vo(e = {}) {
853
853
  const { initialValue: t = "" } = e, a = po(() => typeof window < "u" && "EyeDropper" in window), n = b(t);
@@ -885,7 +885,7 @@ function go(e = {}) {
885
885
  function c(w, y) {
886
886
  w in i && (t ? i[w] = y : i[w].value = y);
887
887
  }
888
- function p() {
888
+ function f() {
889
889
  s.clear();
890
890
  for (const w of d)
891
891
  c(w, !1);
@@ -900,7 +900,7 @@ function go(e = {}) {
900
900
  s.delete(C), c(C, !1);
901
901
  }), u.clear()) : typeof w.getModifierState == "function" && w.getModifierState("Meta") && y && [...s, ...B].forEach((C) => u.add(C));
902
902
  }
903
- K(a, "keydown", (w) => (v(w, !0), o(w)), { passive: r }), K(a, "keyup", (w) => (v(w, !1), o(w)), { passive: r }), K("blur", p, { passive: !0 }), K("focus", p, { passive: !0 });
903
+ K(a, "keydown", (w) => (v(w, !0), o(w)), { passive: r }), K(a, "keyup", (w) => (v(w, !1), o(w)), { passive: r }), K("blur", f, { passive: !0 }), K("focus", f, { passive: !0 });
904
904
  const $ = new Proxy(
905
905
  i,
906
906
  {
@@ -910,7 +910,7 @@ function go(e = {}) {
910
910
  if (y = y.toLowerCase(), y in n && (y = n[y]), !(y in i))
911
911
  if (/[+_-]/.test(y)) {
912
912
  const O = y.split(/[+_-]/g).map((T) => T.trim());
913
- i[y] = f(() => O.every((T) => pt($[T])));
913
+ i[y] = p(() => O.every((T) => pt($[T])));
914
914
  } else
915
915
  i[y] = b(!1);
916
916
  const M = Reflect.get(w, y, h);
@@ -935,7 +935,7 @@ function bo(e = {}) {
935
935
  window: o = Ye,
936
936
  target: s = o,
937
937
  eventFilter: l
938
- } = e, i = b(r.x), u = b(r.y), d = b(null), c = typeof t == "function" ? t : yo[t], p = (h) => {
938
+ } = e, i = b(r.x), u = b(r.y), d = b(null), c = typeof t == "function" ? t : yo[t], f = (h) => {
939
939
  const M = c(h);
940
940
  M && ([i.value, u.value] = M, d.value = "mouse");
941
941
  }, v = (h) => {
@@ -945,7 +945,7 @@ function bo(e = {}) {
945
945
  }
946
946
  }, $ = () => {
947
947
  i.value = r.x, u.value = r.y;
948
- }, w = l ? (h) => l(() => p(h), {}) : (h) => p(h), y = l ? (h) => l(() => v(h), {}) : (h) => v(h);
948
+ }, w = l ? (h) => l(() => f(h), {}) : (h) => f(h), y = l ? (h) => l(() => v(h), {}) : (h) => v(h);
949
949
  if (s) {
950
950
  const h = { passive: !0 };
951
951
  K(s, ["mousemove", "dragover"], w, h), a && t !== "movement" && (K(s, ["touchstart", "touchmove"], y, h), n && K(s, "touchend", $, h));
@@ -960,7 +960,7 @@ function Aa(e, t = {}) {
960
960
  const {
961
961
  handleOutside: a = !0,
962
962
  window: n = Ye
963
- } = t, { x: r, y: o, sourceType: s } = bo(t), l = b(e ?? (n == null ? void 0 : n.document.body)), i = b(0), u = b(0), d = b(0), c = b(0), p = b(0), v = b(0), $ = b(!0);
963
+ } = t, { x: r, y: o, sourceType: s } = bo(t), l = b(e ?? (n == null ? void 0 : n.document.body)), i = b(0), u = b(0), d = b(0), c = b(0), f = b(0), v = b(0), $ = b(!0);
964
964
  let w = () => {
965
965
  };
966
966
  return n && (w = W(
@@ -975,7 +975,7 @@ function Aa(e, t = {}) {
975
975
  width: O,
976
976
  height: T
977
977
  } = y.getBoundingClientRect();
978
- d.value = h + n.pageXOffset, c.value = M + n.pageYOffset, p.value = T, v.value = O;
978
+ d.value = h + n.pageXOffset, c.value = M + n.pageYOffset, f.value = T, v.value = O;
979
979
  const B = r.value - d.value, C = o.value - c.value;
980
980
  $.value = O === 0 || T === 0 || B < 0 || C < 0 || B > O || C > T, (a || !$.value) && (i.value = B, u.value = C);
981
981
  },
@@ -990,7 +990,7 @@ function Aa(e, t = {}) {
990
990
  elementY: u,
991
991
  elementPositionX: d,
992
992
  elementPositionY: c,
993
- elementHeight: p,
993
+ elementHeight: f,
994
994
  elementWidth: v,
995
995
  isOutside: $,
996
996
  stop: w
@@ -1012,7 +1012,7 @@ function Ra(e = {}) {
1012
1012
  o.value = !0, s.value = d;
1013
1013
  }, i = () => {
1014
1014
  o.value = !1, s.value = null;
1015
- }, u = f(() => Ne(e.target) || r);
1015
+ }, u = p(() => Ne(e.target) || r);
1016
1016
  return K(u, "mousedown", l("mouse"), { passive: !0 }), K(r, "mouseleave", i, { passive: !0 }), K(r, "mouseup", i, { passive: !0 }), a && (K(u, "dragstart", l("mouse"), { passive: !0 }), K(r, "drop", i, { passive: !0 }), K(r, "dragend", i, { passive: !0 })), t && (K(u, "touchstart", l("touch"), { passive: !0 }), K(r, "touchend", i, { passive: !0 }), K(r, "touchcancel", i, { passive: !0 })), {
1017
1017
  pressed: o,
1018
1018
  sourceType: s
@@ -1058,9 +1058,9 @@ const Eo = (e, t, a, n) => {
1058
1058
  const r = e, o = t * a, s = r / 60, l = o * (1 - Math.abs(s % 2 - 1));
1059
1059
  let i = 0, u = 0, d = 0;
1060
1060
  s >= 0 && s < 1 ? (i = o, u = l) : s >= 1 && s < 2 ? (i = l, u = o) : s >= 2 && s < 3 ? (u = o, d = l) : s >= 3 && s < 4 ? (u = l, d = o) : s >= 4 && s < 5 ? (i = l, d = o) : (i = o, d = l);
1061
- const c = t - o, p = Math.round((i + c) * 255), v = Math.round((u + c) * 255), $ = Math.round((d + c) * 255);
1061
+ const c = t - o, f = Math.round((i + c) * 255), v = Math.round((u + c) * 255), $ = Math.round((d + c) * 255);
1062
1062
  return {
1063
- r: p,
1063
+ r: f,
1064
1064
  g: v,
1065
1065
  b: $,
1066
1066
  a: n
@@ -1069,11 +1069,11 @@ const Eo = (e, t, a, n) => {
1069
1069
  const a = 1 - Math.abs(0), n = e / 360 * 6, r = a * (1 - Math.abs(n % 2 - 1));
1070
1070
  let o = 0, s = 0, l = 0;
1071
1071
  n >= 0 && n < 1 ? (o = a, s = r, l = 0) : n >= 1 && n < 2 ? (o = r, s = a, l = 0) : n >= 2 && n < 3 ? (o = 0, s = a, l = r) : n >= 3 && n < 4 ? (o = 0, s = r, l = a) : n >= 4 && n < 5 ? (o = r, s = 0, l = a) : (o = a, s = 0, l = r);
1072
- const i = 0.5, u = (1 - a) * (i - 0.5), d = Math.round((o + u) * 255), c = Math.round((s + u) * 255), p = Math.round((l + u) * 255);
1072
+ const i = 0.5, u = (1 - a) * (i - 0.5), d = Math.round((o + u) * 255), c = Math.round((s + u) * 255), f = Math.round((l + u) * 255);
1073
1073
  return {
1074
1074
  r: d,
1075
1075
  g: c,
1076
- b: p,
1076
+ b: f,
1077
1077
  a: t
1078
1078
  };
1079
1079
  };
@@ -1167,13 +1167,13 @@ function Ue(e, t, a) {
1167
1167
  t === void 0 && (t = !1), a === void 0 && (a = !1);
1168
1168
  var n = e.getBoundingClientRect(), r = 1, o = 1;
1169
1169
  t && pe(e) && (r = e.offsetWidth > 0 && Ge(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && Ge(n.height) / e.offsetHeight || 1);
1170
- var s = We(e) ? be(e) : window, l = s.visualViewport, i = !La() && a, u = (n.left + (i && l ? l.offsetLeft : 0)) / r, d = (n.top + (i && l ? l.offsetTop : 0)) / o, c = n.width / r, p = n.height / o;
1170
+ var s = We(e) ? be(e) : window, l = s.visualViewport, i = !La() && a, u = (n.left + (i && l ? l.offsetLeft : 0)) / r, d = (n.top + (i && l ? l.offsetTop : 0)) / o, c = n.width / r, f = n.height / o;
1171
1171
  return {
1172
1172
  width: c,
1173
- height: p,
1173
+ height: f,
1174
1174
  top: d,
1175
1175
  right: u + c,
1176
- bottom: d + p,
1176
+ bottom: d + f,
1177
1177
  left: u,
1178
1178
  x: u,
1179
1179
  y: d
@@ -1285,7 +1285,7 @@ var Jo = function(t, a) {
1285
1285
  function Qo(e) {
1286
1286
  var t, a = e.state, n = e.name, r = e.options, o = a.elements.arrow, s = a.modifiersData.popperOffsets, l = we(a.placement), i = Dt(l), u = [de, ye].indexOf(l) >= 0, d = u ? "height" : "width";
1287
1287
  if (!(!o || !s)) {
1288
- var c = Jo(r.padding, a), p = It(o), v = i === "y" ? ue : de, $ = i === "y" ? ge : ye, w = a.rects.reference[d] + a.rects.reference[i] - s[i] - a.rects.popper[d], y = s[i] - a.rects.reference[i], h = rt(o), M = h ? i === "y" ? h.clientHeight || 0 : h.clientWidth || 0 : 0, O = w / 2 - y / 2, T = c[v], B = M - p[d] - c[$], C = M / 2 - p[d] / 2 + O, V = Qe(T, C, B), H = i;
1288
+ var c = Jo(r.padding, a), f = It(o), v = i === "y" ? ue : de, $ = i === "y" ? ge : ye, w = a.rects.reference[d] + a.rects.reference[i] - s[i] - a.rects.popper[d], y = s[i] - a.rects.reference[i], h = rt(o), M = h ? i === "y" ? h.clientHeight || 0 : h.clientWidth || 0 : 0, O = w / 2 - y / 2, T = c[v], B = M - f[d] - c[$], C = M / 2 - f[d] / 2 + O, V = Qe(T, C, B), H = i;
1289
1289
  a.modifiersData[n] = (t = {}, t[H] = V, t.centerOffset = V - C, t);
1290
1290
  }
1291
1291
  }
@@ -1325,7 +1325,7 @@ function as(e) {
1325
1325
  };
1326
1326
  }
1327
1327
  function ea(e) {
1328
- var t, a = e.popper, n = e.popperRect, r = e.placement, o = e.variation, s = e.offsets, l = e.position, i = e.gpuAcceleration, u = e.adaptive, d = e.roundOffsets, c = e.isFixed, p = s.x, v = p === void 0 ? 0 : p, $ = s.y, w = $ === void 0 ? 0 : $, y = typeof d == "function" ? d({
1328
+ var t, a = e.popper, n = e.popperRect, r = e.placement, o = e.variation, s = e.offsets, l = e.position, i = e.gpuAcceleration, u = e.adaptive, d = e.roundOffsets, c = e.isFixed, f = s.x, v = f === void 0 ? 0 : f, $ = s.y, w = $ === void 0 ? 0 : $, y = typeof d == "function" ? d({
1329
1329
  x: v,
1330
1330
  y: w
1331
1331
  }) : {
@@ -1577,18 +1577,18 @@ function qa(e) {
1577
1577
  }
1578
1578
  function tt(e, t) {
1579
1579
  t === void 0 && (t = {});
1580
- var a = t, n = a.placement, r = n === void 0 ? e.placement : n, o = a.strategy, s = o === void 0 ? e.strategy : o, l = a.boundary, i = l === void 0 ? Io : l, u = a.rootBoundary, d = u === void 0 ? za : u, c = a.elementContext, p = c === void 0 ? Je : c, v = a.altBoundary, $ = v === void 0 ? !1 : v, w = a.padding, y = w === void 0 ? 0 : w, h = Fa(typeof y != "number" ? y : Wa(y, nt)), M = p === Je ? Do : Je, O = e.rects.popper, T = e.elements[$ ? M : p], B = ps(We(T) ? T : T.contextElement || De(e.elements.popper), i, d, s), C = Ue(e.elements.reference), V = qa({
1580
+ var a = t, n = a.placement, r = n === void 0 ? e.placement : n, o = a.strategy, s = o === void 0 ? e.strategy : o, l = a.boundary, i = l === void 0 ? Io : l, u = a.rootBoundary, d = u === void 0 ? za : u, c = a.elementContext, f = c === void 0 ? Je : c, v = a.altBoundary, $ = v === void 0 ? !1 : v, w = a.padding, y = w === void 0 ? 0 : w, h = Fa(typeof y != "number" ? y : Wa(y, nt)), M = f === Je ? Do : Je, O = e.rects.popper, T = e.elements[$ ? M : f], B = ps(We(T) ? T : T.contextElement || De(e.elements.popper), i, d, s), C = Ue(e.elements.reference), V = qa({
1581
1581
  reference: C,
1582
1582
  element: O,
1583
1583
  strategy: "absolute",
1584
1584
  placement: r
1585
- }), H = Mt(Object.assign({}, O, V)), E = p === Je ? H : C, j = {
1585
+ }), H = Mt(Object.assign({}, O, V)), E = f === Je ? H : C, j = {
1586
1586
  top: B.top - E.top + h.top,
1587
1587
  bottom: E.bottom - B.bottom + h.bottom,
1588
1588
  left: B.left - E.left + h.left,
1589
1589
  right: E.right - B.right + h.right
1590
1590
  }, z = e.modifiersData.offset;
1591
- if (p === Je && z) {
1591
+ if (f === Je && z) {
1592
1592
  var G = z[r];
1593
1593
  Object.keys(j).forEach(function(Y) {
1594
1594
  var le = [ye, ge].indexOf(Y) >= 0 ? 1 : -1, te = [ue, ge].indexOf(Y) >= 0 ? "y" : "x";
@@ -1601,11 +1601,11 @@ function vs(e, t) {
1601
1601
  t === void 0 && (t = {});
1602
1602
  var a = t, n = a.placement, r = a.boundary, o = a.rootBoundary, s = a.padding, l = a.flipVariations, i = a.allowedAutoPlacements, u = i === void 0 ? Va : i, d = Ke(n), c = d ? l ? Qt : Qt.filter(function($) {
1603
1603
  return Ke($) === d;
1604
- }) : nt, p = c.filter(function($) {
1604
+ }) : nt, f = c.filter(function($) {
1605
1605
  return u.indexOf($) >= 0;
1606
1606
  });
1607
- p.length === 0 && (p = c, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
1608
- var v = p.reduce(function($, w) {
1607
+ f.length === 0 && (f = c, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
1608
+ var v = f.reduce(function($, w) {
1609
1609
  return $[w] = tt(e, {
1610
1610
  placement: w,
1611
1611
  boundary: r,
@@ -1626,7 +1626,7 @@ function ms(e) {
1626
1626
  function gs(e) {
1627
1627
  var t = e.state, a = e.options, n = e.name;
1628
1628
  if (!t.modifiersData[n]._skip) {
1629
- for (var r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, l = s === void 0 ? !0 : s, i = a.fallbackPlacements, u = a.padding, d = a.boundary, c = a.rootBoundary, p = a.altBoundary, v = a.flipVariations, $ = v === void 0 ? !0 : v, w = a.allowedAutoPlacements, y = t.options.placement, h = we(y), M = h === y, O = i || (M || !$ ? [dt(y)] : ms(y)), T = [y].concat(O).reduce(function(Be, q) {
1629
+ for (var r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, l = s === void 0 ? !0 : s, i = a.fallbackPlacements, u = a.padding, d = a.boundary, c = a.rootBoundary, f = a.altBoundary, v = a.flipVariations, $ = v === void 0 ? !0 : v, w = a.allowedAutoPlacements, y = t.options.placement, h = we(y), M = h === y, O = i || (M || !$ ? [dt(y)] : ms(y)), T = [y].concat(O).reduce(function(Be, q) {
1630
1630
  return Be.concat(we(q) === bt ? vs(t, {
1631
1631
  placement: q,
1632
1632
  boundary: d,
@@ -1640,7 +1640,7 @@ function gs(e) {
1640
1640
  placement: z,
1641
1641
  boundary: d,
1642
1642
  rootBoundary: c,
1643
- altBoundary: p,
1643
+ altBoundary: f,
1644
1644
  padding: u
1645
1645
  }), oe = le ? Y ? ye : de : Y ? ge : ue;
1646
1646
  B[te] > C[te] && (oe = dt(oe));
@@ -1766,7 +1766,7 @@ function Ms(e) {
1766
1766
  return e === "x" ? "y" : "x";
1767
1767
  }
1768
1768
  function Ts(e) {
1769
- var t = e.state, a = e.options, n = e.name, r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, l = s === void 0 ? !1 : s, i = a.boundary, u = a.rootBoundary, d = a.altBoundary, c = a.padding, p = a.tether, v = p === void 0 ? !0 : p, $ = a.tetherOffset, w = $ === void 0 ? 0 : $, y = tt(t, {
1769
+ var t = e.state, a = e.options, n = e.name, r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, l = s === void 0 ? !1 : s, i = a.boundary, u = a.rootBoundary, d = a.altBoundary, c = a.padding, f = a.tether, v = f === void 0 ? !0 : f, $ = a.tetherOffset, w = $ === void 0 ? 0 : $, y = tt(t, {
1770
1770
  boundary: i,
1771
1771
  rootBoundary: u,
1772
1772
  padding: c,
@@ -1971,7 +1971,7 @@ function Ns(e) {
1971
1971
  },
1972
1972
  attributes: {},
1973
1973
  styles: {}
1974
- }, c = [], p = !1, v = {
1974
+ }, c = [], f = !1, v = {
1975
1975
  state: d,
1976
1976
  setOptions: function(h) {
1977
1977
  var M = typeof h == "function" ? h(d.options) : h;
@@ -2007,7 +2007,7 @@ function Ns(e) {
2007
2007
  // For high frequency updates (e.g. `resize` and `scroll` events), always
2008
2008
  // prefer the async Popper#update method
2009
2009
  forceUpdate: function() {
2010
- if (!p) {
2010
+ if (!f) {
2011
2011
  var h = d.elements, M = h.reference, O = h.popper;
2012
2012
  if (!ia(M, O)) {
2013
2013
  process.env.NODE_ENV !== "production" && console.error(sa);
@@ -2046,13 +2046,13 @@ function Ns(e) {
2046
2046
  });
2047
2047
  }),
2048
2048
  destroy: function() {
2049
- w(), p = !0;
2049
+ w(), f = !0;
2050
2050
  }
2051
2051
  };
2052
2052
  if (!ia(l, i))
2053
2053
  return process.env.NODE_ENV !== "production" && console.error(sa), v;
2054
2054
  v.setOptions(u).then(function(y) {
2055
- !p && u.onFirstUpdate && u.onFirstUpdate(y);
2055
+ !f && u.onFirstUpdate && u.onFirstUpdate(y);
2056
2056
  });
2057
2057
  function $() {
2058
2058
  d.orderedModifiers.forEach(function(y) {
@@ -2139,11 +2139,11 @@ function $t(e) {
2139
2139
  });
2140
2140
  let c = null;
2141
2141
  a && W(a, (h) => {
2142
- $(h), p();
2142
+ $(h), f();
2143
2143
  }), ce(() => {
2144
2144
  Ae(v);
2145
2145
  }), Bt(y);
2146
- function p() {
2146
+ function f() {
2147
2147
  Ae(() => {
2148
2148
  u && u.forceUpdate(), n.value && (d.value = n.value.clientWidth);
2149
2149
  });
@@ -2159,7 +2159,7 @@ function $t(e) {
2159
2159
  l.value = typeof h == "boolean" ? h ? "body" : "" : h;
2160
2160
  }
2161
2161
  function w() {
2162
- o.value && s.value && (u && u.destroy(), u = Ws(o.value, s.value, i), p());
2162
+ o.value && s.value && (u && u.destroy(), u = Ws(o.value, s.value, i), f());
2163
2163
  }
2164
2164
  function y() {
2165
2165
  u && u.destroy(), u = null, typeof c == "function" && (c(), c = null);
@@ -2168,7 +2168,7 @@ function $t(e) {
2168
2168
  reference: o,
2169
2169
  popper: s,
2170
2170
  transferTo: l,
2171
- updatePopper: p,
2171
+ updatePopper: f,
2172
2172
  createPopper: v,
2173
2173
  destroyPopper: y,
2174
2174
  width: d
@@ -2181,10 +2181,10 @@ function qs(e) {
2181
2181
  }
2182
2182
  }
2183
2183
  const ua = b(0), Gs = 1e3, Us = Symbol("ZINDEX"), ot = (e) => {
2184
- const t = e || ie(Us, void 0), a = f(() => {
2184
+ const t = e || ie(Us, void 0), a = p(() => {
2185
2185
  const o = ya(t);
2186
2186
  return o === void 0 || isNaN(o) ? Gs : o;
2187
- }), n = f(() => a.value + ua.value);
2187
+ }), n = p(() => a.value + ua.value);
2188
2188
  return {
2189
2189
  initial: a,
2190
2190
  current: n,
@@ -2339,17 +2339,17 @@ const ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2339
2339
  inputListeners: u,
2340
2340
  validate: d,
2341
2341
  setError: c,
2342
- formError: p,
2342
+ formError: f,
2343
2343
  formDisabled: v,
2344
2344
  formLoading: $
2345
- } = x(e, { focus: r, emit: a }), w = b(!1), y = J(e, "name"), h = f(() => !!t["icon-left"]), M = f(() => !!t["icon-right"]), O = f(() => !!t.prefix), T = f(() => !!t.suffix), B = f(() => !!(t["help-message"] || t.help)), C = f(() => v || e.disabled), V = f(() => $ || e.loading), H = f(() => {
2345
+ } = x(e, { focus: r, emit: a }), w = b(!1), y = J(e, "name"), h = p(() => !!t["icon-left"]), M = p(() => !!t["icon-right"]), O = p(() => !!t.prefix), T = p(() => !!t.suffix), B = p(() => !!(t["help-message"] || t.help)), C = p(() => v || e.disabled), V = p(() => $ || e.loading), H = p(() => {
2346
2346
  const te = e.type;
2347
2347
  return te === "password" ? w.value ? "text" : "password" : te;
2348
- }), E = f(() => e.loading || e.readonly), j = f(() => [
2348
+ }), E = p(() => e.loading || e.readonly), j = p(() => [
2349
2349
  {
2350
2350
  [ct]: e.block
2351
2351
  }
2352
- ]), z = f(() => [
2352
+ ]), z = p(() => [
2353
2353
  xa,
2354
2354
  Ua,
2355
2355
  Qa[e.size],
@@ -2357,7 +2357,7 @@ const ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2357
2357
  [ct]: e.block,
2358
2358
  [Xa]: Y.value
2359
2359
  }
2360
- ]), G = f(() => [
2360
+ ]), G = p(() => [
2361
2361
  Ja,
2362
2362
  {
2363
2363
  [ct]: e.block,
@@ -2365,7 +2365,7 @@ const ul = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2365
2365
  [Ya]: h.value,
2366
2366
  [Za]: M.value
2367
2367
  }
2368
- ]), Y = f(() => p.value || e.error), le = () => {
2368
+ ]), Y = p(() => f.value || e.error), le = () => {
2369
2369
  a("update:modelValue", "");
2370
2370
  };
2371
2371
  return He({
@@ -2492,7 +2492,7 @@ const Pt = /* @__PURE__ */ I(dl, [["render", pl]]), vl = R({
2492
2492
  MButton: Ma
2493
2493
  },
2494
2494
  setup(e, { emit: t }) {
2495
- const { isSupported: a, open: n, sRGBHex: r } = vo(), { nextZIndex: o } = ot(), s = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), p = b(""), v = b(), $ = b(), w = b(), y = J(e, "transfer"), h = J(e, "placement"), M = b(), O = b(0), T = b(100), B = b(!1), C = me({
2495
+ const { isSupported: a, open: n, sRGBHex: r } = vo(), { nextZIndex: o } = ot(), s = b(!1), l = b(!1), i = b(""), u = b(""), d = b(""), c = b(""), f = b(""), v = b(), $ = b(), w = b(), y = J(e, "transfer"), h = J(e, "placement"), M = b(), O = b(0), T = b(100), B = b(!1), C = me({
2496
2496
  x: 0,
2497
2497
  y: 0
2498
2498
  }), V = b(e.zIndex ?? o()), { elementX: H, elementY: E } = Aa(v), { pressed: j } = Ra(), { popper: z, transferTo: G, updatePopper: Y } = $t({
@@ -2502,8 +2502,8 @@ const Pt = /* @__PURE__ */ I(dl, [["render", pl]]), vl = R({
2502
2502
  wrapper: $,
2503
2503
  isDrop: !1,
2504
2504
  offset: [-2, 2]
2505
- }), le = f(() => 1 - C.y), te = f(() => C.x), L = f(() => Ao(O.value * 3.6, le.value, te.value, T.value / 100)), oe = f(() => Ro(O.value * 3.6, T.value / 100)), Me = () => {
2506
- i.value = Eo(L.value.r, L.value.g, L.value.b, L.value.a), u.value = L.value.r.toString(), d.value = L.value.g.toString(), c.value = L.value.b.toString(), p.value = L.value.a.toFixed(2).toString(), t("update:modelValue", i.value);
2505
+ }), le = p(() => 1 - C.y), te = p(() => C.x), L = p(() => Ao(O.value * 3.6, le.value, te.value, T.value / 100)), oe = p(() => Ro(O.value * 3.6, T.value / 100)), Me = () => {
2506
+ i.value = Eo(L.value.r, L.value.g, L.value.b, L.value.a), u.value = L.value.r.toString(), d.value = L.value.g.toString(), c.value = L.value.b.toString(), f.value = L.value.a.toFixed(2).toString(), t("update:modelValue", i.value);
2507
2507
  };
2508
2508
  W(() => L.value, () => {
2509
2509
  Me();
@@ -2520,7 +2520,7 @@ const Pt = /* @__PURE__ */ I(dl, [["render", pl]]), vl = R({
2520
2520
  (isNaN(ae) || ae > 255 || ae < 0) && (ae = L.value.g);
2521
2521
  var _ = parseInt(c.value);
2522
2522
  (isNaN(_) || _ > 255 || _ < 0) && (_ = L.value.b);
2523
- var D = parseFloat(p.value);
2523
+ var D = parseFloat(f.value);
2524
2524
  (isNaN(D) || D > 1 || D < 0) && (D = L.value.a), ve(Jt(q, ae, _), D);
2525
2525
  };
2526
2526
  W(() => j.value, () => {
@@ -2557,7 +2557,7 @@ const Pt = /* @__PURE__ */ I(dl, [["render", pl]]), vl = R({
2557
2557
  rInput: u,
2558
2558
  gInput: d,
2559
2559
  bInput: c,
2560
- aInput: p,
2560
+ aInput: f,
2561
2561
  finalColor: L,
2562
2562
  hueSlider: O,
2563
2563
  opacitySlider: T,
@@ -2855,7 +2855,7 @@ const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2855
2855
  "update:open"
2856
2856
  ],
2857
2857
  setup(e, { emit: t }) {
2858
- const a = ie(Tt, null), { nextZIndex: n } = ot(), r = !!a, o = J(e, "label"), s = b(e.open), l = b(e.placement), i = J(e, "transfer"), u = b(null), d = b(null), c = b(e.zIndex ?? n()), p = f(() => {
2858
+ const a = ie(Tt, null), { nextZIndex: n } = ot(), r = !!a, o = J(e, "label"), s = b(e.open), l = b(e.placement), i = J(e, "transfer"), u = b(null), d = b(null), c = b(e.zIndex ?? n()), f = p(() => {
2859
2859
  if (e.virtual !== null) {
2860
2860
  const E = e.virtual.$el ?? e.virtual;
2861
2861
  if (E) {
@@ -2876,7 +2876,7 @@ const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2876
2876
  }
2877
2877
  return d.value;
2878
2878
  }), { popper: v, transferTo: $, updatePopper: w } = $t({
2879
- reference: p,
2879
+ reference: f,
2880
2880
  placement: l,
2881
2881
  transfer: i,
2882
2882
  wrapper: u,
@@ -2921,17 +2921,17 @@ const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2921
2921
  function T(E) {
2922
2922
  s.value = !1, e.onSelect(E), typeof (a == null ? void 0 : a.handleSelect) == "function" && a.handleSelect([y.value, ...E]);
2923
2923
  }
2924
- const B = f(() => [
2924
+ const B = p(() => [
2925
2925
  "m-dropdown",
2926
2926
  {
2927
2927
  "m-dropdown--open": s.value,
2928
2928
  "m-dropdown--nested": r
2929
2929
  }
2930
- ]), C = f(() => {
2931
- }), V = f(() => [
2930
+ ]), C = p(() => {
2931
+ }), V = p(() => [
2932
2932
  "m-dropdown-menu",
2933
2933
  an
2934
- ]), H = f(() => `m-transition__${e.transitionName}`);
2934
+ ]), H = p(() => `m-transition__${e.transitionName}`);
2935
2935
  return {
2936
2936
  wrapper: u,
2937
2937
  referenceRef: d,
@@ -3028,13 +3028,13 @@ const Al = /* @__PURE__ */ I(El, [["render", _l]]), Rl = R({
3028
3028
  },
3029
3029
  emits: [],
3030
3030
  setup(e, { slots: t }) {
3031
- const a = ie("dropdown-select", null), n = f(() => !!t["icon-left"]), r = f(() => !!t["icon-right"]), o = b(null), s = J(e, "label"), l = b(e.reference), i = tn(s, o);
3031
+ const a = ie("dropdown-select", null), n = p(() => !!t["icon-left"]), r = p(() => !!t["icon-right"]), o = b(null), s = J(e, "label"), l = b(e.reference), i = tn(s, o);
3032
3032
  function u() {
3033
3033
  e.disabled || l.value || (typeof a == "function" && a([i.value]), e.onSelect(i.value));
3034
3034
  }
3035
- const d = f(() => [
3035
+ const d = p(() => [
3036
3036
  nn
3037
- ]), c = f(() => e.href ? "a" : "li");
3037
+ ]), c = p(() => e.href ? "a" : "li");
3038
3038
  return {
3039
3039
  wrapper: o,
3040
3040
  hasIconLeft: n,
@@ -3096,7 +3096,7 @@ const Ll = /* @__PURE__ */ I(zl, [["render", Vl]]), Pl = R({
3096
3096
  name: "DropdownSeperator",
3097
3097
  setup() {
3098
3098
  return {
3099
- computedClasses: f(() => [
3099
+ computedClasses: p(() => [
3100
3100
  rn
3101
3101
  ])
3102
3102
  };
@@ -3184,8 +3184,8 @@ const Gl = R({
3184
3184
  setup(e, { emit: t }) {
3185
3185
  const a = [], n = me({
3186
3186
  add: (i, u, d, c) => {
3187
- const p = a.find((v) => v.name === i);
3188
- p ? (p.focus = u, p.validate = d, p.setError = c) : a.push({
3187
+ const f = a.find((v) => v.name === i);
3188
+ f ? (f.focus = u, f.validate = d, f.setError = c) : a.push({
3189
3189
  name: i,
3190
3190
  focus: u,
3191
3191
  validate: d,
@@ -3222,10 +3222,10 @@ const Gl = R({
3222
3222
  }), i;
3223
3223
  }, o = (i) => {
3224
3224
  i.preventDefault(), i.stopPropagation(), t("submit", e.autoValidate ? r() : !0);
3225
- }, s = f(() => {
3225
+ }, s = p(() => {
3226
3226
  let i = {};
3227
3227
  return e.spacing && (i[ql.spacing] = e.spacing), ln(i);
3228
- }), l = f(() => [
3228
+ }), l = p(() => [
3229
3229
  Hl
3230
3230
  ]);
3231
3231
  return {
@@ -3267,7 +3267,7 @@ const Kl = /* @__PURE__ */ I(Gl, [["render", Ul]]), Xl = R({
3267
3267
  to: [String, Object]
3268
3268
  },
3269
3269
  setup(e) {
3270
- const t = f(() => [
3270
+ const t = p(() => [
3271
3271
  "m-link",
3272
3272
  {
3273
3273
  [`m-link--${e.color}`]: e.color,
@@ -3276,7 +3276,7 @@ const Kl = /* @__PURE__ */ I(Gl, [["render", Ul]]), Xl = R({
3276
3276
  "m-link--disabled": e.disabled,
3277
3277
  "m-link--external": a.value === "a"
3278
3278
  }
3279
- ]), a = f(() => e.to ? "router-link" : "a");
3279
+ ]), a = p(() => e.to ? "router-link" : "a");
3280
3280
  return {
3281
3281
  computedClasses: t,
3282
3282
  tag: a
@@ -3343,10 +3343,10 @@ const ai = R({
3343
3343
  function r() {
3344
3344
  a.value = !1, t && (window.clearTimeout(t), t = null, e.onInternalAfterLeave && e.onInternalAfterLeave(e.internalKey));
3345
3345
  }
3346
- const o = f(() => [
3346
+ const o = p(() => [
3347
3347
  Jl,
3348
3348
  [ei[e.variant]]
3349
- ]), s = f(() => [
3349
+ ]), s = p(() => [
3350
3350
  Ql
3351
3351
  ]);
3352
3352
  return W(() => e.timeout, () => {
@@ -3484,12 +3484,12 @@ const $i = /* @__PURE__ */ I(ai, [["render", hi]]), wi = R({
3484
3484
  };
3485
3485
  ke("m-message", r);
3486
3486
  function o(u, d) {
3487
- const { id: c } = _t("m-message"), p = c.value, v = me({
3487
+ const { id: c } = _t("m-message"), f = c.value, v = me({
3488
3488
  ...d,
3489
3489
  content: u,
3490
- key: p,
3490
+ key: f,
3491
3491
  destroy: () => {
3492
- n.value[p].hide();
3492
+ n.value[f].hide();
3493
3493
  }
3494
3494
  });
3495
3495
  return a.value.push(v), v;
@@ -3504,7 +3504,7 @@ const $i = /* @__PURE__ */ I(ai, [["render", hi]]), wi = R({
3504
3504
  (d) => d.key !== u
3505
3505
  ), delete n.value[u];
3506
3506
  }
3507
- const i = f(() => [
3507
+ const i = p(() => [
3508
3508
  ti,
3509
3509
  // @ts-ignore
3510
3510
  [xl[e.placement]]
@@ -3607,11 +3607,11 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3607
3607
  W(l, (y) => {
3608
3608
  y && n.value && d();
3609
3609
  });
3610
- const i = f(() => [
3610
+ const i = p(() => [
3611
3611
  un,
3612
3612
  dn[e.size]
3613
3613
  ]);
3614
- K(r, "mousedown", v), K(document, "mouseup", p);
3614
+ K(r, "mousedown", v), K(document, "mouseup", f);
3615
3615
  const u = () => {
3616
3616
  e.canClickOutside && !s.value && d();
3617
3617
  }, d = () => {
@@ -3619,7 +3619,7 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3619
3619
  }, c = (y) => {
3620
3620
  $(), n.value = !0;
3621
3621
  };
3622
- function p(y) {
3622
+ function f(y) {
3623
3623
  Ae(() => {
3624
3624
  s.value && (s.value = !1);
3625
3625
  });
@@ -3646,7 +3646,7 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3646
3646
  }), {
3647
3647
  close: d,
3648
3648
  closeOutside: u,
3649
- handleMouseUp: p,
3649
+ handleMouseUp: f,
3650
3650
  handleMouseDown: v,
3651
3651
  open: c,
3652
3652
  target: r,
@@ -3770,14 +3770,14 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3770
3770
  "update:pageSize"
3771
3771
  ],
3772
3772
  setup(e, { emit: t }) {
3773
- const a = f(() => e.total || 0), n = f(() => a.value === 0), r = f(() => (e.pageSizes == null ? [10, 20, 30, 40, 50] : e.pageSizes).map((p) => ({
3774
- label: p,
3775
- value: p
3776
- }))), o = f(() => Math.ceil(a.value / e.pageSize)), s = f(() => {
3773
+ const a = p(() => e.total || 0), n = p(() => a.value === 0), r = p(() => (e.pageSizes == null ? [10, 20, 30, 40, 50] : e.pageSizes).map((f) => ({
3774
+ label: f,
3775
+ value: f
3776
+ }))), o = p(() => Math.ceil(a.value / e.pageSize)), s = p(() => {
3777
3777
  let { page: c } = e;
3778
3778
  if (n.value)
3779
3779
  return [i(1, { current: !1 })];
3780
- let p = ut * 2 + 1, v = (it - p - 2) / 2, $, w, y = Math.max(c - ca, 1), h = Math.min(c + ca, o.value);
3780
+ let f = ut * 2 + 1, v = (it - f - 2) / 2, $, w, y = Math.max(c - ca, 1), h = Math.min(c + ca, o.value);
3781
3781
  switch (!0) {
3782
3782
  case o.value <= it:
3783
3783
  return l(1, o.value);
@@ -3800,7 +3800,7 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3800
3800
  ).concat(
3801
3801
  l(
3802
3802
  c - ut,
3803
- p
3803
+ f
3804
3804
  )
3805
3805
  ).concat(
3806
3806
  i(h, { more: !0, forward: !0 })
@@ -3812,16 +3812,16 @@ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3812
3812
  );
3813
3813
  }
3814
3814
  });
3815
- function l(c, p) {
3815
+ function l(c, f) {
3816
3816
  let v = [];
3817
- for (let $ = 0; $ < p; $++)
3817
+ for (let $ = 0; $ < f; $++)
3818
3818
  v[$] = i(c + $);
3819
3819
  return v;
3820
3820
  }
3821
- function i(c, { more: p = !1, forward: v = !1, current: $ = !1 } = {}) {
3821
+ function i(c, { more: f = !1, forward: v = !1, current: $ = !1 } = {}) {
3822
3822
  return {
3823
3823
  page: c,
3824
- more: p,
3824
+ more: f,
3825
3825
  forward: v,
3826
3826
  current: $ || c === e.page,
3827
3827
  text: c
@@ -3983,24 +3983,24 @@ const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3983
3983
  validate: u,
3984
3984
  setError: d,
3985
3985
  formError: c,
3986
- formDisabled: p,
3986
+ formDisabled: f,
3987
3987
  formLoading: v,
3988
3988
  inputListeners: $
3989
- } = x(e, { focus: r, emit: a }), w = f(() => p || v || e.disabled || e.loading), y = J(e, "name"), h = f(() => e.modelValue === e.value), M = f(() => !!t.default), O = f({
3989
+ } = x(e, { focus: r, emit: a }), w = p(() => f || v || e.disabled || e.loading), y = J(e, "name"), h = p(() => e.modelValue === e.value), M = p(() => !!t.default), O = p({
3990
3990
  get() {
3991
3991
  return e.modelValue;
3992
3992
  },
3993
3993
  set(C) {
3994
3994
  a("update:modelValue", C);
3995
3995
  }
3996
- }), T = f(() => [
3996
+ }), T = p(() => [
3997
3997
  fn,
3998
3998
  [mn[e.size]],
3999
3999
  {
4000
4000
  [vn]: w.value,
4001
4001
  [pn]: h.value
4002
4002
  }
4003
- ]), B = f(() => c.value || e.error);
4003
+ ]), B = p(() => c.value || e.error);
4004
4004
  return He({
4005
4005
  focus: r,
4006
4006
  blur: o
@@ -4093,9 +4093,9 @@ const gn = Symbol("RADIO_BUTTON_GROUP_STATE"), $u = R({
4093
4093
  },
4094
4094
  emits: ["update:modelValue"],
4095
4095
  setup(e, { emit: t }) {
4096
- const a = b(null), n = ie(gn, null), r = f(() => n == null ? void 0 : n.modelValue), o = f(() => (n == null ? void 0 : n.size) || e.size), s = f(() => n == null ? void 0 : n.name), { focus: l, blur: i } = se(a);
4096
+ const a = b(null), n = ie(gn, null), r = p(() => n == null ? void 0 : n.modelValue), o = p(() => (n == null ? void 0 : n.size) || e.size), s = p(() => n == null ? void 0 : n.name), { focus: l, blur: i } = se(a);
4097
4097
  x(e, { focus: l, emit: t });
4098
- const u = f(() => r.value === e.id), d = f(() => [
4098
+ const u = p(() => r.value === e.id), d = p(() => [
4099
4099
  gu,
4100
4100
  [hu[o.value]],
4101
4101
  {
@@ -4103,9 +4103,9 @@ const gn = Symbol("RADIO_BUTTON_GROUP_STATE"), $u = R({
4103
4103
  [fa.default]: !u.value,
4104
4104
  [fa.active]: u.value
4105
4105
  }
4106
- ]), c = f(() => [
4106
+ ]), c = p(() => [
4107
4107
  bu
4108
- ]), p = (v) => {
4108
+ ]), f = (v) => {
4109
4109
  if (e.disabled) {
4110
4110
  v.preventDefault();
4111
4111
  return;
@@ -4118,7 +4118,7 @@ const gn = Symbol("RADIO_BUTTON_GROUP_STATE"), $u = R({
4118
4118
  }), {
4119
4119
  radioRef: a,
4120
4120
  computedClasses: d,
4121
- handleClick: p,
4121
+ handleClick: f,
4122
4122
  selected: u,
4123
4123
  value: r,
4124
4124
  name: s,
@@ -4176,7 +4176,7 @@ const Ou = R({
4176
4176
  function a(s) {
4177
4177
  t("update:modelValue", s);
4178
4178
  }
4179
- const n = f({
4179
+ const n = p({
4180
4180
  get() {
4181
4181
  return e.modelValue;
4182
4182
  },
@@ -4190,7 +4190,7 @@ const Ou = R({
4190
4190
  doUpdateValue: a
4191
4191
  });
4192
4192
  return ke(gn, r), {
4193
- computedClasses: f(() => [
4193
+ computedClasses: p(() => [
4194
4194
  Mu,
4195
4195
  {
4196
4196
  [Tu]: e.block
@@ -4232,7 +4232,7 @@ const Au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4232
4232
  emits: ["close"],
4233
4233
  setup(e, { emit: t }) {
4234
4234
  return {
4235
- computedClasses: f(() => [
4235
+ computedClasses: p(() => [
4236
4236
  yn
4237
4237
  ]),
4238
4238
  close: () => {
@@ -4375,7 +4375,7 @@ const ad = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4375
4375
  MTag: bn
4376
4376
  },
4377
4377
  setup(e, { emit: t }) {
4378
- const a = b(null), n = b(), r = b(), o = b(), s = b(), l = b(0), i = b(!1), u = b(!1), d = b(""), c = b("bottom-start"), p = b(!1), v = b(0), $ = b(!1), { focus: w, blur: y } = se(a), {
4378
+ const a = b(null), n = b(), r = b(), o = b(), s = b(), l = b(0), i = b(!1), u = b(!1), d = b(""), c = b("bottom-start"), f = b(!1), v = b(0), $ = b(!1), { focus: w, blur: y } = se(a), {
4379
4379
  id: h,
4380
4380
  insideForm: M,
4381
4381
  inputListeners: O,
@@ -4384,20 +4384,20 @@ const ad = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4384
4384
  formLoading: C
4385
4385
  } = x(e, { focus: w, emit: t, withListeners: !1 }), { popper: V } = $t({
4386
4386
  placement: c,
4387
- transfer: p,
4387
+ transfer: f,
4388
4388
  reference: a,
4389
4389
  wrapper: n,
4390
4390
  offset: [0, 5]
4391
- }), H = f(() => B || e.disabled), E = f(() => C || e.loading), j = f({
4391
+ }), H = p(() => B || e.disabled), E = p(() => C || e.loading), j = p({
4392
4392
  get() {
4393
4393
  return e.multiple ? e.modelValue ? Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue] : [] : e.modelValue || null;
4394
4394
  },
4395
4395
  set(_) {
4396
4396
  t("update:modelValue", _);
4397
4397
  }
4398
- }), z = f(() => e.consistentWidth ? {
4398
+ }), z = p(() => e.consistentWidth ? {
4399
4399
  width: v.value + "px"
4400
- } : {}), G = f(() => {
4400
+ } : {}), G = p(() => {
4401
4401
  if (!e.options || e.options.length == 0)
4402
4402
  return [];
4403
4403
  if (e.searchable && d.value) {
@@ -4506,17 +4506,17 @@ const ad = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4506
4506
  function Me(_) {
4507
4507
  console.log(_);
4508
4508
  }
4509
- const ve = f(() => `m-transition__${e.transitionName}`), he = f(() => [
4509
+ const ve = p(() => `m-transition__${e.transitionName}`), he = p(() => [
4510
4510
  "m-select__container",
4511
4511
  {
4512
4512
  "m-form__input": M
4513
4513
  }
4514
- ]), ze = f(() => [
4514
+ ]), ze = p(() => [
4515
4515
  wn,
4516
4516
  {
4517
4517
  [Ot]: u.value
4518
4518
  }
4519
- ]), $e = f(() => [
4519
+ ]), $e = p(() => [
4520
4520
  hn,
4521
4521
  {
4522
4522
  [$n]: e.multiple,
@@ -4547,7 +4547,7 @@ const ad = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4547
4547
  $.value = !1;
4548
4548
  });
4549
4549
  });
4550
- const Be = f(() => T.value || e.error), q = f(() => e.multiple && G.value.length == 0 && !d.value ? !1 : i.value), ae = () => {
4550
+ const Be = p(() => T.value || e.error), q = p(() => e.multiple && G.value.length == 0 && !d.value ? !1 : i.value), ae = () => {
4551
4551
  s.value && Y();
4552
4552
  };
4553
4553
  return He({
@@ -4706,12 +4706,12 @@ const pd = R({
4706
4706
  }
4707
4707
  },
4708
4708
  setup(e) {
4709
- const t = f(() => [
4709
+ const t = p(() => [
4710
4710
  cd,
4711
4711
  {
4712
4712
  [fd]: e.loading
4713
4713
  }
4714
- ]), a = f(() => {
4714
+ ]), a = p(() => {
4715
4715
  let n = {};
4716
4716
  return e.width && (n[pa.width] = e.width), e.height && (n[pa.height] = e.height), ln(n);
4717
4717
  });
@@ -4768,17 +4768,17 @@ const hd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4768
4768
  validate: u,
4769
4769
  setError: d,
4770
4770
  formError: c,
4771
- formDisabled: p,
4771
+ formDisabled: f,
4772
4772
  formLoading: v,
4773
4773
  inputListeners: $
4774
- } = x(e, { focus: r, emit: a }), w = f(() => p || e.disabled || e.loading), y = J(e, "name"), h = b(!1), M = f(() => !!t.default), O = f(() => [
4774
+ } = x(e, { focus: r, emit: a }), w = p(() => f || e.disabled || e.loading), y = J(e, "name"), h = b(!1), M = p(() => !!t.default), O = p(() => [
4775
4775
  Mn,
4776
4776
  [Cn[e.size]],
4777
4777
  {
4778
4778
  [Sn]: w.value,
4779
4779
  [kn]: h.value
4780
4780
  }
4781
- ]), T = f(() => c.value || e.error);
4781
+ ]), T = p(() => c.value || e.error);
4782
4782
  W(() => e.modelValue, (C) => {
4783
4783
  h.value = !!C;
4784
4784
  }, { immediate: !0 }), W(() => h.value, (C) => {
@@ -4858,20 +4858,20 @@ const Cd = /* @__PURE__ */ I($d, [["render", Sd]]), Md = R({
4858
4858
  }
4859
4859
  },
4860
4860
  setup(e, { emit: t }) {
4861
- const a = f(() => e.value), n = f(() => e.label || e.value), r = b(null), o = b(null), s = ie("tabs", {
4861
+ const a = p(() => e.value), n = p(() => e.label || e.value), r = b(null), o = b(null), s = ie("tabs", {
4862
4862
  tabsContentRef: b(null),
4863
4863
  selectTab: (c) => {
4864
4864
  },
4865
4865
  state: me({
4866
4866
  active: ""
4867
4867
  })
4868
- }), l = f(() => ({
4868
+ }), l = p(() => ({
4869
4869
  "m-tab": !0,
4870
4870
  "m-tab--active": u.value,
4871
4871
  "m-tab--disabled": e.disabled
4872
- })), i = f(() => ({
4872
+ })), i = p(() => ({
4873
4873
  "m-tabs__button": !0
4874
- })), u = f(() => s.state.active === a.value);
4874
+ })), u = p(() => s.state.active === a.value);
4875
4875
  function d() {
4876
4876
  s.selectTab(a.value);
4877
4877
  }
@@ -4941,12 +4941,12 @@ const jd = /* @__PURE__ */ I(Md, [["render", Bd]]), Ed = R({
4941
4941
  o.value = e.modelValue;
4942
4942
  });
4943
4943
  const s = me({
4944
- active: f(() => o.value)
4945
- }), l = f(() => ({
4944
+ active: p(() => o.value)
4945
+ }), l = p(() => ({
4946
4946
  "m-tab-group": !0,
4947
4947
  "m-tab-group--vertical": e.vertical,
4948
4948
  [`m-tab-group--${e.size}`]: !0
4949
- })), i = f(() => ({
4949
+ })), i = p(() => ({
4950
4950
  "m-tab-group__tabs": !0
4951
4951
  }));
4952
4952
  function u(d) {
@@ -5008,9 +5008,9 @@ const Tn = /* @__PURE__ */ I(Dd, [["render", zd]]), Vd = R({
5008
5008
  }
5009
5009
  },
5010
5010
  setup(e) {
5011
- const t = f(() => isNaN(Number(e.width)) ? e.width : `${e.width}px`);
5011
+ const t = p(() => isNaN(Number(e.width)) ? e.width : `${e.width}px`);
5012
5012
  return {
5013
- computedStyles: f(() => ({
5013
+ computedStyles: p(() => ({
5014
5014
  width: t.value
5015
5015
  }))
5016
5016
  };
@@ -5097,28 +5097,28 @@ const Yd = R({
5097
5097
  }
5098
5098
  },
5099
5099
  setup(e, { emit: t, attrs: a }) {
5100
- const n = f(() => [
5100
+ const n = p(() => [
5101
5101
  Xd,
5102
5102
  "m-table__wrapper",
5103
5103
  {
5104
5104
  "m-table__wrapper--loading": e.loading
5105
5105
  }
5106
- ]), r = f(() => [
5106
+ ]), r = p(() => [
5107
5107
  Kd,
5108
5108
  {
5109
5109
  [Gd]: e.hover,
5110
5110
  [Ud]: e.striped
5111
5111
  }
5112
- ]), o = f({
5112
+ ]), o = p({
5113
5113
  get() {
5114
5114
  return e.modelValue;
5115
5115
  },
5116
5116
  set(c) {
5117
5117
  t("update:modelValue", c);
5118
5118
  }
5119
- }), s = f(() => o.value && o.value.length > 0 && o.value.length < e.items.length);
5120
- function l(c, p) {
5121
- return c === p;
5119
+ }), s = p(() => o.value && o.value.length > 0 && o.value.length < e.items.length);
5120
+ function l(c, f) {
5121
+ return c === f;
5122
5122
  }
5123
5123
  function i(c) {
5124
5124
  if (!a.onSelect) {
@@ -5129,7 +5129,7 @@ const Yd = R({
5129
5129
  }
5130
5130
  function u() {
5131
5131
  e.items.forEach((c) => {
5132
- o.value.some((p) => l(Yt(p), Yt(c))) || i(c);
5132
+ o.value.some((f) => l(Yt(f), Yt(c))) || i(c);
5133
5133
  });
5134
5134
  }
5135
5135
  function d(c) {
@@ -5169,14 +5169,14 @@ function Qd(e, t, a, n, r, o) {
5169
5169
  ]),
5170
5170
  _: 1
5171
5171
  })) : F("", !0),
5172
- (m(!0), k(Q, null, fe(e.headers, (p, v) => (m(), Z(l, {
5172
+ (m(!0), k(Q, null, fe(e.headers, (f, v) => (m(), Z(l, {
5173
5173
  key: v,
5174
- width: p.width,
5175
- style: ee({ textAlign: p.align })
5174
+ width: f.width,
5175
+ style: ee({ textAlign: f.align })
5176
5176
  }, {
5177
5177
  default: U(() => [
5178
- A(e.$slots, `${p.key}-header`, {}, () => [
5179
- re(N(p.name), 1)
5178
+ A(e.$slots, `${f.key}-header`, {}, () => [
5179
+ re(N(f.name), 1)
5180
5180
  ])
5181
5181
  ]),
5182
5182
  _: 2
@@ -5186,14 +5186,14 @@ function Qd(e, t, a, n, r, o) {
5186
5186
  }),
5187
5187
  X(c, null, {
5188
5188
  default: U(() => [
5189
- e.items.length > 0 ? (m(!0), k(Q, { key: 0 }, fe(e.items, (p, v) => (m(), Z(d, { key: v }, {
5189
+ e.items.length > 0 ? (m(!0), k(Q, { key: 0 }, fe(e.items, (f, v) => (m(), Z(d, { key: v }, {
5190
5190
  default: U(({ onHover: $ }) => [
5191
5191
  e.modelValue ? (m(), Z(u, { key: 0 }, {
5192
5192
  default: U(() => [
5193
5193
  X(s, {
5194
5194
  modelValue: e.selected,
5195
5195
  "onUpdate:modelValue": t[0] || (t[0] = (w) => e.selected = w),
5196
- value: p,
5196
+ value: f,
5197
5197
  onClick: t[1] || (t[1] = je(() => {
5198
5198
  }, ["stop"]))
5199
5199
  }, null, 8, ["modelValue", "value"])
@@ -5206,12 +5206,12 @@ function Qd(e, t, a, n, r, o) {
5206
5206
  }, {
5207
5207
  default: U(() => [
5208
5208
  A(e.$slots, w.key, {
5209
- item: p,
5209
+ item: f,
5210
5210
  onHover: $
5211
5211
  }, () => [
5212
5212
  re(N(
5213
5213
  //@ts-ignore
5214
- p[w.key]
5214
+ f[w.key]
5215
5215
  ), 1)
5216
5216
  ])
5217
5217
  ]),
@@ -5301,19 +5301,19 @@ const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5301
5301
  inputListeners: u,
5302
5302
  validate: d,
5303
5303
  setError: c,
5304
- formError: p,
5304
+ formError: f,
5305
5305
  formDisabled: v,
5306
5306
  formLoading: $
5307
- } = x(e, { focus: r, emit: a }), w = J(e, "name"), y = f(() => v || e.disabled), h = f(() => $ || e.loading), M = f(() => e.loading || e.readonly), O = f(() => [
5307
+ } = x(e, { focus: r, emit: a }), w = J(e, "name"), y = p(() => v || e.disabled), h = p(() => $ || e.loading), M = p(() => e.loading || e.readonly), O = p(() => [
5308
5308
  {
5309
5309
  [ft]: e.block
5310
5310
  }
5311
- ]), T = f(() => [
5311
+ ]), T = p(() => [
5312
5312
  Dn,
5313
5313
  {
5314
5314
  [ft]: e.block
5315
5315
  }
5316
- ]), B = f(() => [
5316
+ ]), B = p(() => [
5317
5317
  _n,
5318
5318
  In[e.size],
5319
5319
  {
@@ -5321,7 +5321,7 @@ const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5321
5321
  [An]: y.value || h.value,
5322
5322
  [Rn]: C.value
5323
5323
  }
5324
- ]), C = f(() => p.value || e.error), V = () => {
5324
+ ]), C = p(() => f.value || e.error), V = () => {
5325
5325
  a("update:modelValue", "");
5326
5326
  };
5327
5327
  return He({
@@ -5430,7 +5430,7 @@ const mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5430
5430
  }
5431
5431
  },
5432
5432
  setup(e) {
5433
- const { nextZIndex: t } = ot(), a = J(e, "placement"), n = J(e, "transfer"), r = b(null), o = b(null), s = b(!1), l = b(e.zIndex ?? t()), i = b(null), u = f(() => {
5433
+ const { nextZIndex: t } = ot(), a = J(e, "placement"), n = J(e, "transfer"), r = b(null), o = b(null), s = b(!1), l = b(e.zIndex ?? t()), i = b(null), u = p(() => {
5434
5434
  switch (a.value) {
5435
5435
  case "top":
5436
5436
  return [0, 8];
@@ -5443,21 +5443,21 @@ const mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5443
5443
  default:
5444
5444
  return [0, 0];
5445
5445
  }
5446
- }), { popper: d, transferTo: c, updatePopper: p } = $t({
5446
+ }), { popper: d, transferTo: c, updatePopper: f } = $t({
5447
5447
  placement: a,
5448
5448
  transfer: n,
5449
5449
  reference: o,
5450
5450
  wrapper: r,
5451
5451
  // @ts-ignore
5452
5452
  offset: u.value
5453
- }), v = f(() => [
5453
+ }), v = p(() => [
5454
5454
  Vn,
5455
5455
  {
5456
5456
  [zn]: e.reverse
5457
5457
  }
5458
5458
  ]);
5459
5459
  W(() => s.value, (y) => {
5460
- y && p();
5460
+ y && f();
5461
5461
  });
5462
5462
  function $() {
5463
5463
  i.value && clearTimeout(i.value), e.delay ? i.value = setTimeout(() => {
@@ -5560,17 +5560,17 @@ const Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5560
5560
  },
5561
5561
  setup(e, { emit: t }) {
5562
5562
  const a = b(null), n = () => {
5563
- const i = f(
5563
+ const i = p(
5564
5564
  () => (
5565
5565
  // @ts-ignore
5566
- e.options.reduce((c, p) => (c[p[e.optionKey]] = p) && c, {})
5566
+ e.options.reduce((c, f) => (c[f[e.optionKey]] = f) && c, {})
5567
5567
  )
5568
- ), u = f(
5569
- () => e.options.filter((c) => !e.modelValue.includes(c[e.optionKey]))
5570
- ), d = f(() => e.modelValue.reduce(
5568
+ ), u = p(
5569
+ () => e.options.filter((c) => !e.modelValue.includes(c[e.optionKey])).sort((c, f) => c[e.optionLabel].localeCompare(f[e.optionLabel]))
5570
+ ), d = p(() => e.modelValue.reduce(
5571
5571
  // @ts-ignore
5572
- (c, p) => {
5573
- const v = i.value[p];
5572
+ (c, f) => {
5573
+ const v = i.value[f];
5574
5574
  return v && c.push(v), c;
5575
5575
  },
5576
5576
  []
@@ -5683,7 +5683,7 @@ const Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5683
5683
  }
5684
5684
  },
5685
5685
  setup(e, { emit: t }) {
5686
- const a = b(), n = b(), r = b(0), o = b(0), s = b(0), l = b(0), i = f(() => e.items.length * e.itemHeight), u = f(() => e.items[0].length * e.itemWidth), d = f(() => {
5686
+ const a = b(), n = b(), r = b(0), o = b(0), s = b(0), l = b(0), i = p(() => e.items.length * e.itemHeight), u = p(() => e.items[0].length * e.itemWidth), d = p(() => {
5687
5687
  const M = Math.max(
5688
5688
  0,
5689
5689
  Math.floor(s.value / e.itemHeight) - 2 * e.buffer
@@ -5692,7 +5692,7 @@ const Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5692
5692
  Math.floor(l.value / e.itemWidth) - 2 * e.buffer
5693
5693
  );
5694
5694
  return { row: M, col: O };
5695
- }), c = f(() => {
5695
+ }), c = p(() => {
5696
5696
  const M = Math.min(
5697
5697
  e.items.length,
5698
5698
  Math.ceil(
@@ -5706,9 +5706,9 @@ const Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5706
5706
  ) + 2 * e.buffer
5707
5707
  );
5708
5708
  return { row: M, col: O };
5709
- }), p = f(() => d.value.col * e.itemWidth), v = f(() => d.value.row * e.itemHeight), $ = f(
5709
+ }), f = p(() => d.value.col * e.itemWidth), v = p(() => d.value.row * e.itemHeight), $ = p(
5710
5710
  () => Math.ceil(r.value / e.itemHeight)
5711
- ), w = f(
5711
+ ), w = p(
5712
5712
  () => Math.ceil(o.value / e.itemWidth)
5713
5713
  ), y = b([]), h = () => {
5714
5714
  s.value = n.value.scrollTop, l.value = n.value.scrollLeft;
@@ -5745,7 +5745,7 @@ const Ic = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5745
5745
  startPosition: d,
5746
5746
  endPosition: c,
5747
5747
  renderedItems: y,
5748
- offsetX: p,
5748
+ offsetX: f,
5749
5749
  offsetY: v,
5750
5750
  onScroll: h,
5751
5751
  style: Ic