yuyeon 0.0.47-rc.5 → 0.0.47-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/yuyeon.js CHANGED
@@ -108,7 +108,7 @@ const ri = () => {
108
108
  }, _l = /^on[^a-z]/, Sl = (e) => _l.test(e), Se = Object.assign, xl = (e, t) => {
109
109
  const n = e.indexOf(t);
110
110
  n > -1 && e.splice(n, 1);
111
- }, Cl = Object.prototype.hasOwnProperty, ne = (e, t) => Cl.call(e, t), J = Array.isArray, lt = (e) => xn(e) === "[object Map]", El = (e) => xn(e) === "[object Set]", le = (e) => typeof e == "function", we = (e) => typeof e == "string", pa = (e) => typeof e == "symbol", ge = (e) => e !== null && typeof e == "object", Ol = (e) => ge(e) && le(e.then) && le(e.catch), Tl = Object.prototype.toString, xn = (e) => Tl.call(e), ii = (e) => xn(e).slice(8, -1), kl = (e) => xn(e) === "[object Object]", ba = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dl = (e) => {
111
+ }, Cl = Object.prototype.hasOwnProperty, ne = (e, t) => Cl.call(e, t), J = Array.isArray, lt = (e) => xn(e) === "[object Map]", El = (e) => xn(e) === "[object Set]", le = (e) => typeof e == "function", we = (e) => typeof e == "string", pa = (e) => typeof e == "symbol", ge = (e) => e !== null && typeof e == "object", Ol = (e) => ge(e) && le(e.then) && le(e.catch), kl = Object.prototype.toString, xn = (e) => kl.call(e), ii = (e) => xn(e).slice(8, -1), Tl = (e) => xn(e) === "[object Object]", ba = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Dl = (e) => {
112
112
  const t = /* @__PURE__ */ Object.create(null);
113
113
  return (n) => t[n] || (t[n] = e(n));
114
114
  }, oi = Dl(
@@ -829,9 +829,9 @@ function Os({ vnode: e, recurseCount: t }) {
829
829
  e.type,
830
830
  a
831
831
  )}`, i = ">" + n;
832
- return e.props ? [r, ...Ts(e.props), i] : [r + i];
832
+ return e.props ? [r, ...ks(e.props), i] : [r + i];
833
833
  }
834
- function Ts(e) {
834
+ function ks(e) {
835
835
  const t = [], n = Object.keys(e);
836
836
  return n.slice(0, 3).forEach((a) => {
837
837
  t.push(...xi(a, e[a]));
@@ -917,9 +917,9 @@ function Ei(e, t, n, a = !0) {
917
917
  return;
918
918
  }
919
919
  }
920
- ks(e, n, r, a);
920
+ Ts(e, n, r, a);
921
921
  }
922
- function ks(e, t, n, a = !0) {
922
+ function Ts(e, t, n, a = !0) {
923
923
  if (process.env.NODE_ENV !== "production") {
924
924
  const r = Ci[t];
925
925
  if (n && Ss(n), ie(`Unhandled error${r ? ` during execution of ${r}` : ""}`), n && xs(), a)
@@ -934,10 +934,10 @@ let Ye = 0;
934
934
  const ct = [];
935
935
  let Ce = null, Ve = 0;
936
936
  const Oi = /* @__PURE__ */ Promise.resolve();
937
- let Ta = null;
937
+ let ka = null;
938
938
  const Ds = 100;
939
939
  function As(e) {
940
- const t = Ta || Oi;
940
+ const t = ka || Oi;
941
941
  return e ? t.then(this ? e.bind(this) : e) : t;
942
942
  }
943
943
  function Is(e) {
@@ -948,20 +948,20 @@ function Is(e) {
948
948
  }
949
949
  return t;
950
950
  }
951
- function ka(e) {
951
+ function Ta(e) {
952
952
  (!be.length || !be.includes(
953
953
  e,
954
954
  fn && e.allowRecurse ? Ye + 1 : Ye
955
- )) && (e.id == null ? be.push(e) : be.splice(Is(e.id), 0, e), Ti());
955
+ )) && (e.id == null ? be.push(e) : be.splice(Is(e.id), 0, e), ki());
956
956
  }
957
- function Ti() {
958
- !fn && !Zn && (Zn = !0, Ta = Oi.then(Di));
957
+ function ki() {
958
+ !fn && !Zn && (Zn = !0, ka = Oi.then(Di));
959
959
  }
960
- function ki(e) {
960
+ function Ti(e) {
961
961
  J(e) ? ct.push(...e) : (!Ce || !Ce.includes(
962
962
  e,
963
963
  e.allowRecurse ? Ve + 1 : Ve
964
- )) && ct.push(e), Ti();
964
+ )) && ct.push(e), ki();
965
965
  }
966
966
  function Ns(e) {
967
967
  if (ct.length) {
@@ -998,7 +998,7 @@ function Di(e) {
998
998
  }
999
999
  }
1000
1000
  } finally {
1001
- Ye = 0, be.length = 0, Ns(e), fn = !1, Ta = null, (be.length || ct.length) && Di(e);
1001
+ Ye = 0, be.length = 0, Ns(e), fn = !1, ka = null, (be.length || ct.length) && Di(e);
1002
1002
  }
1003
1003
  }
1004
1004
  function Ai(e, t) {
@@ -1045,11 +1045,11 @@ function Vs(e, t) {
1045
1045
  const a = [...n.instances];
1046
1046
  for (const r of a) {
1047
1047
  const i = Ot(r.type);
1048
- wt.has(i) || (i !== n.initialDef && mr(i, t), wt.add(i)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (wt.add(i), r.ceReload(t.styles), wt.delete(i)) : r.parent ? ka(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1048
+ wt.has(i) || (i !== n.initialDef && mr(i, t), wt.add(i)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (wt.add(i), r.ceReload(t.styles), wt.delete(i)) : r.parent ? Ta(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1049
1049
  "[HMR] Root or manually mounted instance modified. Full reload required."
1050
1050
  );
1051
1051
  }
1052
- ki(() => {
1052
+ Ti(() => {
1053
1053
  for (const r of a)
1054
1054
  wt.delete(
1055
1055
  Ot(r.type)
@@ -1072,10 +1072,10 @@ function Dn(e) {
1072
1072
  }
1073
1073
  };
1074
1074
  }
1075
- let ke = null, Ys = null;
1075
+ let Te = null, Ys = null;
1076
1076
  const Bs = (e) => e.__isSuspense;
1077
1077
  function Rs(e, t) {
1078
- t && t.pendingBranch ? J(e) ? t.effects.push(...e) : t.effects.push(e) : ki(e);
1078
+ t && t.pendingBranch ? J(e) ? t.effects.push(...e) : t.effects.push(e) : Ti(e);
1079
1079
  }
1080
1080
  const Jt = {};
1081
1081
  function Ls(e, t, { immediate: n, deep: a, flush: r, onTrack: i, onTrigger: o } = Pe) {
@@ -1135,7 +1135,7 @@ function Ls(e, t, { immediate: n, deep: a, flush: r, onTrack: i, onTrigger: o }
1135
1135
  };
1136
1136
  p.allowRecurse = !!t;
1137
1137
  let m;
1138
- r === "sync" ? m = p : r === "post" ? m = () => _r(p, c && c.suspense) : (p.pre = !0, c && (p.id = c.uid), m = () => ka(p));
1138
+ r === "sync" ? m = p : r === "post" ? m = () => _r(p, c && c.suspense) : (p.pre = !0, c && (p.id = c.uid), m = () => Ta(p));
1139
1139
  const _ = new Rl(d, m);
1140
1140
  return process.env.NODE_ENV !== "production" && (_.onTrack = i, _.onTrigger = o), t ? n ? p() : w = _.run() : r === "post" ? _r(
1141
1141
  _.run.bind(_),
@@ -1174,12 +1174,12 @@ function at(e, t) {
1174
1174
  e.forEach((n) => {
1175
1175
  at(n, t);
1176
1176
  });
1177
- else if (kl(e))
1177
+ else if (Tl(e))
1178
1178
  for (const n in e)
1179
1179
  at(e[n], t);
1180
1180
  return e;
1181
1181
  }
1182
- const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.parent) : null, Tt = (
1182
+ const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.parent) : null, kt = (
1183
1183
  // Move PURE marker to new line to workaround compiler discarding it
1184
1184
  // due to type annotation
1185
1185
  /* @__PURE__ */ Se(/* @__PURE__ */ Object.create(null), {
@@ -1194,7 +1194,7 @@ const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.
1194
1194
  $root: (e) => Jn(e.root),
1195
1195
  $emit: (e) => e.emit,
1196
1196
  $options: (e) => zs(e),
1197
- $forceUpdate: (e) => e.f || (e.f = () => ka(e.update)),
1197
+ $forceUpdate: (e) => e.f || (e.f = () => Ta(e.update)),
1198
1198
  $nextTick: (e) => e.n || (e.n = As.bind(e.proxy)),
1199
1199
  $watch: (e) => Fs.bind(e)
1200
1200
  })
@@ -1233,7 +1233,7 @@ const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.
1233
1233
  o[t] = 0;
1234
1234
  }
1235
1235
  }
1236
- const d = Tt[t];
1236
+ const d = kt[t];
1237
1237
  let g, h;
1238
1238
  if (d)
1239
1239
  return t === "$attrs" ? (he(e, "get", t), process.env.NODE_ENV !== "production" && void 0) : process.env.NODE_ENV !== "production" && t === "$slots" && he(e, "get", t), d(e);
@@ -1249,13 +1249,13 @@ const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.
1249
1249
  h = s.config.globalProperties, ne(h, t)
1250
1250
  )
1251
1251
  return h[t];
1252
- process.env.NODE_ENV !== "production" && ke && (!we(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1252
+ process.env.NODE_ENV !== "production" && Te && (!we(t) || // #1091 avoid internal isRef/isVNode checks on component instance leading
1253
1253
  // to infinite warning loop
1254
1254
  t.indexOf("__v") !== 0) && (r !== Pe && Ws(t[0]) && ne(r, t) ? ie(
1255
1255
  `Property ${JSON.stringify(
1256
1256
  t
1257
1257
  )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
1258
- ) : e === ke && ie(
1258
+ ) : e === Te && ie(
1259
1259
  `Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`
1260
1260
  ));
