my-element-plus-ext 1.0.3 → 1.0.5

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.
@@ -1,4 +1,4 @@
1
- import { resolveComponent as xt, createBlock as ne, openBlock as w, withCtx as Q, renderSlot as ee, createTextVNode as yt, getCurrentInstance as ut, inject as Me, ref as R, computed as k, unref as r, watch as ie, readonly as Yi, getCurrentScope as a3, onScopeDispose as bv, shallowRef as Dt, watchEffect as Yn, isRef as Pn, reactive as Nt, onMounted as st, nextTick as Ce, warn as o3, provide as wt, defineComponent as D, Teleport as l3, createElementBlock as M, normalizeStyle as Ie, normalizeClass as N, createVNode as Z, createElementVNode as x, mergeProps as lt, useSlots as sn, Transition as wn, withDirectives as nt, createCommentVNode as te, resolveDynamicComponent as at, toDisplayString as ge, Fragment as Be, vShow as Mt, toRef as At, onUnmounted as Ui, useAttrs as uo, withModifiers as je, onBeforeUnmount as It, onActivated as gd, onUpdated as co, cloneVNode as r3, Comment as no, Text as yv, onBeforeMount as bd, onDeactivated as s3, createSlots as Un, renderList as bt, normalizeProps as eo, guardReactiveProps as Mo, isVNode as Wt, h as ze, triggerRef as Ys, toRaw as yi, vModelCheckbox as wv, toRefs as vn, vModelRadio as _v, onBeforeUpdate as Cv, withKeys as Zt, vModelText as Gi, toHandlers as i3, TransitionGroup as Sv, markRaw as To, effectScope as u3, resolveDirective as yd, toHandlerKey as c3, render as Oo, createApp as d3, shallowReactive as kv } from "vue";
1
+ import { resolveComponent as xt, createBlock as ne, openBlock as w, withCtx as Q, renderSlot as ee, createTextVNode as yt, getCurrentInstance as ut, inject as Me, ref as R, computed as k, unref as r, watch as ie, readonly as Yi, getCurrentScope as a3, onScopeDispose as bv, shallowRef as Dt, watchEffect as Hn, isRef as Pn, reactive as Nt, onMounted as st, nextTick as Ce, warn as o3, provide as wt, defineComponent as D, Teleport as l3, createElementBlock as M, normalizeStyle as Ie, normalizeClass as N, createVNode as Z, createElementVNode as x, mergeProps as lt, useSlots as sn, Transition as wn, withDirectives as nt, createCommentVNode as te, resolveDynamicComponent as at, toDisplayString as ge, Fragment as Be, vShow as Mt, toRef as At, onUnmounted as Ui, useAttrs as uo, withModifiers as je, onBeforeUnmount as It, onActivated as gd, onUpdated as co, cloneVNode as r3, Comment as no, Text as yv, onBeforeMount as bd, onDeactivated as s3, createSlots as Un, renderList as bt, normalizeProps as eo, guardReactiveProps as Mo, isVNode as Wt, h as ze, triggerRef as Ys, toRaw as yi, vModelCheckbox as wv, toRefs as vn, vModelRadio as _v, onBeforeUpdate as Cv, withKeys as Zt, vModelText as Gi, toHandlers as i3, TransitionGroup as Sv, markRaw as To, effectScope as u3, resolveDirective as yd, toHandlerKey as c3, render as Oo, createApp as d3, shallowReactive as kv } from "vue";
2
2
  const f3 = (e, t) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, o] of t)
@@ -103,11 +103,11 @@ function Sd(e, t) {
103
103
  o[n] = t(e[n], n, e);
104
104
  return o;
105
105
  }
106
- var Hn = Array.isArray, bf = ia ? ia.prototype : void 0, yf = bf ? bf.toString : void 0;
106
+ var Dn = Array.isArray, bf = ia ? ia.prototype : void 0, yf = bf ? bf.toString : void 0;
107
107
  function Ov(e) {
108
108
  if (typeof e == "string")
109
109
  return e;
110
- if (Hn(e))
110
+ if (Dn(e))
111
111
  return Sd(e, Ov) + "";
112
112
  if (Xi(e))
113
113
  return yf ? yf.call(e) : "";
@@ -124,7 +124,7 @@ var L3 = /^\s+/;
124
124
  function R3(e) {
125
125
  return e && e.slice(0, V3(e) + 1).replace(L3, "");
126
126
  }
127
- function Dn(e) {
127
+ function Fn(e) {
128
128
  var t = typeof e;
129
129
  return e != null && (t == "object" || t == "function");
130
130
  }
@@ -134,9 +134,9 @@ function br(e) {
134
134
  return e;
135
135
  if (Xi(e))
136
136
  return wf;
137
- if (Dn(e)) {
137
+ if (Fn(e)) {
138
138
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
139
- e = Dn(t) ? t + "" : t;
139
+ e = Fn(t) ? t + "" : t;
140
140
  }
141
141
  if (typeof e != "string")
142
142
  return e === 0 ? e : +e;
@@ -149,7 +149,7 @@ function kd(e) {
149
149
  }
150
150
  var F3 = "[object AsyncFunction]", K3 = "[object Function]", W3 = "[object GeneratorFunction]", j3 = "[object Proxy]";
151
151
  function Ed(e) {
152
- if (!Dn(e))
152
+ if (!Fn(e))
153
153
  return !1;
154
154
  var t = al(e);
155
155
  return t == K3 || t == W3 || t == F3 || t == j3;
@@ -179,7 +179,7 @@ var G3 = /[\\^$.*+?()[\]{}|]/g, X3 = /^\[object .+?Constructor\]$/, Z3 = Functio
179
179
  "^" + Q3.call(e6).replace(G3, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
180
180
  );
181
181
  function n6(e) {
182
- if (!Dn(e) || q3(e))
182
+ if (!Fn(e) || q3(e))
183
183
  return !1;
184
184
  var t = Ed(e) ? t6 : X3;
185
185
  return t.test(ol(e));
@@ -195,7 +195,7 @@ var dc = ll(ka, "WeakMap"), Cf = Object.create, o6 = /* @__PURE__ */ (function()
195
195
  function e() {
196
196
  }
197
197
  return function(t) {
198
- if (!Dn(t))
198
+ if (!Fn(t))
199
199
  return {};
200
200
  if (Cf)
201
201
  return Cf(t);
@@ -336,7 +336,7 @@ function Gl(e) {
336
336
  return e != null && Td(e.length) && !Ed(e);
337
337
  }
338
338
  function S6(e, t, n) {
339
- if (!Dn(n))
339
+ if (!Fn(n))
340
340
  return !1;
341
341
  var a = typeof t;
342
342
  return (a == "number" ? Gl(n) && Zi(t, n.length) : a == "string" && t in n) ? Xr(n[t], e) : !1;
@@ -392,7 +392,7 @@ var zv = typeof exports == "object" && exports && !exports.nodeType && exports,
392
392
  }
393
393
  })(), Mf = Nl && Nl.isTypedArray, Nd = Mf ? Od(Mf) : a8, l8 = Object.prototype, r8 = l8.hasOwnProperty;
394
394
  function Bv(e, t) {
395
- var n = Hn(e), a = !n && xr(e), o = !n && !a && Mr(e), l = !n && !a && !o && Nd(e), s = n || a || o || l, i = s ? x6(e.length, String) : [], u = i.length;
395
+ var n = Dn(e), a = !n && xr(e), o = !n && !a && Mr(e), l = !n && !a && !o && Nd(e), s = n || a || o || l, i = s ? x6(e.length, String) : [], u = i.length;
396
396
  for (var c in e)
397
397
  (t || r8.call(e, c)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
398
398
  (c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -427,7 +427,7 @@ function d8(e) {
427
427
  }
428
428
  var f8 = Object.prototype, p8 = f8.hasOwnProperty;
429
429
  function v8(e) {
430
- if (!Dn(e))
430
+ if (!Fn(e))
431
431
  return d8(e);
432
432
  var t = $d(e), n = [];
433
433
  for (var a in e)
@@ -439,7 +439,7 @@ function Jr(e) {
439
439
  }
440
440
  var m8 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, h8 = /^\w*$/;
441
441
  function Id(e, t) {
442
- if (Hn(e))
442
+ if (Dn(e))
443
443
  return !1;
444
444
  var n = typeof e;
445
445
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Xi(e) ? !0 : h8.test(e) || !m8.test(e) || t != null && e in Object(t);
@@ -596,7 +596,7 @@ function Y8(e) {
596
596
  return e == null ? "" : Ov(e);
597
597
  }
598
598
  function Xl(e, t) {
599
- return Hn(e) ? e : Id(e, t) ? [e] : q8(Y8(e));
599
+ return Dn(e) ? e : Id(e, t) ? [e] : q8(Y8(e));
600
600
  }
601
601
  function Zl(e) {
602
602
  if (typeof e == "string" || Xi(e))
@@ -621,7 +621,7 @@ function Pd(e, t) {
621
621
  }
622
622
  var Tf = ia ? ia.isConcatSpreadable : void 0;
623
623
  function U8(e) {
624
- return Hn(e) || xr(e) || !!(Tf && e && e[Tf]);
624
+ return Dn(e) || xr(e) || !!(Tf && e && e[Tf]);
625
625
  }
626
626
  function Qr(e, t, n, a, o) {
627
627
  var l = -1, s = e.length;
@@ -659,7 +659,7 @@ function mn() {
659
659
  if (!arguments.length)
660
660
  return [];
661
661
  var e = arguments[0];
662
- return Hn(e) ? e : [e];
662
+ return Dn(e) ? e : [e];
663
663
  }
664
664
  function tb(e, t, n) {
665
665
  return e === e && (n !== void 0 && (e = e <= n ? e : n), t !== void 0 && (e = e >= t ? e : t)), e;
@@ -741,7 +741,7 @@ function hb(e, t) {
741
741
  }
742
742
  function Gv(e, t, n) {
743
743
  var a = t(e);
744
- return Hn(e) ? a : Pd(a, n(e));
744
+ return Dn(e) ? a : Pd(a, n(e));
745
745
  }
746
746
  function fc(e) {
747
747
  return Gv(e, Zr, Vd);
@@ -846,9 +846,9 @@ function Sl(e, t, n, a, o, l) {
846
846
  var s, i = t & ny, u = t & ay, c = t & oy;
847
847
  if (n && (s = o ? n(e, a, o, l) : n(e)), s !== void 0)
848
848
  return s;
849
- if (!Dn(e))
849
+ if (!Fn(e))
850
850
  return e;
851
- var d = Hn(e);
851
+ var d = Dn(e);
852
852
  if (d) {
853
853
  if (s = Eb(e), !i)
854
854
  return Nv(e, s);
@@ -1026,7 +1026,7 @@ function tw(e, t, n, a, o, l) {
1026
1026
  }
1027
1027
  var nw = 1, Wf = "[object Arguments]", jf = "[object Array]", Ts = "[object Object]", aw = Object.prototype, qf = aw.hasOwnProperty;
1028
1028
  function ow(e, t, n, a, o, l) {
1029
- var s = Hn(e), i = Hn(t), u = s ? jf : pa(e), c = i ? jf : pa(t);
1029
+ var s = Dn(e), i = Dn(t), u = s ? jf : pa(e), c = i ? jf : pa(t);
1030
1030
  u = u == Wf ? Ts : u, c = c == Wf ? Ts : c;
1031
1031
  var d = u == Ts, f = c == Ts, m = u == c;
1032
1032
  if (m && Mr(e)) {
@@ -1073,7 +1073,7 @@ function sw(e, t, n, a) {
1073
1073
  return !0;
1074
1074
  }
1075
1075
  function o1(e) {
1076
- return e === e && !Dn(e);
1076
+ return e === e && !Fn(e);
1077
1077
  }
1078
1078
  function iw(e) {
1079
1079
  for (var t = Zr(e), n = t.length; n--; ) {
@@ -1104,7 +1104,7 @@ function dw(e, t, n) {
1104
1104
  break;
1105
1105
  e = e[s];
1106
1106
  }
1107
- return l || ++a != o ? l : (o = e == null ? 0 : e.length, !!o && Td(o) && Zi(s, o) && (Hn(e) || xr(e)));
1107
+ return l || ++a != o ? l : (o = e == null ? 0 : e.length, !!o && Td(o) && Zi(s, o) && (Dn(e) || xr(e)));
1108
1108
  }
1109
1109
  function r1(e, t) {
1110
1110
  return e != null && dw(e, t, cw);
@@ -1130,7 +1130,7 @@ function gw(e) {
1130
1130
  return Id(e) ? mw(Zl(e)) : hw(e);
1131
1131
  }
1132
1132
  function s1(e) {
1133
- return typeof e == "function" ? e : e == null ? kd : typeof e == "object" ? Hn(e) ? vw(e[0], e[1]) : uw(e) : gw(e);
1133
+ return typeof e == "function" ? e : e == null ? kd : typeof e == "object" ? Dn(e) ? vw(e[0], e[1]) : uw(e) : gw(e);
1134
1134
  }
1135
1135
  function bw(e) {
1136
1136
  return function(t, n, a) {
@@ -1164,7 +1164,7 @@ function Ba(e, t, n) {
1164
1164
  var a, o, l, s, i, u, c = 0, d = !1, f = !1, m = !0;
1165
1165
  if (typeof e != "function")
1166
1166
  throw new TypeError(Cw);
1167
- t = br(t) || 0, Dn(n) && (d = !!n.leading, f = "maxWait" in n, l = f ? Sw(br(n.maxWait) || 0, t) : l, m = "trailing" in n ? !!n.trailing : m);
1167
+ t = br(t) || 0, Fn(n) && (d = !!n.leading, f = "maxWait" in n, l = f ? Sw(br(n.maxWait) || 0, t) : l, m = "trailing" in n ? !!n.trailing : m);
1168
1168
  function h(E) {
1169
1169
  var T = a, O = o;
1170
1170
  return a = o = void 0, c = E, s = e.apply(O, T), s;
@@ -1228,14 +1228,14 @@ function xw(e, t, n, a, o, l, s) {
1228
1228
  }
1229
1229
  var d = l ? l(i, u, n + "", e, t, s) : void 0, f = d === void 0;
1230
1230
  if (f) {
1231
- var m = Hn(u), h = !m && Mr(u), v = !m && !h && Nd(u);
1232
- d = u, m || h || v ? Hn(i) ? d = i : u1(i) ? d = Nv(i) : h ? (f = !1, d = qv(u, !0)) : v ? (f = !1, d = Zv(u, !0)) : d = [] : Wv(u) || xr(u) ? (d = i, xr(i) ? d = Ew(i) : (!Dn(i) || Ed(i)) && (d = Jv(u))) : f = !1;
1231
+ var m = Dn(u), h = !m && Mr(u), v = !m && !h && Nd(u);
1232
+ d = u, m || h || v ? Dn(i) ? d = i : u1(i) ? d = Nv(i) : h ? (f = !1, d = qv(u, !0)) : v ? (f = !1, d = Zv(u, !0)) : d = [] : Wv(u) || xr(u) ? (d = i, xr(i) ? d = Ew(i) : (!Fn(i) || Ed(i)) && (d = Jv(u))) : f = !1;
1233
1233
  }
1234
1234
  f && (s.set(u, d), o(d, u, a, l, s), s.delete(u)), mc(e, n, d);
1235
1235
  }
1236
1236
  function c1(e, t, n, a, o) {
1237
1237
  e !== t && i1(t, function(l, s) {
1238
- if (o || (o = new ma()), Dn(l))
1238
+ if (o || (o = new ma()), Fn(l))
1239
1239
  xw(e, t, s, n, c1, a, o);
1240
1240
  else {
1241
1241
  var i = a ? a(hc(e, s), l, s + "", e, t, o) : void 0;
@@ -1261,7 +1261,7 @@ function Tw(e, t) {
1261
1261
  }), a;
1262
1262
  }
1263
1263
  function $w(e, t) {
1264
- var n = Hn(e) ? Sd : Tw;
1264
+ var n = Dn(e) ? Sd : Tw;
1265
1265
  return n(e, s1(t));
1266
1266
  }
1267
1267
  function f1(e, t) {
@@ -1333,7 +1333,7 @@ var zw = 1, Bw = 2, Hw = 4, ts = Fv(function(e, t) {
1333
1333
  return n;
1334
1334
  });
1335
1335
  function v1(e, t, n, a) {
1336
- if (!Dn(e))
1336
+ if (!Fn(e))
1337
1337
  return e;
1338
1338
  t = Xl(t, e);
1339
1339
  for (var o = -1, l = t.length, s = l - 1, i = e; i != null && ++o < l; ) {
@@ -1342,7 +1342,7 @@ function v1(e, t, n, a) {
1342
1342
  return e;
1343
1343
  if (o != s) {
1344
1344
  var d = i[u];
1345
- c = void 0, c === void 0 && (c = Dn(d) ? d : Zi(t[o + 1]) ? [] : {});
1345
+ c = void 0, c === void 0 && (c = Fn(d) ? d : Zi(t[o + 1]) ? [] : {});
1346
1346
  }
1347
1347
  Md(i, u, c), i = i[u];
1348
1348
  }
@@ -1371,7 +1371,7 @@ function So(e, t, n) {
1371
1371
  var a = !0, o = !0;
1372
1372
  if (typeof e != "function")
1373
1373
  throw new TypeError(Ww);
1374
- return Dn(n) && (a = "leading" in n ? !!n.leading : a, o = "trailing" in n ? !!n.trailing : o), Ba(e, t, {
1374
+ return Fn(n) && (a = "leading" in n ? !!n.leading : a, o = "trailing" in n ? !!n.trailing : o), Ba(e, t, {
1375
1375
  leading: a,
1376
1376
  maxWait: t,
1377
1377
  trailing: o
@@ -1404,11 +1404,11 @@ function Uw(e, t, n) {
1404
1404
  var Vu = Vv(function(e) {
1405
1405
  return Uw(Qr(e, 1, u1, !0));
1406
1406
  });
1407
- const kt = (e) => e === void 0, Pt = (e) => typeof e == "boolean", $e = (e) => typeof e == "number", zn = (e) => !e && e !== 0 || Ee(e) && e.length === 0 || Tt(e) && !Object.keys(e).length, Bn = (e) => typeof Element > "u" ? !1 : e instanceof Element, Wn = (e) => an(e), Gw = (e) => De(e) ? !Number.isNaN(Number(e)) : !1, ns = (e) => e === window;
1407
+ const kt = (e) => e === void 0, Pt = (e) => typeof e == "boolean", $e = (e) => typeof e == "number", zn = (e) => !e && e !== 0 || Ee(e) && e.length === 0 || Tt(e) && !Object.keys(e).length, Bn = (e) => typeof Element > "u" ? !1 : e instanceof Element, jn = (e) => an(e), Gw = (e) => De(e) ? !Number.isNaN(Number(e)) : !1, ns = (e) => e === window;
1408
1408
  function m1(e, t) {
1409
1409
  var n;
1410
1410
  const a = Dt();
1411
- return Yn(() => {
1411
+ return Hn(() => {
1412
1412
  a.value = e();
1413
1413
  }, {
1414
1414
  ...t,
@@ -1680,7 +1680,7 @@ function u5(e, t = {}) {
1680
1680
  l.value = c.matches;
1681
1681
  }, i = () => {
1682
1682
  o && ("removeEventListener" in o ? o.removeEventListener("change", s) : o.removeListener(s));
1683
- }, u = Yn(() => {
1683
+ }, u = Hn(() => {
1684
1684
  a.value && (i(), o = n.matchMedia(Jn(e)), "addEventListener" in o ? o.addEventListener("change", s) : o.addListener(s), l.value = o.matches);
1685
1685
  });
1686
1686
  return rl(() => {
@@ -2558,7 +2558,7 @@ const Jf = (e, t) => ns(t) ? e.ownerDocument.documentElement : t, Qf = (e) => ns
2558
2558
  return ie(g, (A) => o(mt, A)), st(() => {
2559
2559
  var A;
2560
2560
  a.target ? (s.value = (A = document.querySelector(a.target)) != null ? A : void 0, s.value || qt(e2, `Target does not exist: ${a.target}`)) : s.value = document.documentElement, u.value = Fd(i.value, !0), p();
2561
- }), Ot(u, "scroll", V), Yn(T), t({
2561
+ }), Ot(u, "scroll", V), Hn(T), t({
2562
2562
  update: T,
2563
2563
  updateRoot: O
2564
2564
  }), (A, L) => (w(), M(
@@ -7672,7 +7672,7 @@ const WT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7672
7672
  });
7673
7673
  var GT = /* @__PURE__ */ be(UT, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);
7674
7674
  const XT = Je(GT), Xd = () => $t && /firefox/i.test(window.navigator.userAgent), nm = () => $t && /android/i.test(window.navigator.userAgent);
7675
- let Fn;
7675
+ let Kn;
7676
7676
  const ZT = {
7677
7677
  height: "0",
7678
7678
  visibility: "hidden",
@@ -7711,17 +7711,17 @@ function QT(e) {
7711
7711
  }
7712
7712
  function n2(e, t = 1, n) {
7713
7713
  var a, o;
7714
- Fn || (Fn = document.createElement("textarea"), ((a = e.parentNode) != null ? a : document.body).appendChild(Fn));
7714
+ Kn || (Kn = document.createElement("textarea"), ((a = e.parentNode) != null ? a : document.body).appendChild(Kn));
7715
7715
  const { paddingSize: l, borderSize: s, boxSizing: i, contextStyle: u } = QT(e);
7716
7716
  u.forEach(
7717
- ([m, h]) => Fn?.style.setProperty(m, h)
7717
+ ([m, h]) => Kn?.style.setProperty(m, h)
7718
7718
  ), Object.entries(ZT).forEach(
7719
- ([m, h]) => Fn?.style.setProperty(m, h, "important")
7720
- ), Fn.value = e.value || e.placeholder || "";
7721
- let c = Fn.scrollHeight;
7719
+ ([m, h]) => Kn?.style.setProperty(m, h, "important")
7720
+ ), Kn.value = e.value || e.placeholder || "";
7721
+ let c = Kn.scrollHeight;
7722
7722
  const d = {};
7723
- i === "border-box" ? c = c + s : i === "content-box" && (c = c - l), Fn.value = "";
7724
- const f = Fn.scrollHeight - l;
7723
+ i === "border-box" ? c = c + s : i === "content-box" && (c = c - l), Kn.value = "";
7724
+ const f = Kn.scrollHeight - l;
7725
7725
  if ($e(t)) {
7726
7726
  let m = f * t;
7727
7727
  i === "border-box" && (m = m + l + s), c = Math.max(m, c), d.minHeight = `${m}px`;
@@ -7730,7 +7730,7 @@ function n2(e, t = 1, n) {
7730
7730
  let m = f * n;
7731
7731
  i === "border-box" && (m = m + l + s), c = Math.min(m, c);
7732
7732
  }
7733
- return d.height = `${c}px`, (o = Fn.parentNode) == null || o.removeChild(Fn), Fn = void 0, d;
7733
+ return d.height = `${c}px`, (o = Kn.parentNode) == null || o.removeChild(Kn), Kn = void 0, d;
7734
7734
  }
7735
7735
  const Yt = (e) => e, e$ = me({
7736
7736
  ariaLabel: String,
@@ -9441,7 +9441,7 @@ const h2 = (e) => {
9441
9441
  function K$(e, t, n, a, o, l) {
9442
9442
  return ee(e.$slots, "default", { handleKeydown: e.onKeydown });
9443
9443
  }
9444
- var tr = /* @__PURE__ */ be(F$, [["render", K$], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]), jn = "top", ua = "bottom", ca = "right", qn = "left", n0 = "auto", ps = [jn, ua, ca, qn], Al = "start", Ar = "end", W$ = "clippingParents", bm = "viewport", sr = "popper", j$ = "reference", g2 = ps.reduce(function(e, t) {
9444
+ var tr = /* @__PURE__ */ be(F$, [["render", K$], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]), qn = "top", ua = "bottom", ca = "right", Yn = "left", n0 = "auto", ps = [qn, ua, ca, Yn], Al = "start", Ar = "end", W$ = "clippingParents", bm = "viewport", sr = "popper", j$ = "reference", g2 = ps.reduce(function(e, t) {
9445
9445
  return e.concat([t + "-" + Al, t + "-" + Ar]);
9446
9446
  }, []), mo = [].concat(ps, [n0]).reduce(function(e, t) {
9447
9447
  return e.concat([t, t + "-" + Al, t + "-" + Ar]);
@@ -9581,9 +9581,9 @@ var sO = function(e, t) {
9581
9581
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, Cm(typeof e != "number" ? e : Sm(e, ps));
9582
9582
  };
9583
9583
  function iO(e) {
9584
- var t, n = e.state, a = e.name, o = e.options, l = n.elements.arrow, s = n.modifiersData.popperOffsets, i = Aa(n.placement), u = l0(i), c = [qn, ca].indexOf(i) >= 0, d = c ? "height" : "width";
9584
+ var t, n = e.state, a = e.name, o = e.options, l = n.elements.arrow, s = n.modifiersData.popperOffsets, i = Aa(n.placement), u = l0(i), c = [Yn, ca].indexOf(i) >= 0, d = c ? "height" : "width";
9585
9585
  if (!(!l || !s)) {
9586
- var f = sO(o.padding, n), m = o0(l), h = u === "y" ? jn : qn, v = u === "y" ? ua : ca, p = n.rects.reference[d] + n.rects.reference[u] - s[u] - n.rects.popper[d], b = s[u] - n.rects.reference[u], g = vs(l), C = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, _ = p / 2 - b / 2, y = f[h], S = C - m[d] - f[v], E = C / 2 - m[d] / 2 + _, T = _r(y, E, S), O = u;
9586
+ var f = sO(o.padding, n), m = o0(l), h = u === "y" ? qn : Yn, v = u === "y" ? ua : ca, p = n.rects.reference[d] + n.rects.reference[u] - s[u] - n.rects.popper[d], b = s[u] - n.rects.reference[u], g = vs(l), C = g ? u === "y" ? g.clientHeight || 0 : g.clientWidth || 0 : 0, _ = p / 2 - b / 2, y = f[h], S = C - m[d] - f[v], E = C / 2 - m[d] / 2 + _, T = _r(y, E, S), O = u;
9587
9587
  n.modifiersData[a] = (t = {}, t[O] = T, t.centerOffset = T - E, t);
9588
9588
  }
9589
9589
  }
@@ -9603,15 +9603,15 @@ function fO(e) {
9603
9603
  function y2(e) {
9604
9604
  var t, n = e.popper, a = e.popperRect, o = e.placement, l = e.variation, s = e.offsets, i = e.position, u = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets, f = e.isFixed, m = s.x, h = m === void 0 ? 0 : m, v = s.y, p = v === void 0 ? 0 : v, b = typeof d == "function" ? d({ x: h, y: p }) : { x: h, y: p };
9605
9605
  h = b.x, p = b.y;
9606
- var g = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), _ = qn, y = jn, S = window;
9606
+ var g = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), _ = Yn, y = qn, S = window;
9607
9607
  if (c) {
9608
9608
  var E = vs(n), T = "clientHeight", O = "clientWidth";
9609
- if (E === Ta(n) && (E = Ao(n), so(E).position !== "static" && i === "absolute" && (T = "scrollHeight", O = "scrollWidth")), E = E, o === jn || (o === qn || o === ca) && l === Ar) {
9609
+ if (E === Ta(n) && (E = Ao(n), so(E).position !== "static" && i === "absolute" && (T = "scrollHeight", O = "scrollWidth")), E = E, o === qn || (o === Yn || o === ca) && l === Ar) {
9610
9610
  y = ua;
9611
9611
  var V = f && E === S && S.visualViewport ? S.visualViewport.height : E[T];
9612
9612
  p -= V - a.height, p *= u ? 1 : -1;
9613
9613
  }
9614
- if (o === qn || (o === jn || o === ua) && l === Ar) {
9614
+ if (o === Yn || (o === qn || o === ua) && l === Ar) {
9615
9615
  _ = ca;
9616
9616
  var A = f && E === S && S.visualViewport ? S.visualViewport.width : E[O];
9617
9617
  h -= A - a.width, h *= u ? 1 : -1;
@@ -9706,7 +9706,7 @@ function _O(e, t, n) {
9706
9706
  function Mm(e) {
9707
9707
  var t = e.reference, n = e.element, a = e.placement, o = a ? Aa(a) : null, l = a ? zl(a) : null, s = t.x + t.width / 2 - n.width / 2, i = t.y + t.height / 2 - n.height / 2, u;
9708
9708
  switch (o) {
9709
- case jn:
9709
+ case qn:
9710
9710
  u = { x: s, y: t.y - n.height };
9711
9711
  break;
9712
9712
  case ua:
@@ -9715,7 +9715,7 @@ function Mm(e) {
9715
9715
  case ca:
9716
9716
  u = { x: t.x + t.width, y: i };
9717
9717
  break;
9718
- case qn:
9718
+ case Yn:
9719
9719
  u = { x: t.x - n.width, y: i };
9720
9720
  break;
9721
9721
  default:
@@ -9741,7 +9741,7 @@ function Vr(e, t) {
9741
9741
  if (d === sr && V) {
9742
9742
  var A = V[o];
9743
9743
  Object.keys(O).forEach(function(L) {
9744
- var I = [ca, ua].indexOf(L) >= 0 ? 1 : -1, z = [jn, ua].indexOf(L) >= 0 ? "y" : "x";
9744
+ var I = [ca, ua].indexOf(L) >= 0 ? 1 : -1, z = [qn, ua].indexOf(L) >= 0 ? "y" : "x";
9745
9745
  O[L] += A[z] * I;
9746
9746
  });
9747
9747
  }
@@ -9773,7 +9773,7 @@ function kO(e) {
9773
9773
  for (var o = n.mainAxis, l = o === void 0 ? !0 : o, s = n.altAxis, i = s === void 0 ? !0 : s, u = n.fallbackPlacements, c = n.padding, d = n.boundary, f = n.rootBoundary, m = n.altBoundary, h = n.flipVariations, v = h === void 0 ? !0 : h, p = n.allowedAutoPlacements, b = t.options.placement, g = Aa(b), C = g === b, _ = u || (C || !v ? [Xs(b)] : SO(b)), y = [b].concat(_).reduce(function(J, G) {
9774
9774
  return J.concat(Aa(G) === n0 ? CO(t, { placement: G, boundary: d, rootBoundary: f, padding: c, flipVariations: v, allowedAutoPlacements: p }) : G);
9775
9775
  }, []), S = t.rects.reference, E = t.rects.popper, T = /* @__PURE__ */ new Map(), O = !0, V = y[0], A = 0; A < y.length; A++) {
9776
- var L = y[A], I = Aa(L), z = zl(L) === Al, W = [jn, ua].indexOf(I) >= 0, j = W ? "width" : "height", Y = Vr(t, { placement: L, boundary: d, rootBoundary: f, altBoundary: m, padding: c }), P = W ? z ? ca : qn : z ? ua : jn;
9776
+ var L = y[A], I = Aa(L), z = zl(L) === Al, W = [qn, ua].indexOf(I) >= 0, j = W ? "width" : "height", Y = Vr(t, { placement: L, boundary: d, rootBoundary: f, altBoundary: m, padding: c }), P = W ? z ? ca : Yn : z ? ua : qn;
9777
9777
  S[j] > E[j] && (P = Xs(P));
9778
9778
  var $ = Xs(P), B = [];
9779
9779
  if (l && B.push(Y[I] <= 0), i && B.push(Y[P] <= 0, Y[$] <= 0), B.every(function(J) {
@@ -9804,7 +9804,7 @@ function C2(e, t, n) {
9804
9804
  return n === void 0 && (n = { x: 0, y: 0 }), { top: e.top - t.height - n.y, right: e.right - t.width + n.x, bottom: e.bottom - t.height + n.y, left: e.left - t.width - n.x };
9805
9805
  }
9806
9806
  function S2(e) {
9807
- return [jn, ca, ua, qn].some(function(t) {
9807
+ return [qn, ca, ua, Yn].some(function(t) {
9808
9808
  return e[t] >= 0;
9809
9809
  });
9810
9810
  }
@@ -9814,8 +9814,8 @@ function xO(e) {
9814
9814
  }
9815
9815
  var MO = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: xO };
9816
9816
  function TO(e, t, n) {
9817
- var a = Aa(e), o = [qn, jn].indexOf(a) >= 0 ? -1 : 1, l = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, s = l[0], i = l[1];
9818
- return s = s || 0, i = (i || 0) * o, [qn, ca].indexOf(a) >= 0 ? { x: i, y: s } : { x: s, y: i };
9817
+ var a = Aa(e), o = [Yn, qn].indexOf(a) >= 0 ? -1 : 1, l = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, s = l[0], i = l[1];
9818
+ return s = s || 0, i = (i || 0) * o, [Yn, ca].indexOf(a) >= 0 ? { x: i, y: s } : { x: s, y: i };
9819
9819
  }
9820
9820
  function $O(e) {
9821
9821
  var t = e.state, n = e.options, a = e.name, o = n.offset, l = o === void 0 ? [0, 0] : o, s = mo.reduce(function(d, f) {
@@ -9836,11 +9836,11 @@ function PO(e) {
9836
9836
  var t = e.state, n = e.options, a = e.name, o = n.mainAxis, l = o === void 0 ? !0 : o, s = n.altAxis, i = s === void 0 ? !1 : s, u = n.boundary, c = n.rootBoundary, d = n.altBoundary, f = n.padding, m = n.tether, h = m === void 0 ? !0 : m, v = n.tetherOffset, p = v === void 0 ? 0 : v, b = Vr(t, { boundary: u, rootBoundary: c, padding: f, altBoundary: d }), g = Aa(t.placement), C = zl(t.placement), _ = !C, y = l0(g), S = IO(y), E = t.modifiersData.popperOffsets, T = t.rects.reference, O = t.rects.popper, V = typeof p == "function" ? p(Object.assign({}, t.rects, { placement: t.placement })) : p, A = typeof V == "number" ? { mainAxis: V, altAxis: V } : Object.assign({ mainAxis: 0, altAxis: 0 }, V), L = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, I = { x: 0, y: 0 };
9837
9837
  if (E) {
9838
9838
  if (l) {
9839
- var z, W = y === "y" ? jn : qn, j = y === "y" ? ua : ca, Y = y === "y" ? "height" : "width", P = E[y], $ = P + b[W], B = P - b[j], H = h ? -O[Y] / 2 : 0, K = C === Al ? T[Y] : O[Y], U = C === Al ? -O[Y] : -T[Y], F = t.elements.arrow, J = h && F ? o0(F) : { width: 0, height: 0 }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _m(), oe = G[W], se = G[j], ae = _r(0, T[Y], J[Y]), de = _ ? T[Y] / 2 - H - ae - oe - A.mainAxis : K - ae - oe - A.mainAxis, le = _ ? -T[Y] / 2 + H + ae + se + A.mainAxis : U + ae + se + A.mainAxis, q = t.elements.arrow && vs(t.elements.arrow), re = q ? y === "y" ? q.clientTop || 0 : q.clientLeft || 0 : 0, _e = (z = L?.[y]) != null ? z : 0, Oe = P + de - _e - re, Ve = P + le - _e, Ke = _r(h ? Ei($, Oe) : $, P, h ? Uo(B, Ve) : B);
9839
+ var z, W = y === "y" ? qn : Yn, j = y === "y" ? ua : ca, Y = y === "y" ? "height" : "width", P = E[y], $ = P + b[W], B = P - b[j], H = h ? -O[Y] / 2 : 0, K = C === Al ? T[Y] : O[Y], U = C === Al ? -O[Y] : -T[Y], F = t.elements.arrow, J = h && F ? o0(F) : { width: 0, height: 0 }, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : _m(), oe = G[W], se = G[j], ae = _r(0, T[Y], J[Y]), de = _ ? T[Y] / 2 - H - ae - oe - A.mainAxis : K - ae - oe - A.mainAxis, le = _ ? -T[Y] / 2 + H + ae + se + A.mainAxis : U + ae + se + A.mainAxis, q = t.elements.arrow && vs(t.elements.arrow), re = q ? y === "y" ? q.clientTop || 0 : q.clientLeft || 0 : 0, _e = (z = L?.[y]) != null ? z : 0, Oe = P + de - _e - re, Ve = P + le - _e, Ke = _r(h ? Ei($, Oe) : $, P, h ? Uo(B, Ve) : B);
9840
9840
  E[y] = Ke, I[y] = Ke - P;
9841
9841
  }
9842
9842
  if (i) {
9843
- var Fe, et = y === "x" ? jn : qn, Et = y === "x" ? ua : ca, Xe = E[S], Pe = S === "y" ? "height" : "width", Ae = Xe + b[et], Ze = Xe - b[Et], Qe = [jn, qn].indexOf(g) !== -1, ht = (Fe = L?.[S]) != null ? Fe : 0, pt = Qe ? Ae : Xe - T[Pe] - O[Pe] - ht + A.altAxis, we = Qe ? Xe + T[Pe] + O[Pe] - ht - A.altAxis : Ze, He = h && Qe ? rO(pt, Xe, we) : _r(h ? pt : Ae, Xe, h ? we : Ze);
9843
+ var Fe, et = y === "x" ? qn : Yn, Et = y === "x" ? ua : ca, Xe = E[S], Pe = S === "y" ? "height" : "width", Ae = Xe + b[et], Ze = Xe - b[Et], Qe = [qn, Yn].indexOf(g) !== -1, ht = (Fe = L?.[S]) != null ? Fe : 0, pt = Qe ? Ae : Xe - T[Pe] - O[Pe] - ht + A.altAxis, we = Qe ? Xe + T[Pe] + O[Pe] - ht - A.altAxis : Ze, He = h && Qe ? rO(pt, Xe, we) : _r(h ? pt : Ae, Xe, h ? we : Ze);
9844
9844
  E[S] = He, I[S] = He - Xe;
9845
9845
  }
9846
9846
  t.modifiersData[a] = I;
@@ -14216,7 +14216,7 @@ const bP = Je(vP, {
14216
14216
  isLimitExceeded: l
14217
14217
  };
14218
14218
  }, SP = (e, t, { model: n }) => {
14219
- const a = Me(nr, void 0), o = R(!1), l = k(() => Wn(e.value) ? e.label : e.value), s = k(() => {
14219
+ const a = Me(nr, void 0), o = R(!1), l = k(() => jn(e.value) ? e.label : e.value), s = k(() => {
14220
14220
  const d = n.value;
14221
14221
  return Pt(d) ? d : Ee(d) ? Tt(l.value) ? d.map(yi).some((f) => Jt(f, l.value)) : d.map(yi).includes(l.value) : d != null ? d === e.trueValue || d === e.trueLabel : !!d;
14222
14222
  }), i = rn(
@@ -14230,7 +14230,7 @@ const bP = Je(vP, {
14230
14230
  ), u = rn(k(() => {
14231
14231
  var d;
14232
14232
  return (d = a?.size) == null ? void 0 : d.value;
14233
- })), c = k(() => !!t.default || !Wn(l.value));
14233
+ })), c = k(() => !!t.default || !jn(l.value));
14234
14234
  return {
14235
14235
  checkboxButtonSize: i,
14236
14236
  isChecked: s,
@@ -14272,7 +14272,7 @@ const bP = Je(vP, {
14272
14272
  scope: "el-checkbox",
14273
14273
  ref: "https://element-plus.org/en-US/component/checkbox.html"
14274
14274
  },
14275
- k(() => o.value && Wn(e.value))
14275
+ k(() => o.value && jn(e.value))
14276
14276
  ), La(
14277
14277
  {
14278
14278
  from: "true-label",
@@ -14650,7 +14650,7 @@ const wa = Je(Gm, {
14650
14650
  [Ue]: (e) => De(e) || $e(e) || Pt(e),
14651
14651
  [mt]: (e) => De(e) || $e(e) || Pt(e)
14652
14652
  }, eh = /* @__PURE__ */ Symbol("radioGroupKey"), th = (e, t) => {
14653
- const n = R(), a = Me(eh, void 0), o = k(() => !!a), l = k(() => Wn(e.value) ? e.label : e.value), s = k({
14653
+ const n = R(), a = Me(eh, void 0), o = k(() => !!a), l = k(() => jn(e.value) ? e.label : e.value), s = k({
14654
14654
  get() {
14655
14655
  return o.value ? a.modelValue : e.modelValue;
14656
14656
  },
@@ -14666,7 +14666,7 @@ const wa = Je(Gm, {
14666
14666
  scope: "el-radio",
14667
14667
  ref: "https://element-plus.org/en-US/component/radio.html"
14668
14668
  },
14669
- k(() => o.value && Wn(e.value))
14669
+ k(() => o.value && jn(e.value))
14670
14670
  ), {
14671
14671
  radioRef: n,
14672
14672
  isGroup: o,
@@ -15333,7 +15333,7 @@ class K2 {
15333
15333
  });
15334
15334
  }
15335
15335
  getNodeByValue(t, n = !1) {
15336
- return Wn(t) ? null : this.getFlattedNodes(n).find(
15336
+ return jn(t) ? null : this.getFlattedNodes(n).find(
15337
15337
  (o) => Jt(o.value, t) || Jt(o.pathValues, t)
15338
15338
  ) || null;
15339
15339
  }
@@ -17283,7 +17283,7 @@ const QA = (e) => {
17283
17283
  i.selected = s.compare(i);
17284
17284
  });
17285
17285
  }
17286
- ), Yn(() => {
17286
+ ), Hn(() => {
17287
17287
  n.value = o(e.colors, e.color);
17288
17288
  });
17289
17289
  function a(l) {
@@ -23516,7 +23516,7 @@ const x0 = rz, Lh = /* @__PURE__ */ Symbol("dialogInjectionKey"), Xu = "dialog-f
23516
23516
  s(m, h);
23517
23517
  };
23518
23518
  return st(() => {
23519
- Yn(() => {
23519
+ Hn(() => {
23520
23520
  n.value ? u() : c();
23521
23521
  });
23522
23522
  }), It(() => {
@@ -28976,7 +28976,7 @@ var OD = D({
28976
28976
  }
28977
28977
  ), ie(v.value, g);
28978
28978
  let W;
28979
- Yn(() => {
28979
+ Hn(() => {
28980
28980
  e.mode === "horizontal" && e.ellipsis ? W = Kt(s, z).stop : W?.();
28981
28981
  });
28982
28982
  const j = R(!1);
@@ -29106,7 +29106,7 @@ const ND = me({
29106
29106
  emits: ID,
29107
29107
  setup(e, { expose: t, emit: n }) {
29108
29108
  const a = e, o = n;
29109
- Wn(a.index) && rt(Fs, 'Missing required prop: "index"');
29109
+ jn(a.index) && rt(Fs, 'Missing required prop: "index"');
29110
29110
  const l = ut(), s = Me(O0), i = ce("menu"), u = ce("menu-item");
29111
29111
  s || qt(Fs, "can not inject root menu");
29112
29112
  const { parentMenu: c, indexPath: d } = o4(l, At(a, "index")), f = Me(
@@ -29812,7 +29812,7 @@ const dF = (e, t) => {
29812
29812
  $e(he) && he > -1 ? _.value = de.value[he] || {} : _.value = {}, de.value.forEach((Ye) => {
29813
29813
  Ye.hover = _.value === Ye;
29814
29814
  });
29815
- }), Yn(() => {
29815
+ }), Hn(() => {
29816
29816
  s.isBeforeHide || re();
29817
29817
  });
29818
29818
  const Et = (he) => {
@@ -34227,9 +34227,9 @@ const lW = (e, t) => {
34227
34227
  ), ie(
34228
34228
  () => U.value,
34229
34229
  () => (Qe(), V.value && Ce(V.value.resetScrollTop))
34230
- ), Yn(() => {
34230
+ ), Hn(() => {
34231
34231
  p.isBeforeHide || et();
34232
- }), Yn(() => {
34232
+ }), Hn(() => {
34233
34233
  const { valueKey: ye, options: Ge } = e, ft = /* @__PURE__ */ new Map();
34234
34234
  for (const Ct of Ge) {
34235
34235
  const fn = d(Ct);
@@ -35710,7 +35710,7 @@ function FW(e) {
35710
35710
  };
35711
35711
  return [i, u, c, e.style];
35712
35712
  }), s = k(() => e.fill ? { flexGrow: 1, minWidth: `${e.fillRatio}%` } : {});
35713
- return Yn(() => {
35713
+ return Hn(() => {
35714
35714
  const { size: i = "small", wrap: u, direction: c, fill: d } = e;
35715
35715
  if (Ee(i)) {
35716
35716
  const [f = 0, m = 0] = i;
@@ -37817,7 +37817,7 @@ const Lj = D({
37817
37817
  return (((T = e.column) == null ? void 0 : T.filteredValue) || [])[0];
37818
37818
  },
37819
37819
  set: (T) => {
37820
- f.value && (Wn(T) ? f.value.splice(0, 1) : f.value.splice(0, 1, T));
37820
+ f.value && (jn(T) ? f.value.splice(0, 1) : f.value.splice(0, 1, T));
37821
37821
  }
37822
37822
  }), f = k({
37823
37823
  get() {
@@ -37835,7 +37835,7 @@ const Lj = D({
37835
37835
  }, b = () => {
37836
37836
  f.value = [], C(f.value), v();
37837
37837
  }, g = (T, O) => {
37838
- d.value = T, i.value = O, Wn(T) ? C([]) : C(f.value), v();
37838
+ d.value = T, i.value = O, jn(T) ? C([]) : C(f.value), v();
37839
37839
  }, C = (T) => {
37840
37840
  var O, V;
37841
37841
  (O = e.store) == null || O.commit("filterChange", {
@@ -37849,7 +37849,7 @@ const Lj = D({
37849
37849
  var T;
37850
37850
  e.column && ((T = e.upDataColumn) == null || T.call(e, "filterOpened", !1));
37851
37851
  }, S = () => {
37852
- if (Wn(d)) {
37852
+ if (jn(d)) {
37853
37853
  i.value = 0;
37854
37854
  return;
37855
37855
  }
@@ -37865,7 +37865,7 @@ const Lj = D({
37865
37865
  handleConfirm: p,
37866
37866
  handleReset: b,
37867
37867
  handleSelect: g,
37868
- isPropAbsent: Wn,
37868
+ isPropAbsent: jn,
37869
37869
  isActive: h,
37870
37870
  t: n,
37871
37871
  ns: a,
@@ -38915,7 +38915,7 @@ function Jj(e) {
38915
38915
  noLazyChildren: !1,
38916
38916
  loading: !1
38917
38917
  }, le = kn(ae, Y.value);
38918
- if (Wn(le))
38918
+ if (jn(le))
38919
38919
  throw new Error("For nested data item, row-key is required.");
38920
38920
  if (H = { ...z.value[le] }, H && (de.expanded = H.expanded, H.level = H.level || de.level, H.display = !!(H.expanded && de.display), Pt(H.lazy) && (Pt(H.loaded) && H.loaded && (de.noLazyChildren = !(H.children && H.children.length)), de.loading = H.loading)), F++, U.push(S(ae, V + F, de)), H) {
38921
38921
  const q = W.value[le] || ae[j.value];
@@ -39227,7 +39227,7 @@ function lq(e, t, n, a) {
39227
39227
  immediate: !0,
39228
39228
  deep: !0
39229
39229
  }
39230
- ), Yn(() => {
39230
+ ), Hn(() => {
39231
39231
  e.expandRowKeys && n.setExpandRowKeysAdapter(e.expandRowKeys);
39232
39232
  });
39233
39233
  const g = () => {
@@ -39491,7 +39491,7 @@ const iq = () => {
39491
39491
  };
39492
39492
  };
39493
39493
  var Pp = !1, Ho, Uc, Gc, ci, di, B4, fi, Xc, Zc, Jc, H4, Qc, ed, D4, F4;
39494
- function Kn() {
39494
+ function Wn() {
39495
39495
  if (!Pp) {
39496
39496
  Pp = !0;
39497
39497
  var e = navigator.userAgent, t = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e), n = /(Mac OS X)|(Windows)|(Linux)/.exec(e);
@@ -39510,37 +39510,37 @@ function Kn() {
39510
39510
  }
39511
39511
  }
39512
39512
  var td = { ie: function() {
39513
- return Kn() || Ho;
39513
+ return Wn() || Ho;
39514
39514
  }, ieCompatibilityMode: function() {
39515
- return Kn() || B4 > Ho;
39515
+ return Wn() || B4 > Ho;
39516
39516
  }, ie64: function() {
39517
39517
  return td.ie() && H4;
39518
39518
  }, firefox: function() {
39519
- return Kn() || Uc;
39519
+ return Wn() || Uc;
39520
39520
  }, opera: function() {
39521
- return Kn() || Gc;
39521
+ return Wn() || Gc;
39522
39522
  }, webkit: function() {
39523
- return Kn() || ci;
39523
+ return Wn() || ci;
39524
39524
  }, safari: function() {
39525
39525
  return td.webkit();
39526
39526
  }, chrome: function() {
39527
- return Kn() || di;
39527
+ return Wn() || di;
39528
39528
  }, windows: function() {
39529
- return Kn() || Xc;
39529
+ return Wn() || Xc;
39530
39530
  }, osx: function() {
39531
- return Kn() || fi;
39531
+ return Wn() || fi;
39532
39532
  }, linux: function() {
39533
- return Kn() || Zc;
39533
+ return Wn() || Zc;
39534
39534
  }, iphone: function() {
39535
- return Kn() || Qc;
39535
+ return Wn() || Qc;
39536
39536
  }, mobile: function() {
39537
- return Kn() || Qc || ed || Jc || F4;
39537
+ return Wn() || Qc || ed || Jc || F4;
39538
39538
  }, nativeApp: function() {
39539
- return Kn() || D4;
39539
+ return Wn() || D4;
39540
39540
  }, android: function() {
39541
- return Kn() || Jc;
39541
+ return Wn() || Jc;
39542
39542
  }, ipad: function() {
39543
- return Kn() || ed;
39543
+ return Wn() || ed;
39544
39544
  } }, uq = td, cq = !!(typeof window < "u" && window.document && window.document.createElement), dq = { canUseDOM: cq }, K4 = dq, W4;
39545
39545
  K4.canUseDOM && (W4 = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== !0);
39546
39546
  function fq(e, t) {
@@ -40239,9 +40239,9 @@ function Tq(e, t) {
40239
40239
  }
40240
40240
  function $q(e, t, n) {
40241
40241
  const a = ut(), o = R(""), l = R(!1), s = R(), i = R(), u = ce("table");
40242
- Yn(() => {
40242
+ Hn(() => {
40243
40243
  s.value = e.align ? `is-${e.align}` : null, s.value;
40244
- }), Yn(() => {
40244
+ }), Hn(() => {
40245
40245
  i.value = e.headerAlign ? `is-${e.headerAlign}` : s.value, i.value;
40246
40246
  });
40247
40247
  const c = k(() => {
@@ -44786,7 +44786,7 @@ class IU {
44786
44786
  n && n.parent && (n === this.currentNode && (this.currentNode = null), n.parent.removeChild(n));
44787
44787
  }
44788
44788
  append(t, n) {
44789
- const a = Wn(n) ? this.root : this.getNode(n);
44789
+ const a = jn(n) ? this.root : this.getNode(n);
44790
44790
  a && a.insertChild({ data: t });
44791
44791
  }
44792
44792
  _initDefaultCheckedNodes() {
@@ -44927,7 +44927,7 @@ class IU {
44927
44927
  }
44928
44928
  setCurrentNodeKey(t, n = !0) {
44929
44929
  var a;
44930
- if (this.currentNodeKey = t, Wn(t)) {
44930
+ if (this.currentNodeKey = t, jn(t)) {
44931
44931
  this.currentNode && (this.currentNode.isCurrent = !1), this.currentNode = null;
44932
44932
  return;
44933
44933
  }
@@ -49053,7 +49053,7 @@ const XX = (e, t, n, a, o, l, s, i) => {
49053
49053
  let b;
49054
49054
  return st(() => {
49055
49055
  const g = r(e), C = r(t);
49056
- g && C && (b = DX(g, C, h)), Yn(() => {
49056
+ g && C && (b = DX(g, C, h)), Hn(() => {
49057
49057
  h();
49058
49058
  });
49059
49059
  }), It(() => {
@@ -52841,17 +52841,37 @@ var mQ = [
52841
52841
  vQ,
52842
52842
  d4
52843
52843
  ], hQ = k5([...cJ, ...mQ]);
52844
- const gQ = /* @__PURE__ */ Object.assign({ "./components/MyButton.vue": m3 }), bQ = Object.values(gQ).map((e) => e.default), yQ = (e) => {
52844
+ function MQ(e = "#409eff") {
52845
+ const t = R(e);
52846
+ return Hn(() => {
52847
+ document.documentElement.style.setProperty("--el-color-primary", t.value);
52848
+ for (let n = 1; n <= 9; n++) {
52849
+ const a = gQ(t.value, n * 0.1);
52850
+ document.documentElement.style.setProperty(`--el-color-primary-light-${n}`, a);
52851
+ }
52852
+ document.documentElement.style.setProperty("--el-color-primary-dark-2", bQ(t.value, 0.2));
52853
+ }), t;
52854
+ }
52855
+ function gQ(e, t) {
52856
+ const n = parseInt(e.slice(1, 3), 16), a = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16), l = Math.round(n + (255 - n) * t), s = Math.round(a + (255 - a) * t), i = Math.round(o + (255 - o) * t);
52857
+ return `#${l.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${i.toString(16).padStart(2, "0")}`;
52858
+ }
52859
+ function bQ(e, t) {
52860
+ const n = parseInt(e.slice(1, 3), 16), a = parseInt(e.slice(3, 5), 16), o = parseInt(e.slice(5, 7), 16), l = Math.round(n * (1 - t)), s = Math.round(a * (1 - t)), i = Math.round(o * (1 - t));
52861
+ return `#${l.toString(16).padStart(2, "0")}${s.toString(16).padStart(2, "0")}${i.toString(16).padStart(2, "0")}`;
52862
+ }
52863
+ const yQ = /* @__PURE__ */ Object.assign({ "./components/MyButton.vue": m3 }), wQ = Object.values(yQ).map((e) => e.default), _Q = (e) => {
52845
52864
  e.use(hQ);
52846
52865
  for (const [t, n] of Object.entries(WT))
52847
52866
  e.component(t, n);
52848
- bQ.forEach((t) => {
52867
+ wQ.forEach((t) => {
52849
52868
  const n = t.__name || t.name;
52850
52869
  n && e.component(n, t);
52851
52870
  });
52852
- }, EQ = {
52853
- install: yQ
52871
+ }, TQ = {
52872
+ install: _Q
52854
52873
  };
52855
52874
  export {
52856
- EQ as default
52875
+ TQ as default,
52876
+ MQ as usePrimaryColor
52857
52877
  };