1261
1261
  },
@@ -1273,7 +1273,7 @@ const Hs = Symbol.for("v-ndc"), Jn = (e) => e ? sc(e) ? cc(e) || e.proxy : Jn(e.
1273
1273
  _: { data: e, setupState: t, accessCache: n, ctx: a, appContext: r, propsOptions: i }
1274
1274
  }, o) {
1275
1275
  let l;
1276
- return !!n[o] || e !== Pe && ne(e, o) || An(t, o) || (l = i[0]) && ne(l, o) || ne(a, o) || ne(Tt, o) || ne(r.config.globalProperties, o);
1276
+ return !!n[o] || e !== Pe && ne(e, o) || An(t, o) || (l = i[0]) && ne(l, o) || ne(a, o) || ne(kt, o) || ne(r.config.globalProperties, o);
1277
1277
  },
1278
1278
  defineProperty(e, t, n) {
1279
1279
  return n.get != null ? e._.accessCache[t] = 0 : ne(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
@@ -1391,7 +1391,7 @@ function qs(e, t) {
1391
1391
  }
1392
1392
  let wr = null;
1393
1393
  function Xs(e, t, n = !1) {
1394
- const a = Je || ke;
1394
+ const a = Je || Te;
1395
1395
  if (a || wr) {
1396
1396
  const r = a ? a.parent == null ? a.vnode.appContext && a.vnode.appContext.provides : a.parent.provides : wr._context.provides;
1397
1397
  if (r && e in r)
@@ -1413,7 +1413,7 @@ const tc = (...e) => $i(
1413
1413
  ref: e,
1414
1414
  ref_key: t,
1415
1415
  ref_for: n
1416
- }) => (typeof e == "number" && (e = "" + e), e != null ? we(e) || oe(e) || le(e) ? { i: ke, r: e, k: t, f: !!n } : e : null);
1416
+ }) => (typeof e == "number" && (e = "" + e), e != null ? we(e) || oe(e) || le(e) ? { i: Te, r: e, k: t, f: !!n } : e : null);
1417
1417
  function nc(e, t = null, n = null, a = 0, r = null, i = e === Ii ? 0 : 1, o = !1, l = !1) {
1418
1418
  const s = {
1419
1419
  __v_isVNode: !0,
@@ -1441,7 +1441,7 @@ function nc(e, t = null, n = null, a = 0, r = null, i = e === Ii ? 0 : 1, o = !1
1441
1441
  dynamicProps: r,
1442
1442
  dynamicChildren: null,
1443
1443
  appContext: null,
1444
- ctx: ke
1444
+ ctx: Te
1445
1445
  };
1446
1446
  return l ? (Da(s, n), i & 128 && e.normalize(s)) : n && (s.shapeFlag |= we(n) ? 8 : 16), process.env.NODE_ENV !== "production" && s.key !== s.key && ie("VNode created with invalid key (NaN). VNode type:", s.type), // avoid a block node from tracking itself
1447
1447
  !o && // has current parent block
@@ -1556,10 +1556,10 @@ function Da(e, t) {
1556
1556
  } else {
1557
1557
  n = 32;
1558
1558
  const r = t._;
1559
- !r && !(Ni in t) ? t._ctx = ke : r === 3 && ke && (ke.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1559
+ !r && !(Ni in t) ? t._ctx = Te : r === 3 && Te && (Te.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1560
1560
  }
1561
1561
  else
1562
- le(t) ? (t = { default: t, _ctx: ke }, n = 32) : (t = String(t), a & 64 ? (n = 16, t = [ic(t)]) : n = 8);
1562
+ le(t) ? (t = { default: t, _ctx: Te }, n = 32) : (t = String(t), a & 64 ? (n = 16, t = [ic(t)]) : n = 8);
1563
1563
  e.children = t, e.shapeFlag |= n;
1564
1564
  }
1565
1565
  function oc(...e) {
@@ -1597,11 +1597,11 @@ function cc(e) {
1597
1597
  get(t, n) {
1598
1598
  if (n in t)
1599
1599
  return t[n];
1600
- if (n in Tt)
1601
- return Tt[n](e);
1600
+ if (n in kt)
1601
+ return kt[n](e);
1602
1602
  },
1603
1603
  has(t, n) {
1604
- return n in t || n in Tt;
1604
+ return n in t || n in kt;
1605
1605
  }
1606
1606
  }));
1607
1607
  }
@@ -2069,14 +2069,14 @@ function Or(e, t) {
2069
2069
  };
2070
2070
  }
2071
2071
  const Qn = (e, t) => e.includes(t), Fi = ["top", "bottom"], xc = ["start", "end", "left", "right"];
2072
- function Tr(e, t) {
2072
+ function kr(e, t) {
2073
2073
  let [n, a] = e.split(" ");
2074
2074
  return a || (a = Qn(Fi, n) ? "start" : Qn(xc, n) ? "top" : "center"), {
2075
- side: kr(n, t),
2076
- align: kr(a, t)
2075
+ side: Tr(n, t),
2076
+ align: Tr(a, t)
2077
2077
  };
2078
2078
  }
2079
- function kr(e, t) {
2079
+ function Tr(e, t) {
2080
2080
  return e === "start" ? t ? "right" : "left" : e === "end" ? t ? "left" : "right" : e;
2081
2081
  }
2082
2082
  function Mn(e) {
@@ -2136,7 +2136,7 @@ function Oc(e) {
2136
2136
  { flush: "sync" }
2137
2137
  ), dl(t);
2138
2138
  }
2139
- const Tc = /rgb(a?)\((?<v>.*)\)/, kc = /#([0-9a-fA-F]{3,6,8})/;
2139
+ const kc = /rgb(a?)\((?<v>.*)\)/, Tc = /#([0-9a-fA-F]{3,6,8})/;
2140
2140
  function ea(e) {
2141
2141
  if (e && e[0] === "#") {
2142
2142
  const t = e.substring(1, e.length), n = t.length, a = [];
@@ -2154,7 +2154,7 @@ function ea(e) {
2154
2154
  }
2155
2155
  }
2156
2156
  function $a(e) {
2157
- return Tc.test(e) || kc.test(e);
2157
+ return kc.test(e) || Tc.test(e);
2158
2158
  }
2159
2159
  const Pn = {
2160
2160
  AD: 1,
@@ -2675,7 +2675,7 @@ let ta = !1;
2675
2675
  function Wi(e) {
2676
2676
  Hi(e.currentTarget);
2677
2677
  }
2678
- function kt(e) {
2678
+ function Tt(e) {
2679
2679
  Pa(e.currentTarget);
2680
2680
  }
2681
2681
  function $c(e) {
@@ -2687,7 +2687,7 @@ function zi(e) {
2687
2687
  ta = !1, Pa(e.currentTarget);
2688
2688
  }
2689
2689
  function Ui(e) {
2690
- e.removeEventListener("mousedown", Wi), e.removeEventListener("mouseup", kt), e.removeEventListener("mouseleave", kt), e.removeEventListener("keydown", Ki), e.removeEventListener("keyup", zi);
2690
+ e.removeEventListener("mousedown", Wi), e.removeEventListener("mouseup", Tt), e.removeEventListener("mouseleave", Tt), e.removeEventListener("keydown", Ki), e.removeEventListener("keyup", zi);
2691
2691
  }
2692
2692
  function Ir(e, t, n = !1) {
2693
2693
  const { value: a, modifiers: r } = t, i = !!a;
@@ -2696,7 +2696,7 @@ function Ir(e, t, n = !1) {
2696
2696
  e.addEventListener("mousedown", $c);
2697
2697
  return;
2698
2698
  }
2699
- e.addEventListener("mousedown", Wi), e.addEventListener("mouseup", kt), e.addEventListener("mouseleave", kt), e.addEventListener("keydown", Ki), e.addEventListener("keyup", zi), e.addEventListener("blur", kt);
2699
+ e.addEventListener("mousedown", Wi), e.addEventListener("mouseup", Tt), e.addEventListener("mouseleave", Tt), e.addEventListener("keydown", Ki), e.addEventListener("keyup", zi), e.addEventListener("blur", Tt);
2700
2700
  } else
2701
2701
  !i && !n && Ui(e);
2702
2702
  }
@@ -3131,18 +3131,18 @@ function Wc(e) {
3131
3131
  const { colors: y, variables: x, isDark: A } = E, L = {
3132
3132
  ...y,
3133
3133
  ...x
3134
- }, T = A ? "dark" : "light";
3134
+ }, k = A ? "dark" : "light";
3135
3135
  a.value === "auto" ? b.push(
3136
3136
  ..._t(
3137
- `@media (prefers-color-scheme: ${T})`,
3137
+ `@media (prefers-color-scheme: ${k})`,
3138
3138
  _t(
3139
- `[data-theme-scheme='auto'][data-${T}-theme='${f}']`,
3139
+ `[data-theme-scheme='auto'][data-${k}-theme='${f}']`,
3140
3140
  tn(L, "theme")
3141
3141
  )
3142
3142
  )
3143
3143
  ) : b.push(
3144
3144
  ..._t(
3145
- `[data-theme-scheme='${T}'][data-${T}-theme='${f}']`,
3145
+ `[data-theme-scheme='${k}'][data-${k}-theme='${f}']`,
3146
3146
  tn(L, "theme")
3147
3147
  )
3148
3148
  ), b.push(
@@ -3430,7 +3430,7 @@ const xe = "y-input", En = F({
3430
3430
  function L(I) {
3431
3431
  _.value = !0, r("mousedown:display", I);
3432
3432
  }
3433
- function T(I) {
3433
+ function k(I) {
3434
3434
  _.value = !1, r("mouseup:display", I);
3435
3435
  }
3436
3436
  function V(I) {
@@ -3477,7 +3477,7 @@ const xe = "y-input", En = F({
3477
3477
  }],
3478
3478
  onClick: A,
3479
3479
  onMousedown: L,
3480
- onMouseup: T
3480
+ onMouseup: k
3481
3481
  }, [u("div", {
3482
3482
  class: `${xe}__plate`
3483
3483
  }, null), t.leading && u("div", {
@@ -3568,7 +3568,7 @@ const xe = "y-input", En = F({
3568
3568
  s(), g.value = d.value, a("focus", O);
3569
3569
  }
3570
3570
  function p(O) {
3571
- c(), a("blur", O), T();
3571
+ c(), a("blur", O), k();
3572
3572
  }
3573
3573
  function m(O) {
3574
3574
  a("input", O);
@@ -3601,7 +3601,7 @@ const xe = "y-input", En = F({
3601
3601
  function L() {
3602
3602
  d.value = "", g.value = "", a("update:modelValue", d.value);
3603
3603
  }
3604
- function T() {
3604
+ function k() {
3605
3605
  const O = de(), {
3606
3606
  displayText: P
3607
3607
  } = e;
@@ -3617,7 +3617,7 @@ const xe = "y-input", En = F({
3617
3617
  }, {
3618
3618
  immediate: !0
3619
3619
  }), R(d, (O) => {
3620
- l.value ? g.value = O : T();
3620
+ l.value ? g.value = O : k();
3621
3621
  }, {
3622
3622
  immediate: !0
3623
3623
  }), n({
@@ -4439,7 +4439,7 @@ function ou(e, t, n, a) {
4439
4439
  );
4440
4440
  x.x += b, x.y += b, x.width -= b * 2, x.height -= b * 2;
4441
4441
  const { preferredAnchor: A, preferredOrigin: L } = Oc(() => {
4442
- const N = `${e.position} ${e.align}`, Y = Tr(N, !1), $ = e.origin === "overlap" ? Y : e.origin === "auto" ? Mn(Y) : Tr(e.origin, !1);
4442
+ const N = `${e.position} ${e.align}`, Y = kr(N, !1), $ = e.origin === "overlap" ? Y : e.origin === "auto" ? Mn(Y) : kr(e.origin, !1);
4443
4443
  return Y.side === $.side && Y.align === $n($).align ? {
4444
4444
  preferredAnchor: Dr(Y),
4445
4445
  preferredOrigin: Dr($)
@@ -4448,7 +4448,7 @@ function ou(e, t, n, a) {
4448
4448
  preferredOrigin: $
4449
4449
  };
4450
4450
  });
4451
- let T = {
4451
+ let k = {
4452
4452
  anchor: A.value,
4453
4453
  origin: L.value
4454
4454
  };
@@ -4489,20 +4489,20 @@ function ou(e, t, n, a) {
4489
4489
  const j = { x: 0, y: 0 }, I = { x: !1, y: !1 };
4490
4490
  let se = -1;
4491
4491
  for (; !(se++ > 10); ) {
4492
- const { x: N, y: Y, overflows: $ } = V(T);
4492
+ const { x: N, y: Y, overflows: $ } = V(k);
4493
4493
  O += N, P += Y, E.x += N, E.y += Y;
4494
4494
  {
4495
- const B = Ar(T.anchor), H = $.x.before || $.x.after, Q = $.y.before || $.y.after;
4495
+ const B = Ar(k.anchor), H = $.x.before || $.x.after, Q = $.y.before || $.y.after;
4496
4496
  let ve = !1;
4497
4497
  if (["x", "y"].forEach((fe) => {
4498
4498
  if (fe === "x" && H && !I.x || fe === "y" && Q && !I.y) {
4499
4499
  const Me = {
4500
- anchor: { ...T.anchor },
4501
- origin: { ...T.origin }
4500
+ anchor: { ...k.anchor },
4501
+ origin: { ...k.origin }
4502
4502
  }, rr = fe === "x" ? B === "y" ? $n : Mn : B === "y" ? Mn : $n;
4503
4503
  Me.anchor = rr(Me.anchor), Me.origin = rr(Me.origin);
4504
4504
  const { overflows: Kt } = V(Me);
4505
- (Kt[fe].before <= $[fe].before && Kt[fe].after <= $[fe].after || Kt[fe].before + Kt[fe].after < ($[fe].before + $[fe].after) / 2) && (T = Me, ve = I[fe] = !0);
4505
+ (Kt[fe].before <= $[fe].before && Kt[fe].after <= $[fe].after || Kt[fe].before + Kt[fe].after < ($[fe].before + $[fe].after) / 2) && (k = Me, ve = I[fe] = !0);
4506
4506
  }
4507
4507
  }), ve)
4508
4508
  continue;
@@ -4514,15 +4514,15 @@ function ou(e, t, n, a) {
4514
4514
  }
4515
4515
  break;
4516
4516
  }
4517
- const k = Ar(T.anchor);
4517
+ const T = Ar(k.anchor);
4518
4518
  return Object.assign(a.value, {
4519
- "--y-levitation-anchor-origin": `${T.anchor.side} ${T.anchor.align}`,
4520
- transformOrigin: `${T.origin.side} ${T.origin.align}`,
4519
+ "--y-levitation-anchor-origin": `${k.anchor.side} ${k.anchor.align}`,
4520
+ transformOrigin: `${k.origin.side} ${k.origin.align}`,
4521
4521
  top: U(Nn(P)),
4522
4522
  left: l.value ? void 0 : U(Nn(O)),
4523
4523
  right: l.value ? U(Nn(-O)) : void 0,
4524
4524
  minWidth: U(
4525
- k === "y" ? Math.min(s.value, f.width) : s.value
4525
+ T === "y" ? Math.min(s.value, f.width) : s.value
4526
4526
  ),
4527
4527
  maxWidth: U(
4528
4528
  Er(
@@ -4662,7 +4662,7 @@ function du(e) {
4662
4662
  }))
4663
4663
  };
4664
4664
  }
4665
- const Rr = "y-layer-group", Te = /* @__PURE__ */ new WeakMap();
4665
+ const Rr = "y-layer-group", ke = /* @__PURE__ */ new WeakMap();
4666
4666
  function fu(e) {
4667
4667
  const t = de(), n = C(() => {
4668
4668
  var c;
@@ -4681,12 +4681,12 @@ function fu(e) {
4681
4681
  n,
4682
4682
  (i, o) => {
4683
4683
  var l, s;
4684
- o && Te.has(o) && ((l = Te.get(o)) == null || l.delete(t)), Te.has(i) && Te.get(i) || Te.set(i, /* @__PURE__ */ new Set()), (s = Te.get(i)) == null || s.add(t);
4684
+ o && ke.has(o) && ((l = ke.get(o)) == null || l.delete(t)), ke.has(i) && ke.get(i) || ke.set(i, /* @__PURE__ */ new Set()), (s = ke.get(i)) == null || s.add(t);
4685
4685
  },
4686
4686
  { immediate: !0 }
4687
4687
  );
4688
4688
  function a() {
4689
- const i = [], o = Te.get(n.value);
4689
+ const i = [], o = ke.get(n.value);
4690
4690
  return o == null || o.forEach((l) => {
4691
4691
  var s;
4692
4692
  (s = l == null ? void 0 : l.ctx) != null && s.active && !(l != null && l.isUnmounted) && i.push(l);
@@ -4694,11 +4694,11 @@ function fu(e) {
4694
4694
  }
4695
4695
  function r() {
4696
4696
  var i;
4697
- (i = Te.get(n.value)) == null || i.delete(t);
4697
+ (i = ke.get(n.value)) == null || i.delete(t);
4698
4698
  }
4699
4699
  return Lt(() => {
4700
4700
  r();
4701
- }), { layerGroup: n, layerGroupState: Te, getActiveLayers: a };
4701
+ }), { layerGroup: n, layerGroupState: ke, getActiveLayers: a };
4702
4702
  }
4703
4703
  function hu(e, t) {
4704
4704
  const n = D(!1), a = D();
@@ -4966,7 +4966,7 @@ const Wt = F({
4966
4966
  onAfterUpdate: x
4967
4967
  } = hu(Ne(e, "eager"), _), A = C(() => !E.value && (y.value || _.value)), {
4968
4968
  coordinateStyles: L,
4969
- updateCoordinate: T
4969
+ updateCoordinate: k
4970
4970
  } = su(e, {
4971
4971
  contentEl: l,
4972
4972
  base: s,
@@ -4992,7 +4992,7 @@ const Wt = F({
4992
4992
  function se() {
4993
4993
  e.closeClickScrim && (_.value = !1);
4994
4994
  }
4995
- function k(H) {
4995
+ function T(H) {
4996
4996
  f.value = !0;
4997
4997
  }
4998
4998
  function N(H) {
@@ -5018,7 +5018,7 @@ const Wt = F({
5018
5018
  baseEl: d,
5019
5019
  active: _,
5020
5020
  onAfterUpdate: x,
5021
- updateCoordinate: T,
5021
+ updateCoordinate: k,
5022
5022
  hovered: f,
5023
5023
  finish: b,
5024
5024
  modal: C(() => e.modal),
@@ -5047,7 +5047,7 @@ const Wt = F({
5047
5047
  ...$.value,
5048
5048
  [h.value ?? ""]: !0
5049
5049
  },
5050
- onMouseenter: k,
5050
+ onMouseenter: T,
5051
5051
  onMouseleave: N,
5052
5052
  style: Y.value
5053
5053
  }, a), [u(Sn, {
@@ -5185,18 +5185,18 @@ const no = F({
5185
5185
  const _ = m.relatedTarget, b = m.target;
5186
5186
  function f(A) {
5187
5187
  return A.some((L) => {
5188
- var T;
5189
- return !((T = L.content$) != null && T.contains(b));
5188
+ var k;
5189
+ return !((k = L.content$) != null && k.contains(b));
5190
5190
  });
5191
5191
  }
5192
5192
  if (_ !== b && ((E = s.value) != null && E.content$) && ![document, (y = s.value) == null ? void 0 : y.content$].includes(b) && !((x = s.value) != null && x.content$.contains(b)) && !f(c.value)) {
5193
5193
  const L = [...s.value.content$.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')].filter((O) => !O.hasAttribute("disabled") && !O.matches('[tabindex="-1"]'));
5194
5194
  if (!L.length)
5195
5195
  return;
5196
- const T = L[0], V = L[L.length - 1];
5197
- if (b != null && b.isSameNode(T) || b != null && b.isSameNode(V))
5196
+ const k = L[0], V = L[L.length - 1];
5197
+ if (b != null && b.isSameNode(k) || b != null && b.isSameNode(V))
5198
5198
  return;
5199
- T === V ? V.focus() : T.focus();
5199
+ k === V ? V.focus() : k.focus();
5200
5200
  }
5201
5201
  }
5202
5202
  function g() {
@@ -5287,7 +5287,7 @@ function Ou(e) {
5287
5287
  const t = [0];
5288
5288
  return oo(t, e - 1), t;
5289
5289
  }
5290
- function Tu(e, t = Ou(e.length), n = Fe) {
5290
+ function ku(e, t = Ou(e.length), n = Fe) {
5291
5291
  const a = e.length, r = a - t.length;
5292
5292
  return r > 0 && oo(t, r), (i) => {
5293
5293
  let o = 0;
@@ -5297,7 +5297,7 @@ function Tu(e, t = Ou(e.length), n = Fe) {
5297
5297
  return l = Eu(n, o)(l), ro(e[o], e[o + 1], l);
5298
5298
  };
5299
5299
  }
5300
- const lo = (e) => Array.isArray(e) && pn(e[0]), aa = (e) => typeof e == "object" && !!e.createAnimation, vt = (e) => typeof e == "function", ku = (e) => typeof e == "string", Dt = {
5300
+ const lo = (e) => Array.isArray(e) && pn(e[0]), aa = (e) => typeof e == "object" && !!e.createAnimation, vt = (e) => typeof e == "function", Tu = (e) => typeof e == "string", Dt = {
5301
5301
  ms: (e) => e * 1e3,
5302
5302
  s: (e) => e / 1e3
5303
5303
  }, so = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Du = 1e-7, Au = 12;
@@ -5349,7 +5349,7 @@ class co {
5349
5349
  a = g.easing, n = g.keyframes || n, r = g.duration || r;
5350
5350
  }
5351
5351
  this.repeat = l, this.easing = ut(a) ? Fe : Hr(a), this.updateDuration(r);
5352
- const d = Tu(n, s, ut(a) ? a.map(Hr) : Fe);
5352
+ const d = ku(n, s, ut(a) ? a.map(Hr) : Fe);
5353
5353
  this.tick = (g) => {
5354
5354
  var h;
5355
5355
  i = i;
@@ -5538,7 +5538,7 @@ function Xu(e, t) {
5538
5538
  var n;
5539
5539
  let a = (t == null ? void 0 : t.toDefaultUnit) || Fe;
5540
5540
  const r = e[e.length - 1];
5541
- if (ku(r)) {
5541
+ if (Tu(r)) {
5542
5542
  const i = ((n = r.match(/(-?[\d.]+)([a-z%]*)/)) === null || n === void 0 ? void 0 : n[2]) || "";
5543
5543
  i && (a = (o) => o + i);
5544
5544
  }
@@ -5556,18 +5556,18 @@ function Ju(e, t, n, a = {}, r) {
5556
5556
  const f = oa(t), E = Pu(m.values, f), y = Bt.get(f);
5557
5557
  return ho(E.animation, !(aa(h) && E.generator) && a.record !== !1), () => {
5558
5558
  const x = () => {
5559
- var T, V;
5560
- return (V = (T = nn.get(e, f)) !== null && T !== void 0 ? T : y == null ? void 0 : y.initialValue) !== null && V !== void 0 ? V : 0;
5559
+ var k, V;
5560
+ return (V = (k = nn.get(e, f)) !== null && k !== void 0 ? k : y == null ? void 0 : y.initialValue) !== null && V !== void 0 ? V : 0;
5561
5561
  };
5562
5562
  let A = Gu(qu(n), x);
5563
5563
  const L = Xu(A, y);
5564
5564
  if (aa(h)) {
5565
- const T = h.createAnimation(A, t !== "opacity", x, f, E);
5566
- h = T.easing, A = T.keyframes || A, s = T.duration || s;
5565
+ const k = h.createAnimation(A, t !== "opacity", x, f, E);
5566
+ h = k.easing, A = k.keyframes || A, s = k.duration || s;
5567
5567
  }
5568
5568
  if (ia(f) && (it.cssRegisterProperty() ? Wu(f) : b = !1), _ && !it.linearEasing() && (vt(h) || ut(h) && h.some(vt)) && (b = !1), b) {
5569
5569
  y && (A = A.map((O) => pn(O) ? y.toDefaultUnit(O) : O)), A.length === 1 && (!it.partialKeyframes() || o) && A.unshift(x());
5570
- const T = {
5570
+ const k = {
5571
5571
  delay: Dt.ms(c),
5572
5572
  duration: Dt.ms(s),
5573
5573
  endDelay: Dt.ms(d),
@@ -5580,7 +5580,7 @@ function Ju(e, t, n, a = {}, r) {
5580
5580
  [f]: A,
5581
5581
  offset: w,
5582
5582
  easing: ut(h) ? h.map((O) => Ur(O, s)) : void 0
5583
- }, T), l.finished || (l.finished = new Promise((O, P) => {
5583
+ }, k), l.finished || (l.finished = new Promise((O, P) => {
5584
5584
  l.onfinish = O, l.oncancel = P;
5585
5585
  }));
5586
5586
  const V = A[A.length - 1];
@@ -5588,15 +5588,15 @@ function Ju(e, t, n, a = {}, r) {
5588
5588
  v || (nn.set(e, f, V), l.cancel());
5589
5589
  }).catch(io), p || (l.playbackRate = 1.000001);
5590
5590
  } else if (r && _)
5591
- A = A.map((T) => typeof T == "string" ? parseFloat(T) : T), A.length === 1 && A.unshift(parseFloat(x())), l = new r((T) => {
5592
- nn.set(e, f, L ? L(T) : T);
5591
+ A = A.map((k) => typeof k == "string" ? parseFloat(k) : k), A.length === 1 && A.unshift(parseFloat(x())), l = new r((k) => {
5592
+ nn.set(e, f, L ? L(k) : k);
5593
5593
  }, A, Object.assign(Object.assign({}, a), {
5594
5594
  duration: s,
5595
5595
  easing: h
5596
5596
  }));
5597
5597
  else {
5598
- const T = A[A.length - 1];
5599
- nn.set(e, f, y && pn(T) ? y.toDefaultUnit(T) : T);
5598
+ const k = A[A.length - 1];
5599
+ nn.set(e, f, y && pn(k) ? y.toDefaultUnit(k) : k);
5600
5600
  }
5601
5601
  return o && i(e, t, A, {
5602
5602
  duration: s,
@@ -6618,7 +6618,7 @@ const qr = za(), bd = /* @__PURE__ */ M({
6618
6618
  expose: a
6619
6619
  }) {
6620
6620
  const r = D({}), i = X(e, "expanded"), o = X(e, "active"), l = X(e, "selected"), s = D(/* @__PURE__ */ new Set()), c = D(/* @__PURE__ */ new Set()), d = D(/* @__PURE__ */ new Set()), g = D(/* @__PURE__ */ new Set()), h = Oe(wc(w, e.searchDebounceWait)), v = D([]), S = Oe(!1);
6621
- function w(k, N = "", Y = pd) {
6621
+ function w(T, N = "", Y = pd) {
6622
6622
  const $ = /* @__PURE__ */ new Set();
6623
6623
  if (!N) {
6624
6624
  S.value = !1, g.value = $, ir(v.value, [...s.value]).forEach((H) => {
@@ -6628,27 +6628,27 @@ const qr = za(), bd = /* @__PURE__ */ M({
6628
6628
  });
6629
6629
  return;
6630
6630
  }
6631
- for (const B of k)
6631
+ for (const B of T)
6632
6632
  wo(Y, B, N ?? "", e.itemKey, e.itemText, e.itemChildren, $);
6633
6633
  g.value = $, S.value = !1, f();
6634
6634
  }
6635
6635
  et(() => {
6636
6636
  S.value = !0, h.value(e.items, e.search, e.filter);
6637
6637
  });
6638
- function p(k, N = []) {
6638
+ function p(T, N = []) {
6639
6639
  const {
6640
6640
  childKeys: Y
6641
- } = r.value[k];
6641
+ } = r.value[T];
6642
6642
  N.push(...Y);
6643
6643
  for (const $ of Y)
6644
6644
  N = p($, N);
6645
6645
  return N;
6646
6646
  }
6647
- function m(k) {
6648
- return e.returnItem ? ee(k, e.itemKey) : k;
6647
+ function m(T) {
6648
+ return e.returnItem ? ee(T, e.itemKey) : T;
6649
6649
  }
6650
- function _(k, N = null, Y = 0) {
6651
- for (const $ of k) {
6650
+ function _(T, N = null, Y = 0) {
6651
+ for (const $ of T) {
6652
6652
  const B = ee($, e.itemKey), H = ee($, e.itemChildren) ?? [], ve = Ue(r.value, B) ? r.value[B] : {
6653
6653
  vnode: null,
6654
6654
  selected: !1,
@@ -6669,92 +6669,92 @@ const qr = za(), bd = /* @__PURE__ */ M({
6669
6669
  _(H, B, Y + 1), r.value[B] = fe, r.value[B].expanded && s.value.add(B), r.value[B].selected && s.value.add(B), r.value[B].active && d.value.add(B), O(B);
6670
6670
  }
6671
6671
  }
6672
- function b(k, N) {
6673
- if (!(k in r.value))
6672
+ function b(T, N) {
6673
+ if (!(T in r.value))
6674
6674
  return;
6675
- const Y = r.value[k], $ = ee(Y.item, e.itemChildren);
6676
- Array.isArray($) && $.length > 0 && (N ? s.value.add(k) : s.value.delete(k), Y.expanded = N, O(k));
6675
+ const Y = r.value[T], $ = ee(Y.item, e.itemChildren);
6676
+ Array.isArray($) && $.length > 0 && (N ? s.value.add(T) : s.value.delete(T), Y.expanded = N, O(T));
6677
6677
  }
6678
- R(s, (k) => {
6679
- e.search || (v.value = [...k]);
6678
+ R(s, (T) => {
6679
+ e.search || (v.value = [...T]);
6680
6680
  }, {
6681
6681
  deep: !0
6682
6682
  });
6683
- function f(k = !0) {
6683
+ function f(T = !0) {
6684
6684
  return Object.entries(r.value).forEach(([N, Y]) => {
6685
- (k === !0 || k >= Y.level) && b(N, !0);
6685
+ (T === !0 || T >= Y.level) && b(N, !0);
6686
6686
  }), x(), s.value;
6687
6687
  }
6688
- function E(k, N, Y) {
6689
- if (!(k in r.value))
6688
+ function E(T, N, Y) {
6689
+ if (!(T in r.value))
6690
6690
  return;
6691
- const $ = r.value[k];
6692
- let B = N ? "" : k;
6691
+ const $ = r.value[T];
6692
+ let B = N ? "" : T;
6693
6693
  if (e.multipleActive || ([B] = d.value.keys()), N)
6694
- d.value.add(k), $.active = !0, O(k);
6695
- else if (e.requiredActive && d.value.size === 1 && k === B) {
6696
- O(k);
6694
+ d.value.add(T), $.active = !0, O(T);
6695
+ else if (e.requiredActive && d.value.size === 1 && T === B) {
6696
+ O(T);
6697
6697
  return;
6698
6698
  }
6699
6699
  if (B && B in r.value && (d.value.delete(B), r.value[B].active = !1, O(B)), !(e.activeSingleModifier && (Y != null && Y.getModifierState(e.activeSingleModifier))) && e.multipleActive && e.activeStrategy === "cascade")
6700
- for (const H of p(k))
6700
+ for (const H of p(T))
6701
6701
  H in r.value && (N ? d.value.add(H) : d.value.delete(H), r.value[H].active = N, O(H));
6702
6702
  }
6703
- function y(k, N) {
6704
- if (!(k in r.value))
6703
+ function y(T, N) {
6704
+ if (!(T in r.value))
6705
6705
  return;
6706
- const Y = r.value[k];
6707
- if (N && (c.value.add(k), Y.selected = !0), !N && k in r.value && (c.value.delete(k), r.value[k].selected = !1, O(k)), e.selectStrategy === "cascade")
6708
- for (const $ of p(k))
6706
+ const Y = r.value[T];
6707
+ if (N && (c.value.add(T), Y.selected = !0), !N && T in r.value && (c.value.delete(T), r.value[T].selected = !1, O(T)), e.selectStrategy === "cascade")
6708
+ for (const $ of p(T))
6709
6709
  $ in r.value && (N ? c.value.add($) : c.value.delete($), r.value[$].selected = N, O($));
6710
6710
  }
6711
6711
  function x() {
6712
- const k = [...s.value];
6713
- i.value = e.returnItem ? k.map((N) => r.value[N].item) : k;
6712
+ const T = [...s.value];
6713
+ i.value = e.returnItem ? T.map((N) => r.value[N].item) : T;
6714
6714
  }
6715
6715
  function A() {
6716
- const k = [...d.value];
6717
- o.value = e.returnItem ? k.map((N) => r.value[N].item) : k;
6716
+ const T = [...d.value];
6717
+ o.value = e.returnItem ? T.map((N) => r.value[N].item) : T;
6718
6718
  }
6719
6719
  function L() {
6720
- const k = [...c.value];
6721
- l.value = e.returnItem ? k.map((N) => r.value[N].item) : k;
6720
+ const T = [...c.value];
6721
+ l.value = e.returnItem ? T.map((N) => r.value[N].item) : T;
6722
6722
  }
6723
- function T(k, N, Y, $) {
6724
- const B = e.returnItem ? k.map((Q) => ee(Q, e.itemKey)) : k, H = [...N.value];
6723
+ function k(T, N, Y, $) {
6724
+ const B = e.returnItem ? T.map((Q) => ee(Q, e.itemKey)) : T, H = [...N.value];
6725
6725
  Ae(H, B) || (H.forEach((Q) => Y(Q, !1)), B.forEach((Q) => Y(Q, !0)), $());
6726
6726
  }
6727
- R(i, (k) => {
6728
- T(k, s, b, x);
6729
- }), R(o, (k) => {
6730
- T(k, d, E, A);
6731
- }), R(l, (k) => {
6732
- T(k, c, y, L);
6733
- }), R(() => e.items, (k) => {
6734
- const N = Object.keys(r.value).map((Q) => ee(r.value[Q].item, e.itemKey)), Y = bo(k, e.itemKey, e.itemChildren), $ = ir(N, Y);
6727
+ R(i, (T) => {
6728
+ k(T, s, b, x);
6729
+ }), R(o, (T) => {
6730
+ k(T, d, E, A);
6731
+ }), R(l, (T) => {
6732
+ k(T, c, y, L);
6733
+ }), R(() => e.items, (T) => {
6734
+ const N = Object.keys(r.value).map((Q) => ee(r.value[Q].item, e.itemKey)), Y = bo(T, e.itemKey, e.itemChildren), $ = ir(N, Y);
6735
6735
  if ($.length < 1 && Y.length < N.length)
6736
6736
  return;
6737
6737
  $.forEach((Q) => delete r.value[Q]);
6738
6738
  const B = [...c.value], H = [...d.value];
6739
- c.value.clear(), s.value.clear(), d.value.clear(), _(k), Ae(B, [...c.value]) || L(), Ae(H, [...d.value]) || A();
6739
+ c.value.clear(), s.value.clear(), d.value.clear(), _(T), Ae(B, [...c.value]) || L(), Ae(H, [...d.value]) || A();
6740
6740
  }, {
6741
6741
  deep: !0
6742
6742
  });
6743
- function V(k) {
6744
- return !!e.search && g.value.has(k);
6743
+ function V(T) {
6744
+ return !!e.search && g.value.has(T);
6745
6745
  }
6746
- function O(k) {
6747
- const N = r.value[k];
6746
+ function O(T) {
6747
+ const N = r.value[T];
6748
6748
  N && N.vnode && (N.vnode.active = N.active, N.vnode.selected = N.selected, N.vnode.indeterminate = N.indeterminate, N.vnode.expanded = N.expanded);
6749
6749
  }
6750
- function P(k, N) {
6751
- r.value[k] && (r.value[k].vnode = N), O(k);
6750
+ function P(T, N) {
6751
+ r.value[T] && (r.value[T].vnode = N), O(T);
6752
6752
  }
6753
6753
  _(e.items);
6754
- for (const k of e.active.map(m))
6755
- E(k, !0);
6756
- for (const k of e.selected.map(m))
6757
- y(k, !0);
6754
+ for (const T of e.active.map(m))
6755
+ E(T, !0);
6756
+ for (const T of e.selected.map(m))
6757
+ y(T, !0);
6758
6758
  ye("tree-view", {
6759
6759
  register: P,
6760
6760
  updateExpanded: b,
@@ -6766,16 +6766,16 @@ const qr = za(), bd = /* @__PURE__ */ M({
6766
6766
  isExcluded: V,
6767
6767
  searchLoading: S
6768
6768
  });
6769
- const j = C(() => e.items.filter((k) => !V(ee(k, e.itemKey)))), I = C(() => ({
6769
+ const j = C(() => e.items.filter((T) => !V(ee(T, e.itemKey)))), I = C(() => ({
6770
6770
  "y-tree-view": !0
6771
6771
  })), se = C(() => {
6772
- let k = e.activeColor;
6773
- return e.activeColor && !$a(e.activeColor) && (k = `var(--y-theme-${e.activeColor})`), {
6774
- "--y-tree-view__active-color": k
6772
+ let T = e.activeColor;
6773
+ return e.activeColor && !$a(e.activeColor) && (T = `var(--y-theme-${e.activeColor})`), {
6774
+ "--y-tree-view__active-color": T
6775
6775
  };
6776
6776
  });
6777
6777
  return ma(() => {
6778
- e.defaultExpand != null && e.defaultExpand !== !1 ? v.value = [...f(e.defaultExpand)] : (i.value.forEach((k) => b(m(k), !0)), x());
6778
+ e.defaultExpand != null && e.defaultExpand !== !1 ? v.value = [...f(e.defaultExpand)] : (i.value.forEach((T) => b(m(T), !0)), x());
6779
6779
  }), a({
6780
6780
  expand: f
6781
6781
  }), K(() => u(Z, null, [u("div", {
@@ -6784,11 +6784,11 @@ const qr = za(), bd = /* @__PURE__ */ M({
6784
6784
  role: "tree"
6785
6785
  }, [S.value && u(Ji, {
6786
6786
  indeterminate: !0
6787
- }, null), j.value.length > 0 ? j.value.map((k) => u(Ua, z({
6788
- key: ee(k, e.itemKey)
6787
+ }, null), j.value.length > 0 ? j.value.map((T) => u(Ua, z({
6788
+ key: ee(T, e.itemKey)
6789
6789
  }, {
6790
6790
  ...re(e, qr),
6791
- item: k,
6791
+ item: T,
6792
6792
  level: 0
6793
6793
  }), t)) : u("div", {
6794
6794
  class: "y-tree-view__no-data"
@@ -7227,11 +7227,13 @@ function Ja() {
7227
7227
  }
7228
7228
  const xd = F({
7229
7229
  index: Number,
7230
- onClick: Function
7230
+ onClick: Function,
7231
+ onContextmenu: Function,
7232
+ onDblclick: Function
7231
7233
  }, "YDataTableRow"), Cd = /* @__PURE__ */ M({
7232
7234
  name: "YDataTableRow",
7233
7235
  props: {
7234
- internalItem: Object,
7236
+ item: Object,
7235
7237
  cellProps: [Object, Function],
7236
7238
  ...xd()
7237
7239
  },
@@ -7247,12 +7249,14 @@ const xd = F({
7247
7249
  } = Za();
7248
7250
  K(() => u("tr", {
7249
7251
  class: ["y-data-table__row"],
7250
- onClick: (o) => t("click:row", o)
7251
- }, [e.internalItem && i.value.map((o, l) => {
7252
- const s = e.internalItem, c = {
7252
+ onClick: e.onClick,
7253
+ onContextmenu: e.onContextmenu,
7254
+ onDblclick: e.onDblclick
7255
+ }, [e.item && i.value.map((o, l) => {
7256
+ const s = e.item, c = {
7253
7257
  index: e.index,
7254
- item: e.internalItem.raw,
7255
- internalItem: e.internalItem,
7258
+ item: e.item.raw,
7259
+ internalItem: e.item,
7256
7260
  columns: i.value,
7257
7261
  value: Ge(s.columns, o.key),
7258
7262
  selected: C(() => a(s)).value,
@@ -7290,7 +7294,7 @@ const xd = F({
7290
7294
  });
7291
7295
  })]));
7292
7296
  }
7293
- }), To = F({
7297
+ }), ko = F({
7294
7298
  items: {
7295
7299
  type: Array,
7296
7300
  default: () => []
@@ -7310,7 +7314,7 @@ const xd = F({
7310
7314
  }, "YDataTableBody"), At = /* @__PURE__ */ M({
7311
7315
  name: "YDataTableBody",
7312
7316
  props: {
7313
- ...To()
7317
+ ...ko()
7314
7318
  },
7315
7319
  emits: ["click:row"],
7316
7320
  setup(e, {
@@ -7343,7 +7347,8 @@ const xd = F({
7343
7347
  }, g = {
7344
7348
  ...d,
7345
7349
  props: z({
7346
- key: `item__${s.value}`,
7350
+ key: `item__${s.value ?? s.index}`,
7351
+ item: s,
7347
7352
  onClick: e["onClick:row"] ? (h) => {
7348
7353
  var v;
7349
7354
  (v = e["onClick:row"]) == null || v.call(e, h, {
@@ -7382,7 +7387,7 @@ function Ed() {
7382
7387
  }
7383
7388
  return { refs: e, updateRef: t };
7384
7389
  }
7385
- const ko = F({
7390
+ const To = F({
7386
7391
  start: {
7387
7392
  type: [Number, String],
7388
7393
  default: 1
@@ -7421,7 +7426,7 @@ const ko = F({
7421
7426
  YButton: ae
7422
7427
  },
7423
7428
  props: {
7424
- ...ko()
7429
+ ...To()
7425
7430
  },
7426
7431
  emits: {
7427
7432
  "update:modelValue": (e) => !0,
@@ -7667,11 +7672,11 @@ function Io(e) {
7667
7672
  };
7668
7673
  return ye(Od, g), g;
7669
7674
  }
7670
- function Td(e) {
7675
+ function kd(e) {
7671
7676
  const { items: t, startIndex: n, endIndex: a, pageSize: r } = e;
7672
7677
  return { paginatedItems: C(() => r.value <= 0 ? t.value : t.value.slice(n.value, a.value)) };
7673
7678
  }
7674
- const kd = F({
7679
+ const Td = F({
7675
7680
  pageLength: Number,
7676
7681
  setPageSize: Function,
7677
7682
  setPage: Function,
@@ -7684,7 +7689,7 @@ const kd = F({
7684
7689
  YFieldInput: yn,
7685
7690
  YIconPageControl: De
7686
7691
  },
7687
- props: kd(),
7692
+ props: Td(),
7688
7693
  setup(e, {
7689
7694
  slots: t
7690
7695
  }) {
@@ -7944,7 +7949,7 @@ function Vo({ page: e, pageSize: t, sortBy: n, search: a }, r) {
7944
7949
  );
7945
7950
  }
7946
7951
  const er = F({
7947
- ...To(),
7952
+ ...ko(),
7948
7953
  width: [String, Number],
7949
7954
  search: String,
7950
7955
  ...wd(),
@@ -8002,7 +8007,7 @@ const er = F({
8002
8007
  total: g
8003
8008
  }), {
8004
8009
  paginatedItems: m
8005
- } = Td({
8010
+ } = kd({
8006
8011
  items: c,
8007
8012
  startIndex: h,
8008
8013
  endIndex: v,
@@ -8031,7 +8036,7 @@ const er = F({
8031
8036
  sortBy: i,
8032
8037
  headRect: L
8033
8038
  });
8034
- const T = C(() => ({
8039
+ const k = C(() => ({
8035
8040
  // pagination
8036
8041
  page: a.value,
8037
8042
  pageSize: r.value,
@@ -8065,24 +8070,24 @@ const er = F({
8065
8070
  }), {
8066
8071
  top: () => {
8067
8072
  var I;
8068
- return (I = t.top) == null ? void 0 : I.call(t, T.value);
8073
+ return (I = t.top) == null ? void 0 : I.call(t, k.value);
8069
8074
  },
8070
- leading: () => t.leading ? t.leading(T.value) : u(Z, null, [u(fa, {
8071
- "slot-props": T.value
8075
+ leading: () => t.leading ? t.leading(k.value) : u(Z, null, [u(fa, {
8076
+ "slot-props": k.value
8072
8077
  }, t)]),
8073
8078
  default: () => {
8074
- var I, se, k;
8075
- return t.default ? t.default(T.value) : u(Z, null, [u("thead", {
8079
+ var I, se, T;
8080
+ return t.default ? t.default(k.value) : u(Z, null, [u("thead", {
8076
8081
  ref: A
8077
- }, [u(It, V, t)]), (I = t.thead) == null ? void 0 : I.call(t, T.value), u("tbody", null, [u(At, z(O, {
8082
+ }, [u(It, V, t)]), (I = t.thead) == null ? void 0 : I.call(t, k.value), u("tbody", null, [u(At, z(O, {
8078
8083
  items: m.value
8079
- }), t)]), (se = t.tbody) == null ? void 0 : se.call(t, T.value), (k = t.tfoot) == null ? void 0 : k.call(t, T.value)]);
8084
+ }), t)]), (se = t.tbody) == null ? void 0 : se.call(t, k.value), (T = t.tfoot) == null ? void 0 : T.call(t, k.value)]);
8080
8085
  },
8081
8086
  trailing: () => {
8082
8087
  var I;
8083
- return (I = t.trailing) == null ? void 0 : I.call(t, T.value);
8088
+ return (I = t.trailing) == null ? void 0 : I.call(t, k.value);
8084
8089
  },
8085
- bottom: () => t.bottom ? t.bottom(T.value) : u(ua, null, {
8090
+ bottom: () => t.bottom ? t.bottom(k.value) : u(ua, null, {
8086
8091
  prepend: t["control.prepend"],
8087
8092
  append: t["control.append"]
8088
8093
  })
@@ -8197,10 +8202,10 @@ const er = F({
8197
8202
  }));
8198
8203
  K(() => {
8199
8204
  var V;
8200
- const A = re(e, It.props), L = re(e, At.props), T = re(e, dt.props);
8205
+ const A = re(e, It.props), L = re(e, At.props), k = re(e, dt.props);
8201
8206
  return u(dt, z({
8202
8207
  class: ["y-data-table"]
8203
- }, T, {
8208
+ }, k, {
8204
8209
  style: {
8205
8210
  "--y-table-head-height": U((V = y.value) == null ? void 0 : V.height)
8206
8211
  }
@@ -8317,8 +8322,8 @@ const Ro = {
8317
8322
  }
8318
8323
  if (l.value) {
8319
8324
  (!g && d.value.length === 0 || g) && (l.value = !1);
8320
- const L = (x = g == null ? void 0 : g.$el.value) == null ? void 0 : x.content$, T = (A = g == null ? void 0 : g.$el.value) == null ? void 0 : A.modal;
8321
- !(L && !_c(y, L)) && !T && !e.preventCloseBubble && (g == null || g.clear());
8325
+ const L = (x = g == null ? void 0 : g.$el.value) == null ? void 0 : x.content$, k = (A = g == null ? void 0 : g.$el.value) == null ? void 0 : A.modal;
8326
+ !(L && !_c(y, L)) && !k && !e.preventCloseBubble && (g == null || g.clear());
8322
8327
  }
8323
8328
  }
8324
8329
  }
@@ -8951,16 +8956,17 @@ function Kd(e, t) {
8951
8956
  instance: Ko(n, t)
8952
8957
  };
8953
8958
  }
8954
- function Tn() {
8959
+ function kn() {
8955
8960
  const e = Xs(zo);
8956
8961
  if (!e)
8957
8962
  throw new Error('Not found provided "DateModule" for options');
8958
- const t = kn();
8963
+ const t = Tn();
8959
8964
  return Ko(e, t);
8960
8965
  }
8961
8966
  const zd = {
8962
8967
  search: "search",
8963
- noItems: "No Options"
8968
+ noItems: "No Options",
8969
+ noData: "No Data"
8964
8970
  }, Zr = "$yuyeon";
8965
8971
  function Jr(e, t) {
8966
8972
  return e.replace(/\{(\d+)\}/g, (n, a) => String(t[+a]));
@@ -9042,7 +9048,7 @@ function Xd(e) {
9042
9048
  rtlModule: n
9043
9049
  };
9044
9050
  }
9045
- function kn() {
9051
+ function Tn() {
9046
9052
  const e = _e(Go);
9047
9053
  if (!e)
9048
9054
  throw new Error('Not found provided "I18nModule"');
@@ -9158,66 +9164,66 @@ const Zo = F({
9158
9164
  toEmitItems: g
9159
9165
  } = Qd(e), {
9160
9166
  t: h
9161
- } = kn(), v = X(e, "modelValue", [], (T) => d(T === null ? [null] : ft(T)), (T) => {
9162
- const V = g(ft(T));
9167
+ } = Tn(), v = X(e, "modelValue", [], (k) => d(k === null ? [null] : ft(k)), (k) => {
9168
+ const V = g(ft(k));
9163
9169
  return e.multiple ? V : V[0] ?? null;
9164
9170
  }), S = C(() => {
9165
- const T = [];
9171
+ const k = [];
9166
9172
  for (const V of v.value) {
9167
9173
  const O = c.value.find((P) => e.valueEquals(P.value, V.value));
9168
- O !== void 0 && T.push(O);
9174
+ O !== void 0 && k.push(O);
9169
9175
  }
9170
- return T;
9171
- }), w = C(() => S.value.map((T) => {
9176
+ return k;
9177
+ }), w = C(() => S.value.map((k) => {
9172
9178
  var V;
9173
- return (V = T == null ? void 0 : T.props) == null ? void 0 : V.value;
9179
+ return (V = k == null ? void 0 : k.props) == null ? void 0 : V.value;
9174
9180
  })), p = C(() => ({
9175
9181
  ...e.menuProps,
9176
9182
  preventCloseBubble: !0
9177
9183
  }));
9178
- function m(T) {
9179
- return !!S.value.find((V) => (V == null ? void 0 : V.value) === T.value);
9184
+ function m(k) {
9185
+ return !!S.value.find((V) => (V == null ? void 0 : V.value) === k.value);
9180
9186
  }
9181
- function _(T) {
9187
+ function _(k) {
9182
9188
  e.disabled || (l.value = !l.value);
9183
9189
  }
9184
- function b(T) {
9190
+ function b(k) {
9185
9191
  }
9186
- function f(T, V) {
9187
- x(T), e.multiple || setTimeout(() => {
9192
+ function f(k, V) {
9193
+ x(k), e.multiple || setTimeout(() => {
9188
9194
  l.value = !1;
9189
9195
  }, 40);
9190
9196
  }
9191
9197
  function E() {
9192
- var T;
9193
- s.value || (T = r.value) == null || T.focus();
9198
+ var k;
9199
+ s.value || (k = r.value) == null || k.focus();
9194
9200
  }
9195
- function y(T) {
9201
+ function y(k) {
9196
9202
  var V, O, P, j, I;
9197
- if (T.target && ((O = (V = i.value) == null ? void 0 : V.layer$) != null && O.content$))
9198
- return (I = T.target) == null ? void 0 : I.contains((j = (P = i.value) == null ? void 0 : P.layer$) == null ? void 0 : j.content$);
9203
+ if (k.target && ((O = (V = i.value) == null ? void 0 : V.layer$) != null && O.content$))
9204
+ return (I = k.target) == null ? void 0 : I.contains((j = (P = i.value) == null ? void 0 : P.layer$) == null ? void 0 : j.content$);
9199
9205
  }
9200
- function x(T) {
9206
+ function x(k) {
9201
9207
  if (e.multiple) {
9202
- const V = S.value.findIndex((O) => O.value === T.value);
9208
+ const V = S.value.findIndex((O) => O.value === k.value);
9203
9209
  if (V === -1)
9204
- v.value = [...v.value, T];
9210
+ v.value = [...v.value, k];
9205
9211
  else {
9206
9212
  const O = v.value.slice();
9207
9213
  O.splice(V, 1), v.value = O;
9208
9214
  }
9209
9215
  } else
9210
- v.value = [T];
9216
+ v.value = [k];
9211
9217
  }
9212
9218
  const A = C(() => {
9213
- var T, V;
9214
- return e.multiple ? S.value.map((O) => O.text).join(", ") : ((V = (T = S.value) == null ? void 0 : T[0]) == null ? void 0 : V.text) ?? "";
9219
+ var k, V;
9220
+ return e.multiple ? S.value.map((O) => O.text).join(", ") : ((V = (k = S.value) == null ? void 0 : k[0]) == null ? void 0 : V.text) ?? "";
9215
9221
  }), L = C(() => {
9216
- var T;
9217
- return (T = i.value) == null ? void 0 : T.baseEl;
9222
+ var k;
9223
+ return (k = i.value) == null ? void 0 : k.baseEl;
9218
9224
  });
9219
9225
  return K(() => {
9220
- const T = re(e, yn.props), V = re(typeof e.dropdownIcon == "object" ? e.dropdownIcon : {}, Ke.props);
9226
+ const k = re(e, yn.props), V = re(typeof e.dropdownIcon == "object" ? e.dropdownIcon : {}, Ke.props);
9221
9227
  return u(Nt, z({
9222
9228
  modelValue: l.value,
9223
9229
  "onUpdate:modelValue": (O) => l.value = O,
@@ -9237,7 +9243,7 @@ const Zo = F({
9237
9243
  base: (...O) => {
9238
9244
  var P, j;
9239
9245
  return t.base ? (P = t.base) == null ? void 0 : P.call(t, ...O) : u(yn, z({
9240
- ...T,
9246
+ ...k,
9241
9247
  ...z({
9242
9248
  ...O[0].props
9243
9249
  }, {
@@ -9303,8 +9309,8 @@ const Zo = F({
9303
9309
  }
9304
9310
  });
9305
9311
  }), ma(() => {
9306
- var T;
9307
- e.defaultSelect && (e.modelValue === void 0 || Array.isArray(e.modelValue) && e.modelValue.length === 0) && ((T = c.value) != null && T.length) && x(c.value[0]);
9312
+ var k;
9313
+ e.defaultSelect && (e.modelValue === void 0 || Array.isArray(e.modelValue) && e.modelValue.length === 0) && ((k = c.value) != null && k.length) && x(c.value[0]);
9308
9314
  }), a({
9309
9315
  fieldInputRef: r,
9310
9316
  baseEl: L
@@ -9508,7 +9514,7 @@ const Zo = F({
9508
9514
  setup(e, {
9509
9515
  slots: t
9510
9516
  }) {
9511
- const n = Tn(), a = kn(), r = D(), i = D([]), o = X(e, "modelValue", [], (b) => b == null ? [] : ft(b)), l = C(() => o.value.length > 0 ? n.date(o.value[0]) : e.min ? n.date(e.min) : Array.isArray(e.allowedDates) ? n.date(e.allowedDates[0]) : n.date()), s = X(e, "year", void 0, (b) => {
9517
+ const n = kn(), a = Tn(), r = D(), i = D([]), o = X(e, "modelValue", [], (b) => b == null ? [] : ft(b)), l = C(() => o.value.length > 0 ? n.date(o.value[0]) : e.min ? n.date(e.min) : Array.isArray(e.allowedDates) ? n.date(e.allowedDates[0]) : n.date()), s = X(e, "year", void 0, (b) => {
9512
9518
  const f = b != null ? Number(b) : n.getYear(l.value);
9513
9519
  return n.startOfYear(n.setYear(n.date(), f));
9514
9520
  }, (b) => n.getYear(b)), c = X(e, "month", void 0, (b) => {
@@ -9527,7 +9533,7 @@ const Zo = F({
9527
9533
  const b = d.value, f = n.date();
9528
9534
  return b.map((E, y) => E.map((x, A) => {
9529
9535
  var O;
9530
- const L = n.toISO(x), T = !n.isSameMonth(x, c.value), V = !!((O = o.value) != null && O.find((P) => P != null && n.isSameDay(x, P)));
9536
+ const L = n.toISO(x), k = !n.isSameMonth(x, c.value), V = !!((O = o.value) != null && O.find((P) => P != null && n.isSameDay(x, P)));
9531
9537
  return {
9532
9538
  date: x,
9533
9539
  isoDate: L,
@@ -9544,8 +9550,8 @@ const Zo = F({
9544
9550
  selected: V,
9545
9551
  interval: m(x),
9546
9552
  today: n.isSameDay(x, f),
9547
- adjacent: T,
9548
- hidden: T && !e.showAdjacentMonthDates,
9553
+ adjacent: k,
9554
+ hidden: k && !e.showAdjacentMonthDates,
9549
9555
  hovered: !1,
9550
9556
  localized: n.format(x, "dayOfMonth")
9551
9557
  };
@@ -9661,7 +9667,7 @@ const Zo = F({
9661
9667
  name: "YMonthPicker",
9662
9668
  props: rl(),
9663
9669
  setup(e) {
9664
- const t = Tn(), n = X(e, "modelValue"), a = C(() => {
9670
+ const t = kn(), n = X(e, "modelValue"), a = C(() => {
9665
9671
  let i = t.startOfYear(t.date());
9666
9672
  return Re(12).map((o) => {
9667
9673
  const l = t.format(i, "monthShort");
@@ -9790,7 +9796,7 @@ const Zo = F({
9790
9796
  emit: t,
9791
9797
  expose: n
9792
9798
  }) {
9793
- const a = Tn(), r = X(e, "modelValue"), i = r.value, o = D(i - i % an - (i < 0 ? an : 0)), l = C(() => {
9799
+ const a = kn(), r = X(e, "modelValue"), i = r.value, o = D(i - i % an - (i < 0 ? an : 0)), l = C(() => {
9794
9800
  let d = a.startOfYear(a.date());
9795
9801
  return Re(an + 1, o.value).map((g) => (d = a.setYear(d, g), {
9796
9802
  text: a.format(d, "year"),
@@ -9829,7 +9835,7 @@ const Zo = F({
9829
9835
  setup(e, {
9830
9836
  emit: t
9831
9837
  }) {
9832
- const n = D(), a = Tn(), r = X(e, "modelValue"), i = X(e, "mode"), o = D(a.getMonth(a.date())), l = D(a.getYear(a.date())), s = C(() => {
9838
+ const n = D(), a = kn(), r = X(e, "modelValue"), i = X(e, "mode"), o = D(a.getMonth(a.date())), l = D(a.getYear(a.date())), s = C(() => {
9833
9839
  const _ = a.setYear(a.date(), l.value);
9834
9840
  return a.setMonth(_, o.value);
9835
9841
  }), c = C(() => a.format(s.value, "month")), d = C(() => a.format(s.value, "year"));
@@ -9930,7 +9936,7 @@ const Zo = F({
9930
9936
  }) {
9931
9937
  const {
9932
9938
  t: n
9933
- } = kn();
9939
+ } = Tn();
9934
9940
  K(() => {
9935
9941
  const a = e.tag, r = Number(e.content), i = !e.max || isNaN(r) ? e.content : r <= +e.max ? r : `${e.max}+`;
9936
9942
  return u(a, {
@@ -10039,7 +10045,7 @@ const Zo = F({
10039
10045
  pressYListItemProps: _o,
10040
10046
  pressYListPropsOptions: So,
10041
10047
  pressYMonthPickerPropsOptions: rl,
10042
- pressYPaginationProps: ko,
10048
+ pressYPaginationProps: To,
10043
10049
  pressYSelectPropsOptions: Jo,
10044
10050
  pressYTabPropsOptions: Qo,
10045
10051
  pressYTableProps: Xa,