import { openBlock as P, createElementBlock as B, Fragment as hn, renderList as Go, normalizeClass as Q, getCurrentScope as Ca, onScopeDispose as xa, unref as y, watch as U, defineComponent as $, createElementVNode as se, warn as Ra, inject as H, ref as A, computed as E, isRef as Zo, getCurrentInstance as Pe, onMounted as Ie, shallowRef as Aa, onBeforeUnmount as Te, onBeforeMount as Pa, provide as ye, mergeProps as it, renderSlot as z, normalizeStyle as De, withDirectives as et, cloneVNode as ka, Text as Xo, Comment as Na, createVNode as ke, createBlock as G, withCtx as K, createCommentVNode as Y, nextTick as tt, toRef as je, Teleport as Ia, Transition as Yo, vShow as en, readonly as Fa, onDeactivated as $a, toDisplayString as Ae, useSlots as La, resolveDynamicComponent as kn, reactive as Qo, createTextVNode as tn, h as ht, createApp as Ba, toRefs as Ma, onUpdated as Da, withModifiers as nn, pushScopeId as ja, popScopeId as Ua } from "vue";
const nr = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, o] of t)
    n[r] = o;
  return n;
}, Ha = { class: "indicator-container" }, za = ["onClick"], Va = {
  __name: "IndexIndicator",
  props: {
    count: {
      type: Number,
      default: 0
    },
    current: {
      type: Number,
      default: 0
    }
  },
  emits: ["clicked"],
  setup(e, { emit: t }) {
    const n = t;
    return (r, o) => (P(), B("div", Ha, [
      (P(!0), B(hn, null, Go(e.count, (s, a) => (P(), B("div", {
        key: "indicator_" + s,
        class: Q(["indicator", { active: e.current === a }]),
        onClick: (i) => n("clicked", a)
      }, null, 10, za))), 128))
    ]));
  }
}, qa = /* @__PURE__ */ nr(Va, [["__scopeId", "data-v-afcfce15"]]), Oe = (e, t, { checkForDefaultPrevented: n = !0 } = {}) => (o) => {
  const s = e == null ? void 0 : e(o);
  if (n === !1 || !s)
    return t == null ? void 0 : t(o);
};
var Ur;
const ae = typeof window < "u", Ka = (e) => typeof e == "string", es = () => {
}, Wa = ae && ((Ur = window == null ? void 0 : window.navigator) == null ? void 0 : Ur.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function ts(e) {
  return typeof e == "function" ? e() : y(e);
}
function Ja(e) {
  return e;
}
function ns(e) {
  return Ca() ? (xa(e), !0) : !1;
}
function Ue(e) {
  var t;
  const n = ts(e);
  return (t = n == null ? void 0 : n.$el) != null ? t : n;
}
const rs = ae ? window : void 0;
function Nn(...e) {
  let t, n, r, o;
  if (Ka(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = rs) : [t, n, r, o] = e, !t)
    return es;
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
  const s = [], a = () => {
    s.forEach((u) => u()), s.length = 0;
  }, i = (u, p, v, b) => (u.addEventListener(p, v, b), () => u.removeEventListener(p, v, b)), c = U(() => [Ue(t), ts(o)], ([u, p]) => {
    a(), u && s.push(...n.flatMap((v) => r.map((b) => i(u, v, b, p))));
  }, { immediate: !0, flush: "post" }), l = () => {
    c(), a();
  };
  return ns(l), l;
}
let Hr = !1;
function Ga(e, t, n = {}) {
  const { window: r = rs, ignore: o = [], capture: s = !0, detectIframe: a = !1 } = n;
  if (!r)
    return;
  Wa && !Hr && (Hr = !0, Array.from(r.document.body.children).forEach((v) => v.addEventListener("click", es)));
  let i = !0;
  const c = (v) => o.some((b) => {
    if (typeof b == "string")
      return Array.from(r.document.querySelectorAll(b)).some((f) => f === v.target || v.composedPath().includes(f));
    {
      const f = Ue(b);
      return f && (v.target === f || v.composedPath().includes(f));
    }
  }), u = [
    Nn(r, "click", (v) => {
      const b = Ue(e);
      if (!(!b || b === v.target || v.composedPath().includes(b))) {
        if (v.detail === 0 && (i = !c(v)), !i) {
          i = !0;
          return;
        }
        t(v);
      }
    }, { passive: !0, capture: s }),
    Nn(r, "pointerdown", (v) => {
      const b = Ue(e);
      b && (i = !v.composedPath().includes(b) && !c(v));
    }, { passive: !0 }),
    a && Nn(r, "blur", (v) => {
      var b;
      const f = Ue(e);
      ((b = r.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !(f != null && f.contains(r.document.activeElement)) && t(v);
    })
  ].filter(Boolean);
  return () => u.forEach((v) => v());
}
const zr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Vr = "__vueuse_ssr_handlers__";
zr[Vr] = zr[Vr] || {};
var qr;
(function(e) {
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
})(qr || (qr = {}));
var Za = Object.defineProperty, Kr = Object.getOwnPropertySymbols, Xa = Object.prototype.hasOwnProperty, Ya = Object.prototype.propertyIsEnumerable, Wr = (e, t, n) => t in e ? Za(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qa = (e, t) => {
  for (var n in t || (t = {}))
    Xa.call(t, n) && Wr(e, n, t[n]);
  if (Kr)
    for (var n of Kr(t))
      Ya.call(t, n) && Wr(e, n, t[n]);
  return e;
};
const ei = {
  easeInSine: [0.12, 0, 0.39, 0],
  easeOutSine: [0.61, 1, 0.88, 1],
  easeInOutSine: [0.37, 0, 0.63, 1],
  easeInQuad: [0.11, 0, 0.5, 0],
  easeOutQuad: [0.5, 1, 0.89, 1],
  easeInOutQuad: [0.45, 0, 0.55, 1],
  easeInCubic: [0.32, 0, 0.67, 0],
  easeOutCubic: [0.33, 1, 0.68, 1],
  easeInOutCubic: [0.65, 0, 0.35, 1],
  easeInQuart: [0.5, 0, 0.75, 0],
  easeOutQuart: [0.25, 1, 0.5, 1],
  easeInOutQuart: [0.76, 0, 0.24, 1],
  easeInQuint: [0.64, 0, 0.78, 0],
  easeOutQuint: [0.22, 1, 0.36, 1],
  easeInOutQuint: [0.83, 0, 0.17, 1],
  easeInExpo: [0.7, 0, 0.84, 0],
  easeOutExpo: [0.16, 1, 0.3, 1],
  easeInOutExpo: [0.87, 0, 0.13, 1],
  easeInCirc: [0.55, 0, 1, 0.45],
  easeOutCirc: [0, 0.55, 0.45, 1],
  easeInOutCirc: [0.85, 0, 0.15, 1],
  easeInBack: [0.36, 0, 0.66, -0.56],
  easeOutBack: [0.34, 1.56, 0.64, 1],
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
};
Qa({
  linear: Ja
}, ei);
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
process.env.NODE_ENV !== "production" && Object.freeze({});
process.env.NODE_ENV !== "production" && Object.freeze([]);
const rn = () => {
}, ti = Object.prototype.hasOwnProperty, Jr = (e, t) => ti.call(e, t), ni = Array.isArray, yt = (e) => typeof e == "function", lt = (e) => typeof e == "string", At = (e) => e !== null && typeof e == "object", os = (e) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (n) => t[n] || (t[n] = e(n));
}, ri = /-(\w)/g, oi = os((e) => e.replace(ri, (t, n) => n ? n.toUpperCase() : "")), si = /\B([A-Z])/g, ai = os(
  (e) => e.replace(si, "-$1").toLowerCase()
);
var ii = typeof global == "object" && global && global.Object === Object && global, li = typeof self == "object" && self && self.Object === Object && self, rr = ii || li || Function("return this")(), Ne = rr.Symbol, ss = Object.prototype, ci = ss.hasOwnProperty, ui = ss.toString, mt = Ne ? Ne.toStringTag : void 0;
function fi(e) {
  var t = ci.call(e, mt), n = e[mt];
  try {
    e[mt] = void 0;
    var r = !0;
  } catch {
  }
  var o = ui.call(e);
  return r && (t ? e[mt] = n : delete e[mt]), o;
}
var di = Object.prototype, pi = di.toString;
function hi(e) {
  return pi.call(e);
}
var mi = "[object Null]", vi = "[object Undefined]", Gr = Ne ? Ne.toStringTag : void 0;
function or(e) {
  return e == null ? e === void 0 ? vi : mi : Gr && Gr in Object(e) ? fi(e) : hi(e);
}
function sr(e) {
  return e != null && typeof e == "object";
}
var gi = "[object Symbol]";
function ar(e) {
  return typeof e == "symbol" || sr(e) && or(e) == gi;
}
function bi(e, t) {
  for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
    o[n] = t(e[n], n, e);
  return o;
}
var Pt = Array.isArray, yi = 1 / 0, Zr = Ne ? Ne.prototype : void 0, Xr = Zr ? Zr.toString : void 0;
function as(e) {
  if (typeof e == "string")
    return e;
  if (Pt(e))
    return bi(e, as) + "";
  if (ar(e))
    return Xr ? Xr.call(e) : "";
  var t = e + "";
  return t == "0" && 1 / e == -yi ? "-0" : t;
}
function on(e) {
  var t = typeof e;
  return e != null && (t == "object" || t == "function");
}
function wi(e) {
  return e;
}
var Ei = "[object AsyncFunction]", Si = "[object Function]", Oi = "[object GeneratorFunction]", _i = "[object Proxy]";
function Ti(e) {
  if (!on(e))
    return !1;
  var t = or(e);
  return t == Si || t == Oi || t == Ei || t == _i;
}
var In = rr["__core-js_shared__"], Yr = function() {
  var e = /[^.]+$/.exec(In && In.keys && In.keys.IE_PROTO || "");
  return e ? "Symbol(src)_1." + e : "";
}();
function Ci(e) {
  return !!Yr && Yr in e;
}
var xi = Function.prototype, Ri = xi.toString;
function Ai(e) {
  if (e != null) {
    try {
      return Ri.call(e);
    } catch {
    }
    try {
      return e + "";
    } catch {
    }
  }
  return "";
}
var Pi = /[\\^$.*+?()[\]{}|]/g, ki = /^\[object .+?Constructor\]$/, Ni = Function.prototype, Ii = Object.prototype, Fi = Ni.toString, $i = Ii.hasOwnProperty, Li = RegExp(
  "^" + Fi.call($i).replace(Pi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function Bi(e) {
  if (!on(e) || Ci(e))
    return !1;
  var t = Ti(e) ? Li : ki;
  return t.test(Ai(e));
}
function Mi(e, t) {
  return e == null ? void 0 : e[t];
}
function ir(e, t) {
  var n = Mi(e, t);
  return Bi(n) ? n : void 0;
}
function Di(e, t, n) {
  switch (n.length) {
    case 0:
      return e.call(t);
    case 1:
      return e.call(t, n[0]);
    case 2:
      return e.call(t, n[0], n[1]);
    case 3:
      return e.call(t, n[0], n[1], n[2]);
  }
  return e.apply(t, n);
}
var ji = 800, Ui = 16, Hi = Date.now;
function zi(e) {
  var t = 0, n = 0;
  return function() {
    var r = Hi(), o = Ui - (r - n);
    if (n = r, o > 0) {
      if (++t >= ji)
        return arguments[0];
    } else
      t = 0;
    return e.apply(void 0, arguments);
  };
}
function Vi(e) {
  return function() {
    return e;
  };
}
var sn = function() {
  try {
    var e = ir(Object, "defineProperty");
    return e({}, "", {}), e;
  } catch {
  }
}(), qi = sn ? function(e, t) {
  return sn(e, "toString", {
    configurable: !0,
    enumerable: !1,
    value: Vi(t),
    writable: !0
  });
} : wi, Ki = zi(qi), Wi = 9007199254740991, Ji = /^(?:0|[1-9]\d*)$/;
function is(e, t) {
  var n = typeof e;
  return t = t ?? Wi, !!t && (n == "number" || n != "symbol" && Ji.test(e)) && e > -1 && e % 1 == 0 && e < t;
}
function Gi(e, t, n) {
  t == "__proto__" && sn ? sn(e, t, {
    configurable: !0,
    enumerable: !0,
    value: n,
    writable: !0
  }) : e[t] = n;
}
function ls(e, t) {
  return e === t || e !== e && t !== t;
}
var Zi = Object.prototype, Xi = Zi.hasOwnProperty;
function Yi(e, t, n) {
  var r = e[t];
  (!(Xi.call(e, t) && ls(r, n)) || n === void 0 && !(t in e)) && Gi(e, t, n);
}
var Qr = Math.max;
function Qi(e, t, n) {
  return t = Qr(t === void 0 ? e.length - 1 : t, 0), function() {
    for (var r = arguments, o = -1, s = Qr(r.length - t, 0), a = Array(s); ++o < s; )
      a[o] = r[t + o];
    o = -1;
    for (var i = Array(t + 1); ++o < t; )
      i[o] = r[o];
    return i[t] = n(a), Di(e, this, i);
  };
}
var el = 9007199254740991;
function tl(e) {
  return typeof e == "number" && e > -1 && e % 1 == 0 && e <= el;
}
var nl = "[object Arguments]";
function eo(e) {
  return sr(e) && or(e) == nl;
}
var cs = Object.prototype, rl = cs.hasOwnProperty, ol = cs.propertyIsEnumerable, us = eo(/* @__PURE__ */ function() {
  return arguments;
}()) ? eo : function(e) {
  return sr(e) && rl.call(e, "callee") && !ol.call(e, "callee");
}, sl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, al = /^\w*$/;
function il(e, t) {
  if (Pt(e))
    return !1;
  var n = typeof e;
  return n == "number" || n == "symbol" || n == "boolean" || e == null || ar(e) ? !0 : al.test(e) || !sl.test(e) || t != null && e in Object(t);
}
var Ot = ir(Object, "create");
function ll() {
  this.__data__ = Ot ? Ot(null) : {}, this.size = 0;
}
function cl(e) {
  var t = this.has(e) && delete this.__data__[e];
  return this.size -= t ? 1 : 0, t;
}
var ul = "__lodash_hash_undefined__", fl = Object.prototype, dl = fl.hasOwnProperty;
function pl(e) {
  var t = this.__data__;
  if (Ot) {
    var n = t[e];
    return n === ul ? void 0 : n;
  }
  return dl.call(t, e) ? t[e] : void 0;
}
var hl = Object.prototype, ml = hl.hasOwnProperty;
function vl(e) {
  var t = this.__data__;
  return Ot ? t[e] !== void 0 : ml.call(t, e);
}
var gl = "__lodash_hash_undefined__";
function bl(e, t) {
  var n = this.__data__;
  return this.size += this.has(e) ? 0 : 1, n[e] = Ot && t === void 0 ? gl : t, this;
}
function Ke(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Ke.prototype.clear = ll;
Ke.prototype.delete = cl;
Ke.prototype.get = pl;
Ke.prototype.has = vl;
Ke.prototype.set = bl;
function yl() {
  this.__data__ = [], this.size = 0;
}
function mn(e, t) {
  for (var n = e.length; n--; )
    if (ls(e[n][0], t))
      return n;
  return -1;
}
var wl = Array.prototype, El = wl.splice;
function Sl(e) {
  var t = this.__data__, n = mn(t, e);
  if (n < 0)
    return !1;
  var r = t.length - 1;
  return n == r ? t.pop() : El.call(t, n, 1), --this.size, !0;
}
function Ol(e) {
  var t = this.__data__, n = mn(t, e);
  return n < 0 ? void 0 : t[n][1];
}
function _l(e) {
  return mn(this.__data__, e) > -1;
}
function Tl(e, t) {
  var n = this.__data__, r = mn(n, e);
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
}
function ct(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
ct.prototype.clear = yl;
ct.prototype.delete = Sl;
ct.prototype.get = Ol;
ct.prototype.has = _l;
ct.prototype.set = Tl;
var Cl = ir(rr, "Map");
function xl() {
  this.size = 0, this.__data__ = {
    hash: new Ke(),
    map: new (Cl || ct)(),
    string: new Ke()
  };
}
function Rl(e) {
  var t = typeof e;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
}
function vn(e, t) {
  var n = e.__data__;
  return Rl(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
}
function Al(e) {
  var t = vn(this, e).delete(e);
  return this.size -= t ? 1 : 0, t;
}
function Pl(e) {
  return vn(this, e).get(e);
}
function kl(e) {
  return vn(this, e).has(e);
}
function Nl(e, t) {
  var n = vn(this, e), r = n.size;
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
}
function Ge(e) {
  var t = -1, n = e == null ? 0 : e.length;
  for (this.clear(); ++t < n; ) {
    var r = e[t];
    this.set(r[0], r[1]);
  }
}
Ge.prototype.clear = xl;
Ge.prototype.delete = Al;
Ge.prototype.get = Pl;
Ge.prototype.has = kl;
Ge.prototype.set = Nl;
var Il = "Expected a function";
function lr(e, t) {
  if (typeof e != "function" || t != null && typeof t != "function")
    throw new TypeError(Il);
  var n = function() {
    var r = arguments, o = t ? t.apply(this, r) : r[0], s = n.cache;
    if (s.has(o))
      return s.get(o);
    var a = e.apply(this, r);
    return n.cache = s.set(o, a) || s, a;
  };
  return n.cache = new (lr.Cache || Ge)(), n;
}
lr.Cache = Ge;
var Fl = 500;
function $l(e) {
  var t = lr(e, function(r) {
    return n.size === Fl && n.clear(), r;
  }), n = t.cache;
  return t;
}
var Ll = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Bl = /\\(\\)?/g, Ml = $l(function(e) {
  var t = [];
  return e.charCodeAt(0) === 46 && t.push(""), e.replace(Ll, function(n, r, o, s) {
    t.push(o ? s.replace(Bl, "$1") : r || n);
  }), t;
});
function Dl(e) {
  return e == null ? "" : as(e);
}
function gn(e, t) {
  return Pt(e) ? e : il(e, t) ? [e] : Ml(Dl(e));
}
var jl = 1 / 0;
function cr(e) {
  if (typeof e == "string" || ar(e))
    return e;
  var t = e + "";
  return t == "0" && 1 / e == -jl ? "-0" : t;
}
function fs(e, t) {
  t = gn(t, e);
  for (var n = 0, r = t.length; e != null && n < r; )
    e = e[cr(t[n++])];
  return n && n == r ? e : void 0;
}
function Ul(e, t, n) {
  var r = e == null ? void 0 : fs(e, t);
  return r === void 0 ? n : r;
}
function Hl(e, t) {
  for (var n = -1, r = t.length, o = e.length; ++n < r; )
    e[o + n] = t[n];
  return e;
}
var to = Ne ? Ne.isConcatSpreadable : void 0;
function zl(e) {
  return Pt(e) || us(e) || !!(to && e && e[to]);
}
function Vl(e, t, n, r, o) {
  var s = -1, a = e.length;
  for (n || (n = zl), o || (o = []); ++s < a; ) {
    var i = e[s];
    n(i) ? Hl(o, i) : o[o.length] = i;
  }
  return o;
}
function ql(e) {
  var t = e == null ? 0 : e.length;
  return t ? Vl(e) : [];
}
function Kl(e) {
  return Ki(Qi(e, void 0, ql), e + "");
}
function Wl(e, t) {
  return e != null && t in Object(e);
}
function Jl(e, t, n) {
  t = gn(t, e);
  for (var r = -1, o = t.length, s = !1; ++r < o; ) {
    var a = cr(t[r]);
    if (!(s = e != null && n(e, a)))
      break;
    e = e[a];
  }
  return s || ++r != o ? s : (o = e == null ? 0 : e.length, !!o && tl(o) && is(a, o) && (Pt(e) || us(e)));
}
function Gl(e, t) {
  return e != null && Jl(e, t, Wl);
}
function Vn(e) {
  for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
    var o = e[t];
    r[o[0]] = o[1];
  }
  return r;
}
function ur(e) {
  return e == null;
}
function Zl(e) {
  return e === void 0;
}
function Xl(e, t, n, r) {
  if (!on(e))
    return e;
  t = gn(t, e);
  for (var o = -1, s = t.length, a = s - 1, i = e; i != null && ++o < s; ) {
    var c = cr(t[o]), l = n;
    if (c === "__proto__" || c === "constructor" || c === "prototype")
      return e;
    if (o != a) {
      var u = i[c];
      l = void 0, l === void 0 && (l = on(u) ? u : is(t[o + 1]) ? [] : {});
    }
    Yi(i, c, l), i = i[c];
  }
  return e;
}
function Yl(e, t, n) {
  for (var r = -1, o = t.length, s = {}; ++r < o; ) {
    var a = t[r], i = fs(e, a);
    n(i, a) && Xl(s, gn(a, e), i);
  }
  return s;
}
function Ql(e, t) {
  return Yl(e, t, function(n, r) {
    return Gl(e, r);
  });
}
var ec = Kl(function(e, t) {
  return e == null ? {} : Ql(e, t);
});
const tc = (e) => e === void 0, fr = (e) => typeof e == "boolean", _t = (e) => typeof e == "number", wt = (e) => typeof Element > "u" ? !1 : e instanceof Element, nc = (e) => lt(e) ? !Number.isNaN(Number(e)) : !1, no = (e) => Object.keys(e);
class rc extends Error {
  constructor(t) {
    super(t), this.name = "ElementPlusError";
  }
}
function We(e, t) {
  if (process.env.NODE_ENV !== "production") {
    const n = lt(e) ? new rc(`[${e}] ${t}`) : e;
    console.warn(n);
  }
}
const oc = "utils/dom/style", ds = (e = "") => e.split(" ").filter((t) => !!t.trim()), ro = (e, t) => {
  !e || !t.trim() || e.classList.add(...ds(t));
}, an = (e, t) => {
  !e || !t.trim() || e.classList.remove(...ds(t));
}, vt = (e, t) => {
  var n;
  if (!ae || !e || !t)
    return "";
  let r = oi(t);
  r === "float" && (r = "cssFloat");
  try {
    const o = e.style[r];
    if (o)
      return o;
    const s = (n = document.defaultView) == null ? void 0 : n.getComputedStyle(e, "");
    return s ? s[r] : "";
  } catch {
    return e.style[r];
  }
};
function ps(e, t = "px") {
  if (!e)
    return "";
  if (_t(e) || nc(e))
    return `${e}${t}`;
  if (lt(e))
    return e;
  We(oc, "binding value must be a string or number");
}
/*! Element Plus Icons Vue v2.3.1 */
var sc = /* @__PURE__ */ $({
  name: "Loading",
  __name: "loading",
  setup(e) {
    return (t, n) => (P(), B("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      se("path", {
        fill: "currentColor",
        d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
      })
    ]));
  }
}), ac = sc;
const hs = "__epPropKey", I = (e) => e, ic = (e) => At(e) && !!e[hs], bn = (e, t) => {
  if (!At(e) || ic(e))
    return e;
  const { values: n, required: r, default: o, type: s, validator: a } = e, c = {
    type: s,
    required: !!r,
    validator: n || a ? (l) => {
      let u = !1, p = [];
      if (n && (p = Array.from(n), Jr(e, "default") && p.push(o), u || (u = p.includes(l))), a && (u || (u = a(l))), !u && p.length > 0) {
        const v = [...new Set(p)].map((b) => JSON.stringify(b)).join(", ");
        Ra(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${v}], got value ${JSON.stringify(l)}.`);
      }
      return u;
    } : void 0,
    [hs]: !0
  };
  return Jr(e, "default") && (c.default = o), c;
}, q = (e) => Vn(Object.entries(e).map(([t, n]) => [
  t,
  bn(n, t)
])), qn = I([
  String,
  Object,
  Function
]), Ze = (e, t) => {
  if (e.install = (n) => {
    for (const r of [e, ...Object.values(t ?? {})])
      n.component(r.name, r);
  }, t)
    for (const [n, r] of Object.entries(t))
      e[n] = r;
  return e;
}, lc = (e, t) => (e.install = (n) => {
  n.directive(t, e);
}, e), cc = (e) => (e.install = rn, e), ln = {
  tab: "Tab",
  enter: "Enter",
  space: "Space",
  left: "ArrowLeft",
  up: "ArrowUp",
  right: "ArrowRight",
  down: "ArrowDown",
  esc: "Escape",
  delete: "Delete",
  backspace: "Backspace",
  numpadEnter: "NumpadEnter",
  pageUp: "PageUp",
  pageDown: "PageDown",
  home: "Home",
  end: "End"
}, uc = ["", "default", "small", "large"], fc = ({ from: e, replacement: t, scope: n, version: r, ref: o, type: s = "API" }, a) => {
  U(() => y(a), (i) => {
    i && We(n, `[${s}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
For more detail, please visit: ${o}
`);
  }, {
    immediate: !0
  });
};
var dc = {
  name: "en",
  el: {
    breadcrumb: {
      label: "Breadcrumb"
    },
    colorpicker: {
      confirm: "OK",
      clear: "Clear",
      defaultLabel: "color picker",
      description: "current color is {color}. press enter to select a new color.",
      alphaLabel: "pick alpha value"
    },
    datepicker: {
      now: "Now",
      today: "Today",
      cancel: "Cancel",
      clear: "Clear",
      confirm: "OK",
      dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
      monthTablePrompt: "Use the arrow keys and enter to select the month",
      yearTablePrompt: "Use the arrow keys and enter to select the year",
      selectedDate: "Selected date",
      selectDate: "Select date",
      selectTime: "Select time",
      startDate: "Start Date",
      startTime: "Start Time",
      endDate: "End Date",
      endTime: "End Time",
      prevYear: "Previous Year",
      nextYear: "Next Year",
      prevMonth: "Previous Month",
      nextMonth: "Next Month",
      year: "",
      month1: "January",
      month2: "February",
      month3: "March",
      month4: "April",
      month5: "May",
      month6: "June",
      month7: "July",
      month8: "August",
      month9: "September",
      month10: "October",
      month11: "November",
      month12: "December",
      week: "week",
      weeks: {
        sun: "Sun",
        mon: "Mon",
        tue: "Tue",
        wed: "Wed",
        thu: "Thu",
        fri: "Fri",
        sat: "Sat"
      },
      weeksFull: {
        sun: "Sunday",
        mon: "Monday",
        tue: "Tuesday",
        wed: "Wednesday",
        thu: "Thursday",
        fri: "Friday",
        sat: "Saturday"
      },
      months: {
        jan: "Jan",
        feb: "Feb",
        mar: "Mar",
        apr: "Apr",
        may: "May",
        jun: "Jun",
        jul: "Jul",
        aug: "Aug",
        sep: "Sep",
        oct: "Oct",
        nov: "Nov",
        dec: "Dec"
      }
    },
    inputNumber: {
      decrease: "decrease number",
      increase: "increase number"
    },
    select: {
      loading: "Loading",
      noMatch: "No matching data",
      noData: "No data",
      placeholder: "Select"
    },
    mention: {
      loading: "Loading"
    },
    dropdown: {
      toggleDropdown: "Toggle Dropdown"
    },
    cascader: {
      noMatch: "No matching data",
      loading: "Loading",
      placeholder: "Select",
      noData: "No data"
    },
    pagination: {
      goto: "Go to",
      pagesize: "/page",
      total: "Total {total}",
      pageClassifier: "",
      page: "Page",
      prev: "Go to previous page",
      next: "Go to next page",
      currentPage: "page {pager}",
      prevPages: "Previous {pager} pages",
      nextPages: "Next {pager} pages",
      deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
    },
    dialog: {
      close: "Close this dialog"
    },
    drawer: {
      close: "Close this dialog"
    },
    messagebox: {
      title: "Message",
      confirm: "OK",
      cancel: "Cancel",
      error: "Illegal input",
      close: "Close this dialog"
    },
    upload: {
      deleteTip: "press delete to remove",
      delete: "Delete",
      preview: "Preview",
      continue: "Continue"
    },
    slider: {
      defaultLabel: "slider between {min} and {max}",
      defaultRangeStartLabel: "pick start value",
      defaultRangeEndLabel: "pick end value"
    },
    table: {
      emptyText: "No Data",
      confirmFilter: "Confirm",
      resetFilter: "Reset",
      clearFilter: "All",
      sumText: "Sum"
    },
    tour: {
      next: "Next",
      previous: "Previous",
      finish: "Finish"
    },
    tree: {
      emptyText: "No Data"
    },
    transfer: {
      noMatch: "No matching data",
      noData: "No data",
      titles: ["List 1", "List 2"],
      filterPlaceholder: "Enter keyword",
      noCheckedFormat: "{total} items",
      hasCheckedFormat: "{checked}/{total} checked"
    },
    image: {
      error: "FAILED"
    },
    pageHeader: {
      title: "Back"
    },
    popconfirm: {
      confirmButtonText: "Yes",
      cancelButtonText: "No"
    },
    carousel: {
      leftArrow: "Carousel arrow left",
      rightArrow: "Carousel arrow right",
      indicator: "Carousel switch to index {index}"
    }
  }
};
const pc = (e) => (t, n) => hc(t, n, y(e)), hc = (e, t, n) => Ul(n, e, e).replace(/\{(\w+)\}/g, (r, o) => {
  var s;
  return `${(s = t == null ? void 0 : t[o]) != null ? s : `{${o}}`}`;
}), mc = (e) => {
  const t = E(() => y(e).name), n = Zo(e) ? e : A(e);
  return {
    lang: t,
    locale: n,
    t: pc(e)
  };
}, ms = Symbol("localeContextKey"), vc = (e) => {
  const t = e || H(ms, A());
  return mc(E(() => t.value || dc));
}, Jt = "el", gc = "is-", Me = (e, t, n, r, o) => {
  let s = `${e}-${t}`;
  return n && (s += `-${n}`), r && (s += `__${r}`), o && (s += `--${o}`), s;
}, vs = Symbol("namespaceContextKey"), dr = (e) => {
  const t = e || (Pe() ? H(vs, A(Jt)) : A(Jt));
  return E(() => y(t) || Jt);
}, fe = (e, t) => {
  const n = dr(t);
  return {
    namespace: n,
    b: (d = "") => Me(n.value, e, d, "", ""),
    e: (d) => d ? Me(n.value, e, "", d, "") : "",
    m: (d) => d ? Me(n.value, e, "", "", d) : "",
    be: (d, h) => d && h ? Me(n.value, e, d, h, "") : "",
    em: (d, h) => d && h ? Me(n.value, e, "", d, h) : "",
    bm: (d, h) => d && h ? Me(n.value, e, d, "", h) : "",
    bem: (d, h, m) => d && h && m ? Me(n.value, e, d, h, m) : "",
    is: (d, ...h) => {
      const m = h.length >= 1 ? h[0] : !0;
      return d && m ? `${gc}${d}` : "";
    },
    cssVar: (d) => {
      const h = {};
      for (const m in d)
        d[m] && (h[`--${n.value}-${m}`] = d[m]);
      return h;
    },
    cssVarName: (d) => `--${n.value}-${d}`,
    cssVarBlock: (d) => {
      const h = {};
      for (const m in d)
        d[m] && (h[`--${n.value}-${e}-${m}`] = d[m]);
      return h;
    },
    cssVarBlockName: (d) => `--${n.value}-${e}-${d}`
  };
}, bc = bn({
  type: I(Boolean),
  default: null
}), yc = bn({
  type: I(Function)
}), wc = (e) => {
  const t = `update:${e}`, n = `onUpdate:${e}`, r = [t], o = {
    [e]: bc,
    [n]: yc
  };
  return {
    useModelToggle: ({
      indicator: a,
      toggleReason: i,
      shouldHideWhenRouteChanges: c,
      shouldProceed: l,
      onShow: u,
      onHide: p
    }) => {
      const v = Pe(), { emit: b } = v, f = v.props, d = E(() => yt(f[n])), h = E(() => f[e] === null), m = (T) => {
        a.value !== !0 && (a.value = !0, i && (i.value = T), yt(u) && u(T));
      }, w = (T) => {
        a.value !== !1 && (a.value = !1, i && (i.value = T), yt(p) && p(T));
      }, O = (T) => {
        if (f.disabled === !0 || yt(l) && !l())
          return;
        const _ = d.value && ae;
        _ && b(t, !0), (h.value || !_) && m(T);
      }, S = (T) => {
        if (f.disabled === !0 || !ae)
          return;
        const _ = d.value && ae;
        _ && b(t, !1), (h.value || !_) && w(T);
      }, C = (T) => {
        fr(T) && (f.disabled && T ? d.value && b(t, !1) : a.value !== T && (T ? m() : w()));
      }, R = () => {
        a.value ? S() : O();
      };
      return U(() => f[e], C), c && v.appContext.config.globalProperties.$route !== void 0 && U(() => ({
        ...v.proxy.$route
      }), () => {
        c.value && a.value && S();
      }), Ie(() => {
        C(f[e]);
      }), {
        hide: S,
        show: O,
        toggle: R,
        hasUpdateHandler: d
      };
    },
    useModelToggleProps: o,
    useModelToggleEmits: r
  };
}, gs = (e) => {
  const t = Pe();
  return E(() => {
    var n, r;
    return (r = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
  });
};
var ee = "top", ce = "bottom", ue = "right", te = "left", pr = "auto", kt = [ee, ce, ue, te], nt = "start", Tt = "end", Ec = "clippingParents", bs = "viewport", gt = "popper", Sc = "reference", oo = kt.reduce(function(e, t) {
  return e.concat([t + "-" + nt, t + "-" + Tt]);
}, []), hr = [].concat(kt, [pr]).reduce(function(e, t) {
  return e.concat([t, t + "-" + nt, t + "-" + Tt]);
}, []), Oc = "beforeRead", _c = "read", Tc = "afterRead", Cc = "beforeMain", xc = "main", Rc = "afterMain", Ac = "beforeWrite", Pc = "write", kc = "afterWrite", Nc = [Oc, _c, Tc, Cc, xc, Rc, Ac, Pc, kc];
function we(e) {
  return e ? (e.nodeName || "").toLowerCase() : null;
}
function pe(e) {
  if (e == null) return window;
  if (e.toString() !== "[object Window]") {
    var t = e.ownerDocument;
    return t && t.defaultView || window;
  }
  return e;
}
function rt(e) {
  var t = pe(e).Element;
  return e instanceof t || e instanceof Element;
}
function le(e) {
  var t = pe(e).HTMLElement;
  return e instanceof t || e instanceof HTMLElement;
}
function mr(e) {
  if (typeof ShadowRoot > "u") return !1;
  var t = pe(e).ShadowRoot;
  return e instanceof t || e instanceof ShadowRoot;
}
function Ic(e) {
  var t = e.state;
  Object.keys(t.elements).forEach(function(n) {
    var r = t.styles[n] || {}, o = t.attributes[n] || {}, s = t.elements[n];
    !le(s) || !we(s) || (Object.assign(s.style, r), Object.keys(o).forEach(function(a) {
      var i = o[a];
      i === !1 ? s.removeAttribute(a) : s.setAttribute(a, i === !0 ? "" : i);
    }));
  });
}
function Fc(e) {
  var t = e.state, n = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
    Object.keys(t.elements).forEach(function(r) {
      var o = t.elements[r], s = t.attributes[r] || {}, a = Object.keys(t.styles.hasOwnProperty(r) ? t.styles[r] : n[r]), i = a.reduce(function(c, l) {
        return c[l] = "", c;
      }, {});
      !le(o) || !we(o) || (Object.assign(o.style, i), Object.keys(s).forEach(function(c) {
        o.removeAttribute(c);
      }));
    });
  };
}
var ys = { name: "applyStyles", enabled: !0, phase: "write", fn: Ic, effect: Fc, requires: ["computeStyles"] };
function be(e) {
  return e.split("-")[0];
}
var Ve = Math.max, cn = Math.min, ot = Math.round;
function st(e, t) {
  t === void 0 && (t = !1);
  var n = e.getBoundingClientRect(), r = 1, o = 1;
  if (le(e) && t) {
    var s = e.offsetHeight, a = e.offsetWidth;
    a > 0 && (r = ot(n.width) / a || 1), s > 0 && (o = ot(n.height) / s || 1);
  }
  return { width: n.width / r, height: n.height / o, top: n.top / o, right: n.right / r, bottom: n.bottom / o, left: n.left / r, x: n.left / r, y: n.top / o };
}
function vr(e) {
  var t = st(e), n = e.offsetWidth, r = e.offsetHeight;
  return Math.abs(t.width - n) <= 1 && (n = t.width), Math.abs(t.height - r) <= 1 && (r = t.height), { x: e.offsetLeft, y: e.offsetTop, width: n, height: r };
}
function ws(e, t) {
  var n = t.getRootNode && t.getRootNode();
  if (e.contains(t)) return !0;
  if (n && mr(n)) {
    var r = t;
    do {
      if (r && e.isSameNode(r)) return !0;
      r = r.parentNode || r.host;
    } while (r);
  }
  return !1;
}
function _e(e) {
  return pe(e).getComputedStyle(e);
}
function $c(e) {
  return ["table", "td", "th"].indexOf(we(e)) >= 0;
}
function Fe(e) {
  return ((rt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
}
function yn(e) {
  return we(e) === "html" ? e : e.assignedSlot || e.parentNode || (mr(e) ? e.host : null) || Fe(e);
}
function so(e) {
  return !le(e) || _e(e).position === "fixed" ? null : e.offsetParent;
}
function Lc(e) {
  var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
  if (n && le(e)) {
    var r = _e(e);
    if (r.position === "fixed") return null;
  }
  var o = yn(e);
  for (mr(o) && (o = o.host); le(o) && ["html", "body"].indexOf(we(o)) < 0; ) {
    var s = _e(o);
    if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none") return o;
    o = o.parentNode;
  }
  return null;
}
function Nt(e) {
  for (var t = pe(e), n = so(e); n && $c(n) && _e(n).position === "static"; ) n = so(n);
  return n && (we(n) === "html" || we(n) === "body" && _e(n).position === "static") ? t : n || Lc(e) || t;
}
function gr(e) {
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
}
function Et(e, t, n) {
  return Ve(e, cn(t, n));
}
function Bc(e, t, n) {
  var r = Et(e, t, n);
  return r > n ? n : r;
}
function Es() {
  return { top: 0, right: 0, bottom: 0, left: 0 };
}
function Ss(e) {
  return Object.assign({}, Es(), e);
}
function Os(e, t) {
  return t.reduce(function(n, r) {
    return n[r] = e, n;
  }, {});
}
var Mc = function(e, t) {
  return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, Ss(typeof e != "number" ? e : Os(e, kt));
};
function Dc(e) {
  var t, n = e.state, r = e.name, o = e.options, s = n.elements.arrow, a = n.modifiersData.popperOffsets, i = be(n.placement), c = gr(i), l = [te, ue].indexOf(i) >= 0, u = l ? "height" : "width";
  if (!(!s || !a)) {
    var p = Mc(o.padding, n), v = vr(s), b = c === "y" ? ee : te, f = c === "y" ? ce : ue, d = n.rects.reference[u] + n.rects.reference[c] - a[c] - n.rects.popper[u], h = a[c] - n.rects.reference[c], m = Nt(s), w = m ? c === "y" ? m.clientHeight || 0 : m.clientWidth || 0 : 0, O = d / 2 - h / 2, S = p[b], C = w - v[u] - p[f], R = w / 2 - v[u] / 2 + O, T = Et(S, R, C), _ = c;
    n.modifiersData[r] = (t = {}, t[_] = T, t.centerOffset = T - R, t);
  }
}
function jc(e) {
  var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
  o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || !ws(t.elements.popper, o) || (t.elements.arrow = o));
}
var Uc = { name: "arrow", enabled: !0, phase: "main", fn: Dc, effect: jc, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
function at(e) {
  return e.split("-")[1];
}
var Hc = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function zc(e) {
  var t = e.x, n = e.y, r = window, o = r.devicePixelRatio || 1;
  return { x: ot(t * o) / o || 0, y: ot(n * o) / o || 0 };
}
function ao(e) {
  var t, n = e.popper, r = e.popperRect, o = e.placement, s = e.variation, a = e.offsets, i = e.position, c = e.gpuAcceleration, l = e.adaptive, u = e.roundOffsets, p = e.isFixed, v = a.x, b = v === void 0 ? 0 : v, f = a.y, d = f === void 0 ? 0 : f, h = typeof u == "function" ? u({ x: b, y: d }) : { x: b, y: d };
  b = h.x, d = h.y;
  var m = a.hasOwnProperty("x"), w = a.hasOwnProperty("y"), O = te, S = ee, C = window;
  if (l) {
    var R = Nt(n), T = "clientHeight", _ = "clientWidth";
    if (R === pe(n) && (R = Fe(n), _e(R).position !== "static" && i === "absolute" && (T = "scrollHeight", _ = "scrollWidth")), R = R, o === ee || (o === te || o === ue) && s === Tt) {
      S = ce;
      var N = p && R === C && C.visualViewport ? C.visualViewport.height : R[T];
      d -= N - r.height, d *= c ? 1 : -1;
    }
    if (o === te || (o === ee || o === ce) && s === Tt) {
      O = ue;
      var F = p && R === C && C.visualViewport ? C.visualViewport.width : R[_];
      b -= F - r.width, b *= c ? 1 : -1;
    }
  }
  var L = Object.assign({ position: i }, l && Hc), M = u === !0 ? zc({ x: b, y: d }) : { x: b, y: d };
  if (b = M.x, d = M.y, c) {
    var D;
    return Object.assign({}, L, (D = {}, D[S] = w ? "0" : "", D[O] = m ? "0" : "", D.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + b + "px, " + d + "px)" : "translate3d(" + b + "px, " + d + "px, 0)", D));
  }
  return Object.assign({}, L, (t = {}, t[S] = w ? d + "px" : "", t[O] = m ? b + "px" : "", t.transform = "", t));
}
function Vc(e) {
  var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, s = n.adaptive, a = s === void 0 ? !0 : s, i = n.roundOffsets, c = i === void 0 ? !0 : i, l = { placement: be(t.placement), variation: at(t.placement), popper: t.elements.popper, popperRect: t.rects.popper, gpuAcceleration: o, isFixed: t.options.strategy === "fixed" };
  t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ao(Object.assign({}, l, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: a, roundOffsets: c })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ao(Object.assign({}, l, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: c })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
}
var _s = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: Vc, data: {} }, Ut = { passive: !0 };
function qc(e) {
  var t = e.state, n = e.instance, r = e.options, o = r.scroll, s = o === void 0 ? !0 : o, a = r.resize, i = a === void 0 ? !0 : a, c = pe(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
  return s && l.forEach(function(u) {
    u.addEventListener("scroll", n.update, Ut);
  }), i && c.addEventListener("resize", n.update, Ut), function() {
    s && l.forEach(function(u) {
      u.removeEventListener("scroll", n.update, Ut);
    }), i && c.removeEventListener("resize", n.update, Ut);
  };
}
var Ts = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
}, effect: qc, data: {} }, Kc = { left: "right", right: "left", bottom: "top", top: "bottom" };
function Gt(e) {
  return e.replace(/left|right|bottom|top/g, function(t) {
    return Kc[t];
  });
}
var Wc = { start: "end", end: "start" };
function io(e) {
  return e.replace(/start|end/g, function(t) {
    return Wc[t];
  });
}
function br(e) {
  var t = pe(e), n = t.pageXOffset, r = t.pageYOffset;
  return { scrollLeft: n, scrollTop: r };
}
function yr(e) {
  return st(Fe(e)).left + br(e).scrollLeft;
}
function Jc(e) {
  var t = pe(e), n = Fe(e), r = t.visualViewport, o = n.clientWidth, s = n.clientHeight, a = 0, i = 0;
  return r && (o = r.width, s = r.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (a = r.offsetLeft, i = r.offsetTop)), { width: o, height: s, x: a + yr(e), y: i };
}
function Gc(e) {
  var t, n = Fe(e), r = br(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ve(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = Ve(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), i = -r.scrollLeft + yr(e), c = -r.scrollTop;
  return _e(o || n).direction === "rtl" && (i += Ve(n.clientWidth, o ? o.clientWidth : 0) - s), { width: s, height: a, x: i, y: c };
}
function wr(e) {
  var t = _e(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
  return /auto|scroll|overlay|hidden/.test(n + o + r);
}
function Cs(e) {
  return ["html", "body", "#document"].indexOf(we(e)) >= 0 ? e.ownerDocument.body : le(e) && wr(e) ? e : Cs(yn(e));
}
function St(e, t) {
  var n;
  t === void 0 && (t = []);
  var r = Cs(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), s = pe(r), a = o ? [s].concat(s.visualViewport || [], wr(r) ? r : []) : r, i = t.concat(a);
  return o ? i : i.concat(St(yn(a)));
}
function Kn(e) {
  return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height });
}
function Zc(e) {
  var t = st(e);
  return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
}
function lo(e, t) {
  return t === bs ? Kn(Jc(e)) : rt(t) ? Zc(t) : Kn(Gc(Fe(e)));
}
function Xc(e) {
  var t = St(yn(e)), n = ["absolute", "fixed"].indexOf(_e(e).position) >= 0, r = n && le(e) ? Nt(e) : e;
  return rt(r) ? t.filter(function(o) {
    return rt(o) && ws(o, r) && we(o) !== "body";
  }) : [];
}
function Yc(e, t, n) {
  var r = t === "clippingParents" ? Xc(e) : [].concat(t), o = [].concat(r, [n]), s = o[0], a = o.reduce(function(i, c) {
    var l = lo(e, c);
    return i.top = Ve(l.top, i.top), i.right = cn(l.right, i.right), i.bottom = cn(l.bottom, i.bottom), i.left = Ve(l.left, i.left), i;
  }, lo(e, s));
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
}
function xs(e) {
  var t = e.reference, n = e.element, r = e.placement, o = r ? be(r) : null, s = r ? at(r) : null, a = t.x + t.width / 2 - n.width / 2, i = t.y + t.height / 2 - n.height / 2, c;
  switch (o) {
    case ee:
      c = { x: a, y: t.y - n.height };
      break;
    case ce:
      c = { x: a, y: t.y + t.height };
      break;
    case ue:
      c = { x: t.x + t.width, y: i };
      break;
    case te:
      c = { x: t.x - n.width, y: i };
      break;
    default:
      c = { x: t.x, y: t.y };
  }
  var l = o ? gr(o) : null;
  if (l != null) {
    var u = l === "y" ? "height" : "width";
    switch (s) {
      case nt:
        c[l] = c[l] - (t[u] / 2 - n[u] / 2);
        break;
      case Tt:
        c[l] = c[l] + (t[u] / 2 - n[u] / 2);
        break;
    }
  }
  return c;
}
function Ct(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, o = r === void 0 ? e.placement : r, s = n.boundary, a = s === void 0 ? Ec : s, i = n.rootBoundary, c = i === void 0 ? bs : i, l = n.elementContext, u = l === void 0 ? gt : l, p = n.altBoundary, v = p === void 0 ? !1 : p, b = n.padding, f = b === void 0 ? 0 : b, d = Ss(typeof f != "number" ? f : Os(f, kt)), h = u === gt ? Sc : gt, m = e.rects.popper, w = e.elements[v ? h : u], O = Yc(rt(w) ? w : w.contextElement || Fe(e.elements.popper), a, c), S = st(e.elements.reference), C = xs({ reference: S, element: m, strategy: "absolute", placement: o }), R = Kn(Object.assign({}, m, C)), T = u === gt ? R : S, _ = { top: O.top - T.top + d.top, bottom: T.bottom - O.bottom + d.bottom, left: O.left - T.left + d.left, right: T.right - O.right + d.right }, N = e.modifiersData.offset;
  if (u === gt && N) {
    var F = N[o];
    Object.keys(_).forEach(function(L) {
      var M = [ue, ce].indexOf(L) >= 0 ? 1 : -1, D = [ee, ce].indexOf(L) >= 0 ? "y" : "x";
      _[L] += F[D] * M;
    });
  }
  return _;
}
function Qc(e, t) {
  t === void 0 && (t = {});
  var n = t, r = n.placement, o = n.boundary, s = n.rootBoundary, a = n.padding, i = n.flipVariations, c = n.allowedAutoPlacements, l = c === void 0 ? hr : c, u = at(r), p = u ? i ? oo : oo.filter(function(f) {
    return at(f) === u;
  }) : kt, v = p.filter(function(f) {
    return l.indexOf(f) >= 0;
  });
  v.length === 0 && (v = p);
  var b = v.reduce(function(f, d) {
    return f[d] = Ct(e, { placement: d, boundary: o, rootBoundary: s, padding: a })[be(d)], f;
  }, {});
  return Object.keys(b).sort(function(f, d) {
    return b[f] - b[d];
  });
}
function eu(e) {
  if (be(e) === pr) return [];
  var t = Gt(e);
  return [io(e), t, io(t)];
}
function tu(e) {
  var t = e.state, n = e.options, r = e.name;
  if (!t.modifiersData[r]._skip) {
    for (var o = n.mainAxis, s = o === void 0 ? !0 : o, a = n.altAxis, i = a === void 0 ? !0 : a, c = n.fallbackPlacements, l = n.padding, u = n.boundary, p = n.rootBoundary, v = n.altBoundary, b = n.flipVariations, f = b === void 0 ? !0 : b, d = n.allowedAutoPlacements, h = t.options.placement, m = be(h), w = m === h, O = c || (w || !f ? [Gt(h)] : eu(h)), S = [h].concat(O).reduce(function(Le, Ee) {
      return Le.concat(be(Ee) === pr ? Qc(t, { placement: Ee, boundary: u, rootBoundary: p, padding: l, flipVariations: f, allowedAutoPlacements: d }) : Ee);
    }, []), C = t.rects.reference, R = t.rects.popper, T = /* @__PURE__ */ new Map(), _ = !0, N = S[0], F = 0; F < S.length; F++) {
      var L = S[F], M = be(L), D = at(L) === nt, me = [ee, ce].indexOf(M) >= 0, J = me ? "width" : "height", x = Ct(t, { placement: L, boundary: u, rootBoundary: p, altBoundary: v, padding: l }), j = me ? D ? ue : te : D ? ce : ee;
      C[J] > R[J] && (j = Gt(j));
      var $e = Gt(j), ve = [];
      if (s && ve.push(x[M] <= 0), i && ve.push(x[j] <= 0, x[$e] <= 0), ve.every(function(Le) {
        return Le;
      })) {
        N = L, _ = !1;
        break;
      }
      T.set(L, ve);
    }
    if (_) for (var Bt = f ? 3 : 1, Rn = function(Le) {
      var Ee = S.find(function(Dt) {
        var pt = T.get(Dt);
        if (pt) return pt.slice(0, Le).every(function(Xe) {
          return Xe;
        });
      });
      if (Ee) return N = Ee, "break";
    }, dt = Bt; dt > 0; dt--) {
      var Mt = Rn(dt);
      if (Mt === "break") break;
    }
    t.placement !== N && (t.modifiersData[r]._skip = !0, t.placement = N, t.reset = !0);
  }
}
var nu = { name: "flip", enabled: !0, phase: "main", fn: tu, requiresIfExists: ["offset"], data: { _skip: !1 } };
function co(e, t, n) {
  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 };
}
function uo(e) {
  return [ee, ue, ce, te].some(function(t) {
    return e[t] >= 0;
  });
}
function ru(e) {
  var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, a = Ct(t, { elementContext: "reference" }), i = Ct(t, { altBoundary: !0 }), c = co(a, r), l = co(i, o, s), u = uo(c), p = uo(l);
  t.modifiersData[n] = { referenceClippingOffsets: c, popperEscapeOffsets: l, isReferenceHidden: u, hasPopperEscaped: p }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": u, "data-popper-escaped": p });
}
var ou = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: ru };
function su(e, t, n) {
  var r = be(e), o = [te, ee].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, { placement: e })) : n, a = s[0], i = s[1];
  return a = a || 0, i = (i || 0) * o, [te, ue].indexOf(r) >= 0 ? { x: i, y: a } : { x: a, y: i };
}
function au(e) {
  var t = e.state, n = e.options, r = e.name, o = n.offset, s = o === void 0 ? [0, 0] : o, a = hr.reduce(function(u, p) {
    return u[p] = su(p, t.rects, s), u;
  }, {}), i = a[t.placement], c = i.x, l = i.y;
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += l), t.modifiersData[r] = a;
}
var iu = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: au };
function lu(e) {
  var t = e.state, n = e.name;
  t.modifiersData[n] = xs({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
}
var Rs = { name: "popperOffsets", enabled: !0, phase: "read", fn: lu, data: {} };
function cu(e) {
  return e === "x" ? "y" : "x";
}
function uu(e) {
  var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = o === void 0 ? !0 : o, a = n.altAxis, i = a === void 0 ? !1 : a, c = n.boundary, l = n.rootBoundary, u = n.altBoundary, p = n.padding, v = n.tether, b = v === void 0 ? !0 : v, f = n.tetherOffset, d = f === void 0 ? 0 : f, h = Ct(t, { boundary: c, rootBoundary: l, padding: p, altBoundary: u }), m = be(t.placement), w = at(t.placement), O = !w, S = gr(m), C = cu(S), R = t.modifiersData.popperOffsets, T = t.rects.reference, _ = t.rects.popper, N = typeof d == "function" ? d(Object.assign({}, t.rects, { placement: t.placement })) : d, F = typeof N == "number" ? { mainAxis: N, altAxis: N } : Object.assign({ mainAxis: 0, altAxis: 0 }, N), L = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = { x: 0, y: 0 };
  if (R) {
    if (s) {
      var D, me = S === "y" ? ee : te, J = S === "y" ? ce : ue, x = S === "y" ? "height" : "width", j = R[S], $e = j + h[me], ve = j - h[J], Bt = b ? -_[x] / 2 : 0, Rn = w === nt ? T[x] : _[x], dt = w === nt ? -_[x] : -T[x], Mt = t.elements.arrow, Le = b && Mt ? vr(Mt) : { width: 0, height: 0 }, Ee = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Es(), Dt = Ee[me], pt = Ee[J], Xe = Et(0, T[x], Le[x]), ya = O ? T[x] / 2 - Bt - Xe - Dt - F.mainAxis : Rn - Xe - Dt - F.mainAxis, wa = O ? -T[x] / 2 + Bt + Xe + pt + F.mainAxis : dt + Xe + pt + F.mainAxis, An = t.elements.arrow && Nt(t.elements.arrow), Ea = An ? S === "y" ? An.clientTop || 0 : An.clientLeft || 0 : 0, Nr = (D = L == null ? void 0 : L[S]) != null ? D : 0, Sa = j + ya - Nr - Ea, Oa = j + wa - Nr, Ir = Et(b ? cn($e, Sa) : $e, j, b ? Ve(ve, Oa) : ve);
      R[S] = Ir, M[S] = Ir - j;
    }
    if (i) {
      var Fr, _a = S === "x" ? ee : te, Ta = S === "x" ? ce : ue, Be = R[C], jt = C === "y" ? "height" : "width", $r = Be + h[_a], Lr = Be - h[Ta], Pn = [ee, te].indexOf(m) !== -1, Br = (Fr = L == null ? void 0 : L[C]) != null ? Fr : 0, Mr = Pn ? $r : Be - T[jt] - _[jt] - Br + F.altAxis, Dr = Pn ? Be + T[jt] + _[jt] - Br - F.altAxis : Lr, jr = b && Pn ? Bc(Mr, Be, Dr) : Et(b ? Mr : $r, Be, b ? Dr : Lr);
      R[C] = jr, M[C] = jr - Be;
    }
    t.modifiersData[r] = M;
  }
}
var fu = { name: "preventOverflow", enabled: !0, phase: "main", fn: uu, requiresIfExists: ["offset"] };
function du(e) {
  return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop };
}
function pu(e) {
  return e === pe(e) || !le(e) ? br(e) : du(e);
}
function hu(e) {
  var t = e.getBoundingClientRect(), n = ot(t.width) / e.offsetWidth || 1, r = ot(t.height) / e.offsetHeight || 1;
  return n !== 1 || r !== 1;
}
function mu(e, t, n) {
  n === void 0 && (n = !1);
  var r = le(t), o = le(t) && hu(t), s = Fe(t), a = st(e, o), i = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 };
  return (r || !r && !n) && ((we(t) !== "body" || wr(s)) && (i = pu(t)), le(t) ? (c = st(t, !0), c.x += t.clientLeft, c.y += t.clientTop) : s && (c.x = yr(s))), { x: a.left + i.scrollLeft - c.x, y: a.top + i.scrollTop - c.y, width: a.width, height: a.height };
}
function vu(e) {
  var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
  e.forEach(function(s) {
    t.set(s.name, s);
  });
  function o(s) {
    n.add(s.name);
    var a = [].concat(s.requires || [], s.requiresIfExists || []);
    a.forEach(function(i) {
      if (!n.has(i)) {
        var c = t.get(i);
        c && o(c);
      }
    }), r.push(s);
  }
  return e.forEach(function(s) {
    n.has(s.name) || o(s);
  }), r;
}
function gu(e) {
  var t = vu(e);
  return Nc.reduce(function(n, r) {
    return n.concat(t.filter(function(o) {
      return o.phase === r;
    }));
  }, []);
}
function bu(e) {
  var t;
  return function() {
    return t || (t = new Promise(function(n) {
      Promise.resolve().then(function() {
        t = void 0, n(e());
      });
    })), t;
  };
}
function yu(e) {
  var t = e.reduce(function(n, r) {
    var o = n[r.name];
    return n[r.name] = o ? Object.assign({}, o, r, { options: Object.assign({}, o.options, r.options), data: Object.assign({}, o.data, r.data) }) : r, n;
  }, {});
  return Object.keys(t).map(function(n) {
    return t[n];
  });
}
var fo = { placement: "bottom", modifiers: [], strategy: "absolute" };
function po() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n];
  return !t.some(function(r) {
    return !(r && typeof r.getBoundingClientRect == "function");
  });
}
function Er(e) {
  e === void 0 && (e = {});
  var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, s = o === void 0 ? fo : o;
  return function(a, i, c) {
    c === void 0 && (c = s);
    var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, fo, s), modifiersData: {}, elements: { reference: a, popper: i }, attributes: {}, styles: {} }, u = [], p = !1, v = { state: l, setOptions: function(d) {
      var h = typeof d == "function" ? d(l.options) : d;
      f(), l.options = Object.assign({}, s, l.options, h), l.scrollParents = { reference: rt(a) ? St(a) : a.contextElement ? St(a.contextElement) : [], popper: St(i) };
      var m = gu(yu([].concat(r, l.options.modifiers)));
      return l.orderedModifiers = m.filter(function(w) {
        return w.enabled;
      }), b(), v.update();
    }, forceUpdate: function() {
      if (!p) {
        var d = l.elements, h = d.reference, m = d.popper;
        if (po(h, m)) {
          l.rects = { reference: mu(h, Nt(m), l.options.strategy === "fixed"), popper: vr(m) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(_) {
            return l.modifiersData[_.name] = Object.assign({}, _.data);
          });
          for (var w = 0; w < l.orderedModifiers.length; w++) {
            if (l.reset === !0) {
              l.reset = !1, w = -1;
              continue;
            }
            var O = l.orderedModifiers[w], S = O.fn, C = O.options, R = C === void 0 ? {} : C, T = O.name;
            typeof S == "function" && (l = S({ state: l, options: R, name: T, instance: v }) || l);
          }
        }
      }
    }, update: bu(function() {
      return new Promise(function(d) {
        v.forceUpdate(), d(l);
      });
    }), destroy: function() {
      f(), p = !0;
    } };
    if (!po(a, i)) return v;
    v.setOptions(c).then(function(d) {
      !p && c.onFirstUpdate && c.onFirstUpdate(d);
    });
    function b() {
      l.orderedModifiers.forEach(function(d) {
        var h = d.name, m = d.options, w = m === void 0 ? {} : m, O = d.effect;
        if (typeof O == "function") {
          var S = O({ state: l, name: h, instance: v, options: w }), C = function() {
          };
          u.push(S || C);
        }
      });
    }
    function f() {
      u.forEach(function(d) {
        return d();
      }), u = [];
    }
    return v;
  };
}
Er();
var wu = [Ts, Rs, _s, ys];
Er({ defaultModifiers: wu });
var Eu = [Ts, Rs, _s, ys, iu, nu, fu, Uc, ou], Su = Er({ defaultModifiers: Eu });
const Ou = (e, t, n = {}) => {
  const r = {
    name: "updateState",
    enabled: !0,
    phase: "write",
    fn: ({ state: c }) => {
      const l = _u(c);
      Object.assign(a.value, l);
    },
    requires: ["computeStyles"]
  }, o = E(() => {
    const { onFirstUpdate: c, placement: l, strategy: u, modifiers: p } = y(n);
    return {
      onFirstUpdate: c,
      placement: l || "bottom",
      strategy: u || "absolute",
      modifiers: [
        ...p || [],
        r,
        { name: "applyStyles", enabled: !1 }
      ]
    };
  }), s = Aa(), a = A({
    styles: {
      popper: {
        position: y(o).strategy,
        left: "0",
        top: "0"
      },
      arrow: {
        position: "absolute"
      }
    },
    attributes: {}
  }), i = () => {
    s.value && (s.value.destroy(), s.value = void 0);
  };
  return U(o, (c) => {
    const l = y(s);
    l && l.setOptions(c);
  }, {
    deep: !0
  }), U([e, t], ([c, l]) => {
    i(), !(!c || !l) && (s.value = Su(c, l, y(o)));
  }), Te(() => {
    i();
  }), {
    state: E(() => {
      var c;
      return { ...((c = y(s)) == null ? void 0 : c.state) || {} };
    }),
    styles: E(() => y(a).styles),
    attributes: E(() => y(a).attributes),
    update: () => {
      var c;
      return (c = y(s)) == null ? void 0 : c.update();
    },
    forceUpdate: () => {
      var c;
      return (c = y(s)) == null ? void 0 : c.forceUpdate();
    },
    instanceRef: E(() => y(s))
  };
};
function _u(e) {
  const t = Object.keys(e.elements), n = Vn(t.map((o) => [o, e.styles[o] || {}])), r = Vn(t.map((o) => [o, e.attributes[o]]));
  return {
    styles: n,
    attributes: r
  };
}
function ho() {
  let e;
  const t = (r, o) => {
    n(), e = window.setTimeout(r, o);
  }, n = () => window.clearTimeout(e);
  return ns(() => n()), {
    registerTimeout: t,
    cancelTimeout: n
  };
}
const Wn = {
  prefix: Math.floor(Math.random() * 1e4),
  current: 0
}, Tu = Symbol("elIdInjection"), As = () => Pe() ? H(Tu, Wn) : Wn, Cu = (e) => {
  const t = As();
  !ae && t === Wn && We("IdInjection", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
usage: app.provide(ID_INJECTION_KEY, {
  prefix: number,
  current: number,
})`);
  const n = dr();
  return E(() => y(e) || `${n.value}-id-${t.prefix}-${t.current++}`);
};
let Qe = [];
const mo = (e) => {
  const t = e;
  t.key === ln.esc && Qe.forEach((n) => n(t));
}, xu = (e) => {
  Ie(() => {
    Qe.length === 0 && document.addEventListener("keydown", mo), ae && Qe.push(e);
  }), Te(() => {
    Qe = Qe.filter((t) => t !== e), Qe.length === 0 && ae && document.removeEventListener("keydown", mo);
  });
};
let vo;
const Ps = () => {
  const e = dr(), t = As(), n = E(() => `${e.value}-popper-container-${t.prefix}`), r = E(() => `#${n.value}`);
  return {
    id: n,
    selector: r
  };
}, Ru = (e) => {
  const t = document.createElement("div");
  return t.id = e, document.body.appendChild(t), t;
}, Au = () => {
  const { id: e, selector: t } = Ps();
  return Pa(() => {
    ae && (process.env.NODE_ENV === "test" || !vo || !document.body.querySelector(t.value)) && (vo = Ru(e.value));
  }), {
    id: e,
    selector: t
  };
}, Pu = q({
  showAfter: {
    type: Number,
    default: 0
  },
  hideAfter: {
    type: Number,
    default: 200
  },
  autoClose: {
    type: Number,
    default: 0
  }
}), ku = ({
  showAfter: e,
  hideAfter: t,
  autoClose: n,
  open: r,
  close: o
}) => {
  const { registerTimeout: s } = ho(), {
    registerTimeout: a,
    cancelTimeout: i
  } = ho();
  return {
    onOpen: (u) => {
      s(() => {
        r(u);
        const p = y(n);
        _t(p) && p > 0 && a(() => {
          o(u);
        }, p);
      }, y(e));
    },
    onClose: (u) => {
      i(), s(() => {
        o(u);
      }, y(t));
    }
  };
}, ks = Symbol("elForwardRef"), Nu = (e) => {
  ye(ks, {
    setForwardRef: (n) => {
      e.value = n;
    }
  });
}, Iu = (e) => ({
  mounted(t) {
    e(t);
  },
  updated(t) {
    e(t);
  },
  unmounted() {
    e(null);
  }
}), go = {
  current: 0
}, bo = A(0), Ns = 2e3, yo = Symbol("elZIndexContextKey"), Is = Symbol("zIndexContextKey"), Fs = (e) => {
  const t = Pe() ? H(yo, go) : go, n = e || (Pe() ? H(Is, void 0) : void 0), r = E(() => {
    const a = y(n);
    return _t(a) ? a : Ns;
  }), o = E(() => r.value + bo.value), s = () => (t.current++, bo.value = t.current, o.value);
  return !ae && !H(yo) && We("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
    initialZIndex: r,
    currentZIndex: o,
    nextZIndex: s
  };
}, Fu = bn({
  type: String,
  values: uc,
  required: !1
}), $s = Symbol("size"), $u = () => {
  const e = H($s, {});
  return E(() => y(e.size) || "");
}, Lu = Symbol("emptyValuesContextKey");
q({
  emptyValues: Array,
  valueOnClear: {
    type: [String, Number, Boolean, Function],
    default: void 0,
    validator: (e) => yt(e) ? !e() : !e
  }
});
const Bu = q({
  ariaLabel: String,
  ariaOrientation: {
    type: String,
    values: ["horizontal", "vertical", "undefined"]
  },
  ariaControls: String
}), Ls = (e) => ec(Bu, e), Bs = Symbol(), un = A();
function Sr(e, t = void 0) {
  const n = Pe() ? H(Bs, un) : un;
  return e ? E(() => {
    var r, o;
    return (o = (r = n.value) == null ? void 0 : r[e]) != null ? o : t;
  }) : n;
}
function Mu(e, t) {
  const n = Sr(), r = fe(e, E(() => {
    var i;
    return ((i = n.value) == null ? void 0 : i.namespace) || Jt;
  })), o = vc(E(() => {
    var i;
    return (i = n.value) == null ? void 0 : i.locale;
  })), s = Fs(E(() => {
    var i;
    return ((i = n.value) == null ? void 0 : i.zIndex) || Ns;
  })), a = E(() => {
    var i;
    return y(t) || ((i = n.value) == null ? void 0 : i.size) || "";
  });
  return Du(E(() => y(n) || {})), {
    ns: r,
    locale: o,
    zIndex: s,
    size: a
  };
}
const Du = (e, t, n = !1) => {
  var r;
  const o = !!Pe(), s = o ? Sr() : void 0, a = (r = void 0) != null ? r : o ? ye : void 0;
  if (!a) {
    We("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
    return;
  }
  const i = E(() => {
    const c = y(e);
    return s != null && s.value ? ju(s.value, c) : c;
  });
  return a(Bs, i), a(ms, E(() => i.value.locale)), a(vs, E(() => i.value.namespace)), a(Is, E(() => i.value.zIndex)), a($s, {
    size: E(() => i.value.size || "")
  }), a(Lu, E(() => ({
    emptyValues: i.value.emptyValues,
    valueOnClear: i.value.valueOnClear
  }))), (n || !un.value) && (un.value = i.value), i;
}, ju = (e, t) => {
  const n = [.../* @__PURE__ */ new Set([...no(e), ...no(t)])], r = {};
  for (const o of n)
    r[o] = t[o] !== void 0 ? t[o] : e[o];
  return r;
};
var X = (e, t) => {
  const n = e.__vccOpts || e;
  for (const [r, o] of t)
    n[r] = o;
  return n;
};
const Uu = q({
  size: {
    type: I([Number, String])
  },
  color: {
    type: String
  }
}), Hu = $({
  name: "ElIcon",
  inheritAttrs: !1
}), zu = /* @__PURE__ */ $({
  ...Hu,
  props: Uu,
  setup(e) {
    const t = e, n = fe("icon"), r = E(() => {
      const { size: o, color: s } = t;
      return !o && !s ? {} : {
        fontSize: tc(o) ? void 0 : ps(o),
        "--color": s
      };
    });
    return (o, s) => (P(), B("i", it({
      class: y(n).b(),
      style: y(r)
    }, o.$attrs), [
      z(o.$slots, "default")
    ], 16));
  }
});
var Vu = /* @__PURE__ */ X(zu, [["__file", "icon.vue"]]);
const wo = Ze(Vu), Or = Symbol("formContextKey"), fn = Symbol("formItemContextKey"), qu = (e, t = {}) => {
  const n = A(void 0), r = t.prop ? n : gs("size"), o = t.global ? n : $u(), s = t.form ? { size: void 0 } : H(Or, void 0), a = t.formItem ? { size: void 0 } : H(fn, void 0);
  return E(() => r.value || y(e) || (a == null ? void 0 : a.size) || (s == null ? void 0 : s.size) || o.value || "");
}, Ms = (e) => {
  const t = gs("disabled"), n = H(Or, void 0);
  return E(() => t.value || y(e) || (n == null ? void 0 : n.disabled) || !1);
}, Ku = () => {
  const e = H(Or, void 0), t = H(fn, void 0);
  return {
    form: e,
    formItem: t
  };
}, _r = Symbol("popper"), Ds = Symbol("popperContent"), Wu = [
  "dialog",
  "grid",
  "group",
  "listbox",
  "menu",
  "navigation",
  "tooltip",
  "tree"
], js = q({
  role: {
    type: String,
    values: Wu,
    default: "tooltip"
  }
}), Ju = $({
  name: "ElPopper",
  inheritAttrs: !1
}), Gu = /* @__PURE__ */ $({
  ...Ju,
  props: js,
  setup(e, { expose: t }) {
    const n = e, r = A(), o = A(), s = A(), a = A(), i = E(() => n.role), c = {
      triggerRef: r,
      popperInstanceRef: o,
      contentRef: s,
      referenceRef: a,
      role: i
    };
    return t(c), ye(_r, c), (l, u) => z(l.$slots, "default");
  }
});
var Zu = /* @__PURE__ */ X(Gu, [["__file", "popper.vue"]]);
const Us = q({
  arrowOffset: {
    type: Number,
    default: 5
  }
}), Xu = $({
  name: "ElPopperArrow",
  inheritAttrs: !1
}), Yu = /* @__PURE__ */ $({
  ...Xu,
  props: Us,
  setup(e, { expose: t }) {
    const n = e, r = fe("popper"), { arrowOffset: o, arrowRef: s, arrowStyle: a } = H(Ds, void 0);
    return U(() => n.arrowOffset, (i) => {
      o.value = i;
    }), Te(() => {
      s.value = void 0;
    }), t({
      arrowRef: s
    }), (i, c) => (P(), B("span", {
      ref_key: "arrowRef",
      ref: s,
      class: Q(y(r).e("arrow")),
      style: De(y(a)),
      "data-popper-arrow": ""
    }, null, 6));
  }
});
var Qu = /* @__PURE__ */ X(Yu, [["__file", "arrow.vue"]]);
const Fn = "ElOnlyChild", ef = $({
  name: Fn,
  setup(e, {
    slots: t,
    attrs: n
  }) {
    var r;
    const o = H(ks), s = Iu((r = o == null ? void 0 : o.setForwardRef) != null ? r : rn);
    return () => {
      var a;
      const i = (a = t.default) == null ? void 0 : a.call(t, n);
      if (!i)
        return null;
      if (i.length > 1)
        return We(Fn, "requires exact only one valid child."), null;
      const c = Hs(i);
      return c ? et(ka(c, n), [[s]]) : (We(Fn, "no valid child node found"), null);
    };
  }
});
function Hs(e) {
  if (!e)
    return null;
  const t = e;
  for (const n of t) {
    if (At(n))
      switch (n.type) {
        case Na:
          continue;
        case Xo:
        case "svg":
          return Eo(n);
        case hn:
          return Hs(n.children);
        default:
          return n;
      }
    return Eo(n);
  }
  return null;
}
function Eo(e) {
  const t = fe("only-child");
  return ke("span", {
    class: t.e("content")
  }, [e]);
}
const zs = q({
  virtualRef: {
    type: I(Object)
  },
  virtualTriggering: Boolean,
  onMouseenter: {
    type: I(Function)
  },
  onMouseleave: {
    type: I(Function)
  },
  onClick: {
    type: I(Function)
  },
  onKeydown: {
    type: I(Function)
  },
  onFocus: {
    type: I(Function)
  },
  onBlur: {
    type: I(Function)
  },
  onContextmenu: {
    type: I(Function)
  },
  id: String,
  open: Boolean
}), tf = $({
  name: "ElPopperTrigger",
  inheritAttrs: !1
}), nf = /* @__PURE__ */ $({
  ...tf,
  props: zs,
  setup(e, { expose: t }) {
    const n = e, { role: r, triggerRef: o } = H(_r, void 0);
    Nu(o);
    const s = E(() => i.value ? n.id : void 0), a = E(() => {
      if (r && r.value === "tooltip")
        return n.open && n.id ? n.id : void 0;
    }), i = E(() => {
      if (r && r.value !== "tooltip")
        return r.value;
    }), c = E(() => i.value ? `${n.open}` : void 0);
    let l;
    const u = [
      "onMouseenter",
      "onMouseleave",
      "onClick",
      "onKeydown",
      "onFocus",
      "onBlur",
      "onContextmenu"
    ];
    return Ie(() => {
      U(() => n.virtualRef, (p) => {
        p && (o.value = Ue(p));
      }, {
        immediate: !0
      }), U(o, (p, v) => {
        l == null || l(), l = void 0, wt(p) && (u.forEach((b) => {
          var f;
          const d = n[b];
          d && (p.addEventListener(b.slice(2).toLowerCase(), d), (f = v == null ? void 0 : v.removeEventListener) == null || f.call(v, b.slice(2).toLowerCase(), d));
        }), l = U([s, a, i, c], (b) => {
          [
            "aria-controls",
            "aria-describedby",
            "aria-haspopup",
            "aria-expanded"
          ].forEach((f, d) => {
            ur(b[d]) ? p.removeAttribute(f) : p.setAttribute(f, b[d]);
          });
        }, { immediate: !0 })), wt(v) && [
          "aria-controls",
          "aria-describedby",
          "aria-haspopup",
          "aria-expanded"
        ].forEach((b) => v.removeAttribute(b));
      }, {
        immediate: !0
      });
    }), Te(() => {
      if (l == null || l(), l = void 0, o.value && wt(o.value)) {
        const p = o.value;
        u.forEach((v) => {
          const b = n[v];
          b && p.removeEventListener(v.slice(2).toLowerCase(), b);
        }), o.value = void 0;
      }
    }), t({
      triggerRef: o
    }), (p, v) => p.virtualTriggering ? Y("v-if", !0) : (P(), G(y(ef), it({ key: 0 }, p.$attrs, {
      "aria-controls": y(s),
      "aria-describedby": y(a),
      "aria-expanded": y(c),
      "aria-haspopup": y(i)
    }), {
      default: K(() => [
        z(p.$slots, "default")
      ]),
      _: 3
    }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
  }
});
var rf = /* @__PURE__ */ X(nf, [["__file", "trigger.vue"]]);
const $n = "focus-trap.focus-after-trapped", Ln = "focus-trap.focus-after-released", of = "focus-trap.focusout-prevented", So = {
  cancelable: !0,
  bubbles: !1
}, sf = {
  cancelable: !0,
  bubbles: !1
}, Oo = "focusAfterTrapped", _o = "focusAfterReleased", af = Symbol("elFocusTrap"), Tr = A(), wn = A(0), Cr = A(0);
let Ht = 0;
const Vs = (e) => {
  const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
    acceptNode: (r) => {
      const o = r.tagName === "INPUT" && r.type === "hidden";
      return r.disabled || r.hidden || o ? NodeFilter.FILTER_SKIP : r.tabIndex >= 0 || r === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
    }
  });
  for (; n.nextNode(); )
    t.push(n.currentNode);
  return t;
}, To = (e, t) => {
  for (const n of e)
    if (!lf(n, t))
      return n;
}, lf = (e, t) => {
  if (process.env.NODE_ENV === "test")
    return !1;
  if (getComputedStyle(e).visibility === "hidden")
    return !0;
  for (; e; ) {
    if (t && e === t)
      return !1;
    if (getComputedStyle(e).display === "none")
      return !0;
    e = e.parentElement;
  }
  return !1;
}, cf = (e) => {
  const t = Vs(e), n = To(t, e), r = To(t.reverse(), e);
  return [n, r];
}, uf = (e) => e instanceof HTMLInputElement && "select" in e, xe = (e, t) => {
  if (e && e.focus) {
    const n = document.activeElement;
    e.focus({ preventScroll: !0 }), Cr.value = window.performance.now(), e !== n && uf(e) && t && e.select();
  }
};
function Co(e, t) {
  const n = [...e], r = e.indexOf(t);
  return r !== -1 && n.splice(r, 1), n;
}
const ff = () => {
  let e = [];
  return {
    push: (r) => {
      const o = e[0];
      o && r !== o && o.pause(), e = Co(e, r), e.unshift(r);
    },
    remove: (r) => {
      var o, s;
      e = Co(e, r), (s = (o = e[0]) == null ? void 0 : o.resume) == null || s.call(o);
    }
  };
}, df = (e, t = !1) => {
  const n = document.activeElement;
  for (const r of e)
    if (xe(r, t), document.activeElement !== n)
      return;
}, xo = ff(), pf = () => wn.value > Cr.value, zt = () => {
  Tr.value = "pointer", wn.value = window.performance.now();
}, Ro = () => {
  Tr.value = "keyboard", wn.value = window.performance.now();
}, hf = () => (Ie(() => {
  Ht === 0 && (document.addEventListener("mousedown", zt), document.addEventListener("touchstart", zt), document.addEventListener("keydown", Ro)), Ht++;
}), Te(() => {
  Ht--, Ht <= 0 && (document.removeEventListener("mousedown", zt), document.removeEventListener("touchstart", zt), document.removeEventListener("keydown", Ro));
}), {
  focusReason: Tr,
  lastUserFocusTimestamp: wn,
  lastAutomatedFocusTimestamp: Cr
}), Vt = (e) => new CustomEvent(of, {
  ...sf,
  detail: e
}), mf = $({
  name: "ElFocusTrap",
  inheritAttrs: !1,
  props: {
    loop: Boolean,
    trapped: Boolean,
    focusTrapEl: Object,
    focusStartEl: {
      type: [Object, String],
      default: "first"
    }
  },
  emits: [
    Oo,
    _o,
    "focusin",
    "focusout",
    "focusout-prevented",
    "release-requested"
  ],
  setup(e, { emit: t }) {
    const n = A();
    let r, o;
    const { focusReason: s } = hf();
    xu((f) => {
      e.trapped && !a.paused && t("release-requested", f);
    });
    const a = {
      paused: !1,
      pause() {
        this.paused = !0;
      },
      resume() {
        this.paused = !1;
      }
    }, i = (f) => {
      if (!e.loop && !e.trapped || a.paused)
        return;
      const { key: d, altKey: h, ctrlKey: m, metaKey: w, currentTarget: O, shiftKey: S } = f, { loop: C } = e, R = d === ln.tab && !h && !m && !w, T = document.activeElement;
      if (R && T) {
        const _ = O, [N, F] = cf(_);
        if (N && F) {
          if (!S && T === F) {
            const M = Vt({
              focusReason: s.value
            });
            t("focusout-prevented", M), M.defaultPrevented || (f.preventDefault(), C && xe(N, !0));
          } else if (S && [N, _].includes(T)) {
            const M = Vt({
              focusReason: s.value
            });
            t("focusout-prevented", M), M.defaultPrevented || (f.preventDefault(), C && xe(F, !0));
          }
        } else if (T === _) {
          const M = Vt({
            focusReason: s.value
          });
          t("focusout-prevented", M), M.defaultPrevented || f.preventDefault();
        }
      }
    };
    ye(af, {
      focusTrapRef: n,
      onKeydown: i
    }), U(() => e.focusTrapEl, (f) => {
      f && (n.value = f);
    }, { immediate: !0 }), U([n], ([f], [d]) => {
      f && (f.addEventListener("keydown", i), f.addEventListener("focusin", u), f.addEventListener("focusout", p)), d && (d.removeEventListener("keydown", i), d.removeEventListener("focusin", u), d.removeEventListener("focusout", p));
    });
    const c = (f) => {
      t(Oo, f);
    }, l = (f) => t(_o, f), u = (f) => {
      const d = y(n);
      if (!d)
        return;
      const h = f.target, m = f.relatedTarget, w = h && d.contains(h);
      e.trapped || m && d.contains(m) || (r = m), w && t("focusin", f), !a.paused && e.trapped && (w ? o = h : xe(o, !0));
    }, p = (f) => {
      const d = y(n);
      if (!(a.paused || !d))
        if (e.trapped) {
          const h = f.relatedTarget;
          !ur(h) && !d.contains(h) && setTimeout(() => {
            if (!a.paused && e.trapped) {
              const m = Vt({
                focusReason: s.value
              });
              t("focusout-prevented", m), m.defaultPrevented || xe(o, !0);
            }
          }, 0);
        } else {
          const h = f.target;
          h && d.contains(h) || t("focusout", f);
        }
    };
    async function v() {
      await tt();
      const f = y(n);
      if (f) {
        xo.push(a);
        const d = f.contains(document.activeElement) ? r : document.activeElement;
        if (r = d, !f.contains(d)) {
          const m = new Event($n, So);
          f.addEventListener($n, c), f.dispatchEvent(m), m.defaultPrevented || tt(() => {
            let w = e.focusStartEl;
            lt(w) || (xe(w), document.activeElement !== w && (w = "first")), w === "first" && df(Vs(f), !0), (document.activeElement === d || w === "container") && xe(f);
          });
        }
      }
    }
    function b() {
      const f = y(n);
      if (f) {
        f.removeEventListener($n, c);
        const d = new CustomEvent(Ln, {
          ...So,
          detail: {
            focusReason: s.value
          }
        });
        f.addEventListener(Ln, l), f.dispatchEvent(d), !d.defaultPrevented && (s.value == "keyboard" || !pf() || f.contains(document.activeElement)) && xe(r ?? document.body), f.removeEventListener(Ln, l), xo.remove(a);
      }
    }
    return Ie(() => {
      e.trapped && v(), U(() => e.trapped, (f) => {
        f ? v() : b();
      });
    }), Te(() => {
      e.trapped && b(), n.value && (n.value.removeEventListener("keydown", i), n.value.removeEventListener("focusin", u), n.value.removeEventListener("focusout", p), n.value = void 0);
    }), {
      onKeydown: i
    };
  }
});
function vf(e, t, n, r, o, s) {
  return z(e.$slots, "default", { handleKeydown: e.onKeydown });
}
var gf = /* @__PURE__ */ X(mf, [["render", vf], ["__file", "focus-trap.vue"]]);
const bf = ["fixed", "absolute"], yf = q({
  boundariesPadding: {
    type: Number,
    default: 0
  },
  fallbackPlacements: {
    type: I(Array),
    default: void 0
  },
  gpuAcceleration: {
    type: Boolean,
    default: !0
  },
  offset: {
    type: Number,
    default: 12
  },
  placement: {
    type: String,
    values: hr,
    default: "bottom"
  },
  popperOptions: {
    type: I(Object),
    default: () => ({})
  },
  strategy: {
    type: String,
    values: bf,
    default: "absolute"
  }
}), qs = q({
  ...yf,
  id: String,
  style: {
    type: I([String, Array, Object])
  },
  className: {
    type: I([String, Array, Object])
  },
  effect: {
    type: I(String),
    default: "dark"
  },
  visible: Boolean,
  enterable: {
    type: Boolean,
    default: !0
  },
  pure: Boolean,
  focusOnShow: {
    type: Boolean,
    default: !1
  },
  trapping: {
    type: Boolean,
    default: !1
  },
  popperClass: {
    type: I([String, Array, Object])
  },
  popperStyle: {
    type: I([String, Array, Object])
  },
  referenceEl: {
    type: I(Object)
  },
  triggerTargetEl: {
    type: I(Object)
  },
  stopPopperMouseEvent: {
    type: Boolean,
    default: !0
  },
  virtualTriggering: Boolean,
  zIndex: Number,
  ...Ls(["ariaLabel"])
}), wf = {
  mouseenter: (e) => e instanceof MouseEvent,
  mouseleave: (e) => e instanceof MouseEvent,
  focus: () => !0,
  blur: () => !0,
  close: () => !0
}, Ef = (e, t = []) => {
  const { placement: n, strategy: r, popperOptions: o } = e, s = {
    placement: n,
    strategy: r,
    ...o,
    modifiers: [...Of(e), ...t]
  };
  return _f(s, o == null ? void 0 : o.modifiers), s;
}, Sf = (e) => {
  if (ae)
    return Ue(e);
};
function Of(e) {
  const { offset: t, gpuAcceleration: n, fallbackPlacements: r } = e;
  return [
    {
      name: "offset",
      options: {
        offset: [0, t ?? 12]
      }
    },
    {
      name: "preventOverflow",
      options: {
        padding: {
          top: 2,
          bottom: 2,
          left: 5,
          right: 5
        }
      }
    },
    {
      name: "flip",
      options: {
        padding: 5,
        fallbackPlacements: r
      }
    },
    {
      name: "computeStyles",
      options: {
        gpuAcceleration: n
      }
    }
  ];
}
function _f(e, t) {
  t && (e.modifiers = [...e.modifiers, ...t ?? []]);
}
const Tf = 0, Cf = (e) => {
  const { popperInstanceRef: t, contentRef: n, triggerRef: r, role: o } = H(_r, void 0), s = A(), a = A(), i = E(() => ({
    name: "eventListeners",
    enabled: !!e.visible
  })), c = E(() => {
    var m;
    const w = y(s), O = (m = y(a)) != null ? m : Tf;
    return {
      name: "arrow",
      enabled: !Zl(w),
      options: {
        element: w,
        padding: O
      }
    };
  }), l = E(() => ({
    onFirstUpdate: () => {
      f();
    },
    ...Ef(e, [
      y(c),
      y(i)
    ])
  })), u = E(() => Sf(e.referenceEl) || y(r)), { attributes: p, state: v, styles: b, update: f, forceUpdate: d, instanceRef: h } = Ou(u, n, l);
  return U(h, (m) => t.value = m), Ie(() => {
    U(() => {
      var m;
      return (m = y(u)) == null ? void 0 : m.getBoundingClientRect();
    }, () => {
      f();
    });
  }), {
    attributes: p,
    arrowRef: s,
    contentRef: n,
    instanceRef: h,
    state: v,
    styles: b,
    role: o,
    forceUpdate: d,
    update: f
  };
}, xf = (e, {
  attributes: t,
  styles: n,
  role: r
}) => {
  const { nextZIndex: o } = Fs(), s = fe("popper"), a = E(() => y(t).popper), i = A(_t(e.zIndex) ? e.zIndex : o()), c = E(() => [
    s.b(),
    s.is("pure", e.pure),
    s.is(e.effect),
    e.popperClass
  ]), l = E(() => [
    { zIndex: y(i) },
    y(n).popper,
    e.popperStyle || {}
  ]), u = E(() => r.value === "dialog" ? "false" : void 0), p = E(() => y(n).arrow || {});
  return {
    ariaModal: u,
    arrowStyle: p,
    contentAttrs: a,
    contentClass: c,
    contentStyle: l,
    contentZIndex: i,
    updateZIndex: () => {
      i.value = _t(e.zIndex) ? e.zIndex : o();
    }
  };
}, Rf = (e, t) => {
  const n = A(!1), r = A();
  return {
    focusStartRef: r,
    trapped: n,
    onFocusAfterReleased: (l) => {
      var u;
      ((u = l.detail) == null ? void 0 : u.focusReason) !== "pointer" && (r.value = "first", t("blur"));
    },
    onFocusAfterTrapped: () => {
      t("focus");
    },
    onFocusInTrap: (l) => {
      e.visible && !n.value && (l.target && (r.value = l.target), n.value = !0);
    },
    onFocusoutPrevented: (l) => {
      e.trapping || (l.detail.focusReason === "pointer" && l.preventDefault(), n.value = !1);
    },
    onReleaseRequested: () => {
      n.value = !1, t("close");
    }
  };
}, Af = $({
  name: "ElPopperContent"
}), Pf = /* @__PURE__ */ $({
  ...Af,
  props: qs,
  emits: wf,
  setup(e, { expose: t, emit: n }) {
    const r = e, {
      focusStartRef: o,
      trapped: s,
      onFocusAfterReleased: a,
      onFocusAfterTrapped: i,
      onFocusInTrap: c,
      onFocusoutPrevented: l,
      onReleaseRequested: u
    } = Rf(r, n), { attributes: p, arrowRef: v, contentRef: b, styles: f, instanceRef: d, role: h, update: m } = Cf(r), {
      ariaModal: w,
      arrowStyle: O,
      contentAttrs: S,
      contentClass: C,
      contentStyle: R,
      updateZIndex: T
    } = xf(r, {
      styles: f,
      attributes: p,
      role: h
    }), _ = H(fn, void 0), N = A();
    ye(Ds, {
      arrowStyle: O,
      arrowRef: v,
      arrowOffset: N
    }), _ && ye(fn, {
      ..._,
      addInputId: rn,
      removeInputId: rn
    });
    let F;
    const L = (D = !0) => {
      m(), D && T();
    }, M = () => {
      L(!1), r.visible && r.focusOnShow ? s.value = !0 : r.visible === !1 && (s.value = !1);
    };
    return Ie(() => {
      U(() => r.triggerTargetEl, (D, me) => {
        F == null || F(), F = void 0;
        const J = y(D || b.value), x = y(me || b.value);
        wt(J) && (F = U([h, () => r.ariaLabel, w, () => r.id], (j) => {
          ["role", "aria-label", "aria-modal", "id"].forEach(($e, ve) => {
            ur(j[ve]) ? J.removeAttribute($e) : J.setAttribute($e, j[ve]);
          });
        }, { immediate: !0 })), x !== J && wt(x) && ["role", "aria-label", "aria-modal", "id"].forEach((j) => {
          x.removeAttribute(j);
        });
      }, { immediate: !0 }), U(() => r.visible, M, { immediate: !0 });
    }), Te(() => {
      F == null || F(), F = void 0;
    }), t({
      popperContentRef: b,
      popperInstanceRef: d,
      updatePopper: L,
      contentStyle: R
    }), (D, me) => (P(), B("div", it({
      ref_key: "contentRef",
      ref: b
    }, y(S), {
      style: y(R),
      class: y(C),
      tabindex: "-1",
      onMouseenter: (J) => D.$emit("mouseenter", J),
      onMouseleave: (J) => D.$emit("mouseleave", J)
    }), [
      ke(y(gf), {
        trapped: y(s),
        "trap-on-focus-in": !0,
        "focus-trap-el": y(b),
        "focus-start-el": y(o),
        onFocusAfterTrapped: y(i),
        onFocusAfterReleased: y(a),
        onFocusin: y(c),
        onFocusoutPrevented: y(l),
        onReleaseRequested: y(u)
      }, {
        default: K(() => [
          z(D.$slots, "default")
        ]),
        _: 3
      }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
    ], 16, ["onMouseenter", "onMouseleave"]));
  }
});
var kf = /* @__PURE__ */ X(Pf, [["__file", "content.vue"]]);
const Nf = Ze(Zu), xr = Symbol("elTooltip"), ie = q({
  ...Pu,
  ...qs,
  appendTo: {
    type: I([String, Object])
  },
  content: {
    type: String,
    default: ""
  },
  rawContent: Boolean,
  persistent: Boolean,
  visible: {
    type: I(Boolean),
    default: null
  },
  transition: String,
  teleported: {
    type: Boolean,
    default: !0
  },
  disabled: Boolean,
  ...Ls(["ariaLabel"])
}), xt = q({
  ...zs,
  disabled: Boolean,
  trigger: {
    type: I([String, Array]),
    default: "hover"
  },
  triggerKeys: {
    type: I(Array),
    default: () => [ln.enter, ln.space]
  }
}), {
  useModelToggleProps: If,
  useModelToggleEmits: Ff,
  useModelToggle: $f
} = wc("visible"), Lf = q({
  ...js,
  ...If,
  ...ie,
  ...xt,
  ...Us,
  showArrow: {
    type: Boolean,
    default: !0
  }
}), Bf = [
  ...Ff,
  "before-show",
  "before-hide",
  "show",
  "hide",
  "open",
  "close"
], Mf = (e, t) => ni(e) ? e.includes(t) : e === t, Ye = (e, t, n) => (r) => {
  Mf(y(e), t) && n(r);
}, Df = $({
  name: "ElTooltipTrigger"
}), jf = /* @__PURE__ */ $({
  ...Df,
  props: xt,
  setup(e, { expose: t }) {
    const n = e, r = fe("tooltip"), { controlled: o, id: s, open: a, onOpen: i, onClose: c, onToggle: l } = H(xr, void 0), u = A(null), p = () => {
      if (y(o) || n.disabled)
        return !0;
    }, v = je(n, "trigger"), b = Oe(p, Ye(v, "hover", i)), f = Oe(p, Ye(v, "hover", c)), d = Oe(p, Ye(v, "click", (S) => {
      S.button === 0 && l(S);
    })), h = Oe(p, Ye(v, "focus", i)), m = Oe(p, Ye(v, "focus", c)), w = Oe(p, Ye(v, "contextmenu", (S) => {
      S.preventDefault(), l(S);
    })), O = Oe(p, (S) => {
      const { code: C } = S;
      n.triggerKeys.includes(C) && (S.preventDefault(), l(S));
    });
    return t({
      triggerRef: u
    }), (S, C) => (P(), G(y(rf), {
      id: y(s),
      "virtual-ref": S.virtualRef,
      open: y(a),
      "virtual-triggering": S.virtualTriggering,
      class: Q(y(r).e("trigger")),
      onBlur: y(m),
      onClick: y(d),
      onContextmenu: y(w),
      onFocus: y(h),
      onMouseenter: y(b),
      onMouseleave: y(f),
      onKeydown: y(O)
    }, {
      default: K(() => [
        z(S.$slots, "default")
      ]),
      _: 3
    }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
  }
});
var Uf = /* @__PURE__ */ X(jf, [["__file", "trigger.vue"]]);
const Hf = q({
  to: {
    type: I([String, Object]),
    required: !0
  },
  disabled: Boolean
}), zf = /* @__PURE__ */ $({
  __name: "teleport",
  props: Hf,
  setup(e) {
    return (t, n) => t.disabled ? z(t.$slots, "default", { key: 0 }) : (P(), G(Ia, {
      key: 1,
      to: t.to
    }, [
      z(t.$slots, "default")
    ], 8, ["to"]));
  }
});
var Vf = /* @__PURE__ */ X(zf, [["__file", "teleport.vue"]]);
const qf = Ze(Vf), Kf = $({
  name: "ElTooltipContent",
  inheritAttrs: !1
}), Wf = /* @__PURE__ */ $({
  ...Kf,
  props: ie,
  setup(e, { expose: t }) {
    const n = e, { selector: r } = Ps(), o = fe("tooltip"), s = A(null);
    let a;
    const {
      controlled: i,
      id: c,
      open: l,
      trigger: u,
      onClose: p,
      onOpen: v,
      onShow: b,
      onHide: f,
      onBeforeShow: d,
      onBeforeHide: h
    } = H(xr, void 0), m = E(() => n.transition || `${o.namespace.value}-fade-in-linear`), w = E(() => process.env.NODE_ENV === "test" ? !0 : n.persistent);
    Te(() => {
      a == null || a();
    });
    const O = E(() => y(w) ? !0 : y(l)), S = E(() => n.disabled ? !1 : y(l)), C = E(() => n.appendTo || r.value), R = E(() => {
      var x;
      return (x = n.style) != null ? x : {};
    }), T = A(!0), _ = () => {
      f(), T.value = !0;
    }, N = () => {
      if (y(i))
        return !0;
    }, F = Oe(N, () => {
      n.enterable && y(u) === "hover" && v();
    }), L = Oe(N, () => {
      y(u) === "hover" && p();
    }), M = () => {
      var x, j;
      (j = (x = s.value) == null ? void 0 : x.updatePopper) == null || j.call(x), d == null || d();
    }, D = () => {
      h == null || h();
    }, me = () => {
      b(), a = Ga(E(() => {
        var x;
        return (x = s.value) == null ? void 0 : x.popperContentRef;
      }), () => {
        if (y(i))
          return;
        y(u) !== "hover" && p();
      });
    }, J = () => {
      n.virtualTriggering || p();
    };
    return U(() => y(l), (x) => {
      x ? T.value = !1 : a == null || a();
    }, {
      flush: "post"
    }), U(() => n.content, () => {
      var x, j;
      (j = (x = s.value) == null ? void 0 : x.updatePopper) == null || j.call(x);
    }), t({
      contentRef: s
    }), (x, j) => (P(), G(y(qf), {
      disabled: !x.teleported,
      to: y(C)
    }, {
      default: K(() => [
        ke(Yo, {
          name: y(m),
          onAfterLeave: _,
          onBeforeEnter: M,
          onAfterEnter: me,
          onBeforeLeave: D
        }, {
          default: K(() => [
            y(O) ? et((P(), G(y(kf), it({
              key: 0,
              id: y(c),
              ref_key: "contentRef",
              ref: s
            }, x.$attrs, {
              "aria-label": x.ariaLabel,
              "aria-hidden": T.value,
              "boundaries-padding": x.boundariesPadding,
              "fallback-placements": x.fallbackPlacements,
              "gpu-acceleration": x.gpuAcceleration,
              offset: x.offset,
              placement: x.placement,
              "popper-options": x.popperOptions,
              strategy: x.strategy,
              effect: x.effect,
              enterable: x.enterable,
              pure: x.pure,
              "popper-class": x.popperClass,
              "popper-style": [x.popperStyle, y(R)],
              "reference-el": x.referenceEl,
              "trigger-target-el": x.triggerTargetEl,
              visible: y(S),
              "z-index": x.zIndex,
              onMouseenter: y(F),
              onMouseleave: y(L),
              onBlur: J,
              onClose: y(p)
            }), {
              default: K(() => [
                z(x.$slots, "default")
              ]),
              _: 3
            }, 16, ["id", "aria-label", "aria-hidden", "boundaries-padding", "fallback-placements", "gpu-acceleration", "offset", "placement", "popper-options", "strategy", "effect", "enterable", "pure", "popper-class", "popper-style", "reference-el", "trigger-target-el", "visible", "z-index", "onMouseenter", "onMouseleave", "onClose"])), [
              [en, y(S)]
            ]) : Y("v-if", !0)
          ]),
          _: 3
        }, 8, ["name"])
      ]),
      _: 3
    }, 8, ["disabled", "to"]));
  }
});
var Jf = /* @__PURE__ */ X(Wf, [["__file", "content.vue"]]);
const Gf = $({
  name: "ElTooltip"
}), Zf = /* @__PURE__ */ $({
  ...Gf,
  props: Lf,
  emits: Bf,
  setup(e, { expose: t, emit: n }) {
    const r = e;
    Au();
    const o = Cu(), s = A(), a = A(), i = () => {
      var m;
      const w = y(s);
      w && ((m = w.popperInstanceRef) == null || m.update());
    }, c = A(!1), l = A(), { show: u, hide: p, hasUpdateHandler: v } = $f({
      indicator: c,
      toggleReason: l
    }), { onOpen: b, onClose: f } = ku({
      showAfter: je(r, "showAfter"),
      hideAfter: je(r, "hideAfter"),
      autoClose: je(r, "autoClose"),
      open: u,
      close: p
    }), d = E(() => fr(r.visible) && !v.value);
    ye(xr, {
      controlled: d,
      id: o,
      open: Fa(c),
      trigger: je(r, "trigger"),
      onOpen: (m) => {
        b(m);
      },
      onClose: (m) => {
        f(m);
      },
      onToggle: (m) => {
        y(c) ? f(m) : b(m);
      },
      onShow: () => {
        n("show", l.value);
      },
      onHide: () => {
        n("hide", l.value);
      },
      onBeforeShow: () => {
        n("before-show", l.value);
      },
      onBeforeHide: () => {
        n("before-hide", l.value);
      },
      updatePopper: i
    }), U(() => r.disabled, (m) => {
      m && c.value && (c.value = !1);
    });
    const h = (m) => {
      var w, O;
      const S = (O = (w = a.value) == null ? void 0 : w.contentRef) == null ? void 0 : O.popperContentRef, C = (m == null ? void 0 : m.relatedTarget) || document.activeElement;
      return S && S.contains(C);
    };
    return $a(() => c.value && p()), t({
      popperRef: s,
      contentRef: a,
      isFocusInsideContent: h,
      updatePopper: i,
      onOpen: b,
      onClose: f,
      hide: p
    }), (m, w) => (P(), G(y(Nf), {
      ref_key: "popperRef",
      ref: s,
      role: m.role
    }, {
      default: K(() => [
        ke(Uf, {
          disabled: m.disabled,
          trigger: m.trigger,
          "trigger-keys": m.triggerKeys,
          "virtual-ref": m.virtualRef,
          "virtual-triggering": m.virtualTriggering
        }, {
          default: K(() => [
            m.$slots.default ? z(m.$slots, "default", { key: 0 }) : Y("v-if", !0)
          ]),
          _: 3
        }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
        ke(Jf, {
          ref_key: "contentRef",
          ref: a,
          "aria-label": m.ariaLabel,
          "boundaries-padding": m.boundariesPadding,
          content: m.content,
          disabled: m.disabled,
          effect: m.effect,
          enterable: m.enterable,
          "fallback-placements": m.fallbackPlacements,
          "hide-after": m.hideAfter,
          "gpu-acceleration": m.gpuAcceleration,
          offset: m.offset,
          persistent: m.persistent,
          "popper-class": m.popperClass,
          "popper-style": m.popperStyle,
          placement: m.placement,
          "popper-options": m.popperOptions,
          pure: m.pure,
          "raw-content": m.rawContent,
          "reference-el": m.referenceEl,
          "trigger-target-el": m.triggerTargetEl,
          "show-after": m.showAfter,
          strategy: m.strategy,
          teleported: m.teleported,
          transition: m.transition,
          "virtual-triggering": m.virtualTriggering,
          "z-index": m.zIndex,
          "append-to": m.appendTo
        }, {
          default: K(() => [
            z(m.$slots, "content", {}, () => [
              m.rawContent ? (P(), B("span", {
                key: 0,
                innerHTML: m.content
              }, null, 8, ["innerHTML"])) : (P(), B("span", { key: 1 }, Ae(m.content), 1))
            ]),
            m.showArrow ? (P(), G(y(Qu), {
              key: 0,
              "arrow-offset": m.arrowOffset
            }, null, 8, ["arrow-offset"])) : Y("v-if", !0)
          ]),
          _: 3
        }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"])
      ]),
      _: 3
    }, 8, ["role"]));
  }
});
var Xf = /* @__PURE__ */ X(Zf, [["__file", "tooltip.vue"]]);
const Yf = Ze(Xf), Ks = Symbol("buttonGroupContextKey"), Qf = (e, t) => {
  fc({
    from: "type.text",
    replacement: "link",
    version: "3.0.0",
    scope: "props",
    ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
  }, E(() => e.type === "text"));
  const n = H(Ks, void 0), r = Sr("button"), { form: o } = Ku(), s = qu(E(() => n == null ? void 0 : n.size)), a = Ms(), i = A(), c = La(), l = E(() => e.type || (n == null ? void 0 : n.type) || ""), u = E(() => {
    var f, d, h;
    return (h = (d = e.autoInsertSpace) != null ? d : (f = r.value) == null ? void 0 : f.autoInsertSpace) != null ? h : !1;
  }), p = E(() => e.tag === "button" ? {
    ariaDisabled: a.value || e.loading,
    disabled: a.value || e.loading,
    autofocus: e.autofocus,
    type: e.nativeType
  } : {}), v = E(() => {
    var f;
    const d = (f = c.default) == null ? void 0 : f.call(c);
    if (u.value && (d == null ? void 0 : d.length) === 1) {
      const h = d[0];
      if ((h == null ? void 0 : h.type) === Xo) {
        const m = h.children;
        return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(m.trim());
      }
    }
    return !1;
  });
  return {
    _disabled: a,
    _size: s,
    _type: l,
    _ref: i,
    _props: p,
    shouldAddSpace: v,
    handleClick: (f) => {
      if (a.value || e.loading) {
        f.stopPropagation();
        return;
      }
      e.nativeType === "reset" && (o == null || o.resetFields()), t("click", f);
    }
  };
}, ed = [
  "default",
  "primary",
  "success",
  "warning",
  "info",
  "danger",
  "text",
  ""
], td = ["button", "submit", "reset"], Jn = q({
  size: Fu,
  disabled: Boolean,
  type: {
    type: String,
    values: ed,
    default: ""
  },
  icon: {
    type: qn
  },
  nativeType: {
    type: String,
    values: td,
    default: "button"
  },
  loading: Boolean,
  loadingIcon: {
    type: qn,
    default: () => ac
  },
  plain: Boolean,
  text: Boolean,
  link: Boolean,
  bg: Boolean,
  autofocus: Boolean,
  round: Boolean,
  circle: Boolean,
  color: String,
  dark: Boolean,
  autoInsertSpace: {
    type: Boolean,
    default: void 0
  },
  tag: {
    type: I([String, Object]),
    default: "button"
  }
}), nd = {
  click: (e) => e instanceof MouseEvent
};
function W(e, t) {
  rd(e) && (e = "100%");
  var n = od(e);
  return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e);
}
function qt(e) {
  return Math.min(1, Math.max(0, e));
}
function rd(e) {
  return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
}
function od(e) {
  return typeof e == "string" && e.indexOf("%") !== -1;
}
function Ws(e) {
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
}
function Kt(e) {
  return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
}
function He(e) {
  return e.length === 1 ? "0" + e : String(e);
}
function sd(e, t, n) {
  return {
    r: W(e, 255) * 255,
    g: W(t, 255) * 255,
    b: W(n, 255) * 255
  };
}
function Ao(e, t, n) {
  e = W(e, 255), t = W(t, 255), n = W(n, 255);
  var r = Math.max(e, t, n), o = Math.min(e, t, n), s = 0, a = 0, i = (r + o) / 2;
  if (r === o)
    a = 0, s = 0;
  else {
    var c = r - o;
    switch (a = i > 0.5 ? c / (2 - r - o) : c / (r + o), r) {
      case e:
        s = (t - n) / c + (t < n ? 6 : 0);
        break;
      case t:
        s = (n - e) / c + 2;
        break;
      case n:
        s = (e - t) / c + 4;
        break;
    }
    s /= 6;
  }
  return { h: s, s: a, l: i };
}
function Bn(e, t, n) {
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
}
function ad(e, t, n) {
  var r, o, s;
  if (e = W(e, 360), t = W(t, 100), n = W(n, 100), t === 0)
    o = n, s = n, r = n;
  else {
    var a = n < 0.5 ? n * (1 + t) : n + t - n * t, i = 2 * n - a;
    r = Bn(i, a, e + 1 / 3), o = Bn(i, a, e), s = Bn(i, a, e - 1 / 3);
  }
  return { r: r * 255, g: o * 255, b: s * 255 };
}
function Po(e, t, n) {
  e = W(e, 255), t = W(t, 255), n = W(n, 255);
  var r = Math.max(e, t, n), o = Math.min(e, t, n), s = 0, a = r, i = r - o, c = r === 0 ? 0 : i / r;
  if (r === o)
    s = 0;
  else {
    switch (r) {
      case e:
        s = (t - n) / i + (t < n ? 6 : 0);
        break;
      case t:
        s = (n - e) / i + 2;
        break;
      case n:
        s = (e - t) / i + 4;
        break;
    }
    s /= 6;
  }
  return { h: s, s: c, v: a };
}
function id(e, t, n) {
  e = W(e, 360) * 6, t = W(t, 100), n = W(n, 100);
  var r = Math.floor(e), o = e - r, s = n * (1 - t), a = n * (1 - o * t), i = n * (1 - (1 - o) * t), c = r % 6, l = [n, a, s, s, i, n][c], u = [i, n, n, a, s, s][c], p = [s, s, i, n, n, a][c];
  return { r: l * 255, g: u * 255, b: p * 255 };
}
function ko(e, t, n, r) {
  var o = [
    He(Math.round(e).toString(16)),
    He(Math.round(t).toString(16)),
    He(Math.round(n).toString(16))
  ];
  return r && o[0].startsWith(o[0].charAt(1)) && o[1].startsWith(o[1].charAt(1)) && o[2].startsWith(o[2].charAt(1)) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
}
function ld(e, t, n, r, o) {
  var s = [
    He(Math.round(e).toString(16)),
    He(Math.round(t).toString(16)),
    He(Math.round(n).toString(16)),
    He(cd(r))
  ];
  return o && s[0].startsWith(s[0].charAt(1)) && s[1].startsWith(s[1].charAt(1)) && s[2].startsWith(s[2].charAt(1)) && s[3].startsWith(s[3].charAt(1)) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) + s[3].charAt(0) : s.join("");
}
function cd(e) {
  return Math.round(parseFloat(e) * 255).toString(16);
}
function No(e) {
  return oe(e) / 255;
}
function oe(e) {
  return parseInt(e, 16);
}
function ud(e) {
  return {
    r: e >> 16,
    g: (e & 65280) >> 8,
    b: e & 255
  };
}
var Gn = {
  aliceblue: "#f0f8ff",
  antiquewhite: "#faebd7",
  aqua: "#00ffff",
  aquamarine: "#7fffd4",
  azure: "#f0ffff",
  beige: "#f5f5dc",
  bisque: "#ffe4c4",
  black: "#000000",
  blanchedalmond: "#ffebcd",
  blue: "#0000ff",
  blueviolet: "#8a2be2",
  brown: "#a52a2a",
  burlywood: "#deb887",
  cadetblue: "#5f9ea0",
  chartreuse: "#7fff00",
  chocolate: "#d2691e",
  coral: "#ff7f50",
  cornflowerblue: "#6495ed",
  cornsilk: "#fff8dc",
  crimson: "#dc143c",
  cyan: "#00ffff",
  darkblue: "#00008b",
  darkcyan: "#008b8b",
  darkgoldenrod: "#b8860b",
  darkgray: "#a9a9a9",
  darkgreen: "#006400",
  darkgrey: "#a9a9a9",
  darkkhaki: "#bdb76b",
  darkmagenta: "#8b008b",
  darkolivegreen: "#556b2f",
  darkorange: "#ff8c00",
  darkorchid: "#9932cc",
  darkred: "#8b0000",
  darksalmon: "#e9967a",
  darkseagreen: "#8fbc8f",
  darkslateblue: "#483d8b",
  darkslategray: "#2f4f4f",
  darkslategrey: "#2f4f4f",
  darkturquoise: "#00ced1",
  darkviolet: "#9400d3",
  deeppink: "#ff1493",
  deepskyblue: "#00bfff",
  dimgray: "#696969",
  dimgrey: "#696969",
  dodgerblue: "#1e90ff",
  firebrick: "#b22222",
  floralwhite: "#fffaf0",
  forestgreen: "#228b22",
  fuchsia: "#ff00ff",
  gainsboro: "#dcdcdc",
  ghostwhite: "#f8f8ff",
  goldenrod: "#daa520",
  gold: "#ffd700",
  gray: "#808080",
  green: "#008000",
  greenyellow: "#adff2f",
  grey: "#808080",
  honeydew: "#f0fff0",
  hotpink: "#ff69b4",
  indianred: "#cd5c5c",
  indigo: "#4b0082",
  ivory: "#fffff0",
  khaki: "#f0e68c",
  lavenderblush: "#fff0f5",
  lavender: "#e6e6fa",
  lawngreen: "#7cfc00",
  lemonchiffon: "#fffacd",
  lightblue: "#add8e6",
  lightcoral: "#f08080",
  lightcyan: "#e0ffff",
  lightgoldenrodyellow: "#fafad2",
  lightgray: "#d3d3d3",
  lightgreen: "#90ee90",
  lightgrey: "#d3d3d3",
  lightpink: "#ffb6c1",
  lightsalmon: "#ffa07a",
  lightseagreen: "#20b2aa",
  lightskyblue: "#87cefa",
  lightslategray: "#778899",
  lightslategrey: "#778899",
  lightsteelblue: "#b0c4de",
  lightyellow: "#ffffe0",
  lime: "#00ff00",
  limegreen: "#32cd32",
  linen: "#faf0e6",
  magenta: "#ff00ff",
  maroon: "#800000",
  mediumaquamarine: "#66cdaa",
  mediumblue: "#0000cd",
  mediumorchid: "#ba55d3",
  mediumpurple: "#9370db",
  mediumseagreen: "#3cb371",
  mediumslateblue: "#7b68ee",
  mediumspringgreen: "#00fa9a",
  mediumturquoise: "#48d1cc",
  mediumvioletred: "#c71585",
  midnightblue: "#191970",
  mintcream: "#f5fffa",
  mistyrose: "#ffe4e1",
  moccasin: "#ffe4b5",
  navajowhite: "#ffdead",
  navy: "#000080",
  oldlace: "#fdf5e6",
  olive: "#808000",
  olivedrab: "#6b8e23",
  orange: "#ffa500",
  orangered: "#ff4500",
  orchid: "#da70d6",
  palegoldenrod: "#eee8aa",
  palegreen: "#98fb98",
  paleturquoise: "#afeeee",
  palevioletred: "#db7093",
  papayawhip: "#ffefd5",
  peachpuff: "#ffdab9",
  peru: "#cd853f",
  pink: "#ffc0cb",
  plum: "#dda0dd",
  powderblue: "#b0e0e6",
  purple: "#800080",
  rebeccapurple: "#663399",
  red: "#ff0000",
  rosybrown: "#bc8f8f",
  royalblue: "#4169e1",
  saddlebrown: "#8b4513",
  salmon: "#fa8072",
  sandybrown: "#f4a460",
  seagreen: "#2e8b57",
  seashell: "#fff5ee",
  sienna: "#a0522d",
  silver: "#c0c0c0",
  skyblue: "#87ceeb",
  slateblue: "#6a5acd",
  slategray: "#708090",
  slategrey: "#708090",
  snow: "#fffafa",
  springgreen: "#00ff7f",
  steelblue: "#4682b4",
  tan: "#d2b48c",
  teal: "#008080",
  thistle: "#d8bfd8",
  tomato: "#ff6347",
  turquoise: "#40e0d0",
  violet: "#ee82ee",
  wheat: "#f5deb3",
  white: "#ffffff",
  whitesmoke: "#f5f5f5",
  yellow: "#ffff00",
  yellowgreen: "#9acd32"
};
function fd(e) {
  var t = { r: 0, g: 0, b: 0 }, n = 1, r = null, o = null, s = null, a = !1, i = !1;
  return typeof e == "string" && (e = hd(e)), typeof e == "object" && (Se(e.r) && Se(e.g) && Se(e.b) ? (t = sd(e.r, e.g, e.b), a = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Se(e.h) && Se(e.s) && Se(e.v) ? (r = Kt(e.s), o = Kt(e.v), t = id(e.h, r, o), a = !0, i = "hsv") : Se(e.h) && Se(e.s) && Se(e.l) && (r = Kt(e.s), s = Kt(e.l), t = ad(e.h, r, s), a = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (n = e.a)), n = Ws(n), {
    ok: a,
    format: e.format || i,
    r: Math.min(255, Math.max(t.r, 0)),
    g: Math.min(255, Math.max(t.g, 0)),
    b: Math.min(255, Math.max(t.b, 0)),
    a: n
  };
}
var dd = "[-\\+]?\\d+%?", pd = "[-\\+]?\\d*\\.\\d+%?", Re = "(?:".concat(pd, ")|(?:").concat(dd, ")"), Mn = "[\\s|\\(]+(".concat(Re, ")[,|\\s]+(").concat(Re, ")[,|\\s]+(").concat(Re, ")\\s*\\)?"), Dn = "[\\s|\\(]+(".concat(Re, ")[,|\\s]+(").concat(Re, ")[,|\\s]+(").concat(Re, ")[,|\\s]+(").concat(Re, ")\\s*\\)?"), de = {
  CSS_UNIT: new RegExp(Re),
  rgb: new RegExp("rgb" + Mn),
  rgba: new RegExp("rgba" + Dn),
  hsl: new RegExp("hsl" + Mn),
  hsla: new RegExp("hsla" + Dn),
  hsv: new RegExp("hsv" + Mn),
  hsva: new RegExp("hsva" + Dn),
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
};
function hd(e) {
  if (e = e.trim().toLowerCase(), e.length === 0)
    return !1;
  var t = !1;
  if (Gn[e])
    e = Gn[e], t = !0;
  else if (e === "transparent")
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  var n = de.rgb.exec(e);
  return n ? { r: n[1], g: n[2], b: n[3] } : (n = de.rgba.exec(e), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : (n = de.hsl.exec(e), n ? { h: n[1], s: n[2], l: n[3] } : (n = de.hsla.exec(e), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : (n = de.hsv.exec(e), n ? { h: n[1], s: n[2], v: n[3] } : (n = de.hsva.exec(e), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : (n = de.hex8.exec(e), n ? {
    r: oe(n[1]),
    g: oe(n[2]),
    b: oe(n[3]),
    a: No(n[4]),
    format: t ? "name" : "hex8"
  } : (n = de.hex6.exec(e), n ? {
    r: oe(n[1]),
    g: oe(n[2]),
    b: oe(n[3]),
    format: t ? "name" : "hex"
  } : (n = de.hex4.exec(e), n ? {
    r: oe(n[1] + n[1]),
    g: oe(n[2] + n[2]),
    b: oe(n[3] + n[3]),
    a: No(n[4] + n[4]),
    format: t ? "name" : "hex8"
  } : (n = de.hex3.exec(e), n ? {
    r: oe(n[1] + n[1]),
    g: oe(n[2] + n[2]),
    b: oe(n[3] + n[3]),
    format: t ? "name" : "hex"
  } : !1)))))))));
}
function Se(e) {
  return !!de.CSS_UNIT.exec(String(e));
}
var md = (
  /** @class */
  function() {
    function e(t, n) {
      t === void 0 && (t = ""), n === void 0 && (n = {});
      var r;
      if (t instanceof e)
        return t;
      typeof t == "number" && (t = ud(t)), this.originalInput = t;
      var o = fd(t);
      this.originalInput = t, this.r = o.r, this.g = o.g, this.b = o.b, this.a = o.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (r = n.format) !== null && r !== void 0 ? r : o.format, this.gradientType = n.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = o.ok;
    }
    return e.prototype.isDark = function() {
      return this.getBrightness() < 128;
    }, e.prototype.isLight = function() {
      return !this.isDark();
    }, e.prototype.getBrightness = function() {
      var t = this.toRgb();
      return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
    }, e.prototype.getLuminance = function() {
      var t = this.toRgb(), n, r, o, s = t.r / 255, a = t.g / 255, i = t.b / 255;
      return s <= 0.03928 ? n = s / 12.92 : n = Math.pow((s + 0.055) / 1.055, 2.4), a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? o = i / 12.92 : o = Math.pow((i + 0.055) / 1.055, 2.4), 0.2126 * n + 0.7152 * r + 0.0722 * o;
    }, e.prototype.getAlpha = function() {
      return this.a;
    }, e.prototype.setAlpha = function(t) {
      return this.a = Ws(t), this.roundA = Math.round(100 * this.a) / 100, this;
    }, e.prototype.isMonochrome = function() {
      var t = this.toHsl().s;
      return t === 0;
    }, e.prototype.toHsv = function() {
      var t = Po(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
    }, e.prototype.toHsvString = function() {
      var t = Po(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.v * 100);
      return this.a === 1 ? "hsv(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsva(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
    }, e.prototype.toHsl = function() {
      var t = Ao(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
    }, e.prototype.toHslString = function() {
      var t = Ao(this.r, this.g, this.b), n = Math.round(t.h * 360), r = Math.round(t.s * 100), o = Math.round(t.l * 100);
      return this.a === 1 ? "hsl(".concat(n, ", ").concat(r, "%, ").concat(o, "%)") : "hsla(".concat(n, ", ").concat(r, "%, ").concat(o, "%, ").concat(this.roundA, ")");
    }, e.prototype.toHex = function(t) {
      return t === void 0 && (t = !1), ko(this.r, this.g, this.b, t);
    }, e.prototype.toHexString = function(t) {
      return t === void 0 && (t = !1), "#" + this.toHex(t);
    }, e.prototype.toHex8 = function(t) {
      return t === void 0 && (t = !1), ld(this.r, this.g, this.b, this.a, t);
    }, e.prototype.toHex8String = function(t) {
      return t === void 0 && (t = !1), "#" + this.toHex8(t);
    }, e.prototype.toHexShortString = function(t) {
      return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
    }, e.prototype.toRgb = function() {
      return {
        r: Math.round(this.r),
        g: Math.round(this.g),
        b: Math.round(this.b),
        a: this.a
      };
    }, e.prototype.toRgbString = function() {
      var t = Math.round(this.r), n = Math.round(this.g), r = Math.round(this.b);
      return this.a === 1 ? "rgb(".concat(t, ", ").concat(n, ", ").concat(r, ")") : "rgba(".concat(t, ", ").concat(n, ", ").concat(r, ", ").concat(this.roundA, ")");
    }, e.prototype.toPercentageRgb = function() {
      var t = function(n) {
        return "".concat(Math.round(W(n, 255) * 100), "%");
      };
      return {
        r: t(this.r),
        g: t(this.g),
        b: t(this.b),
        a: this.a
      };
    }, e.prototype.toPercentageRgbString = function() {
      var t = function(n) {
        return Math.round(W(n, 255) * 100);
      };
      return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
    }, e.prototype.toName = function() {
      if (this.a === 0)
        return "transparent";
      if (this.a < 1)
        return !1;
      for (var t = "#" + ko(this.r, this.g, this.b, !1), n = 0, r = Object.entries(Gn); n < r.length; n++) {
        var o = r[n], s = o[0], a = o[1];
        if (t === a)
          return s;
      }
      return !1;
    }, e.prototype.toString = function(t) {
      var n = !!t;
      t = t ?? this.format;
      var r = !1, o = this.a < 1 && this.a >= 0, s = !n && o && (t.startsWith("hex") || t === "name");
      return s ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (r = this.toRgbString()), t === "prgb" && (r = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (r = this.toHexString()), t === "hex3" && (r = this.toHexString(!0)), t === "hex4" && (r = this.toHex8String(!0)), t === "hex8" && (r = this.toHex8String()), t === "name" && (r = this.toName()), t === "hsl" && (r = this.toHslString()), t === "hsv" && (r = this.toHsvString()), r || this.toHexString());
    }, e.prototype.toNumber = function() {
      return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
    }, e.prototype.clone = function() {
      return new e(this.toString());
    }, e.prototype.lighten = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.l += t / 100, n.l = qt(n.l), new e(n);
    }, e.prototype.brighten = function(t) {
      t === void 0 && (t = 10);
      var n = this.toRgb();
      return n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100)))), n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100)))), n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100)))), new e(n);
    }, e.prototype.darken = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.l -= t / 100, n.l = qt(n.l), new e(n);
    }, e.prototype.tint = function(t) {
      return t === void 0 && (t = 10), this.mix("white", t);
    }, e.prototype.shade = function(t) {
      return t === void 0 && (t = 10), this.mix("black", t);
    }, e.prototype.desaturate = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.s -= t / 100, n.s = qt(n.s), new e(n);
    }, e.prototype.saturate = function(t) {
      t === void 0 && (t = 10);
      var n = this.toHsl();
      return n.s += t / 100, n.s = qt(n.s), new e(n);
    }, e.prototype.greyscale = function() {
      return this.desaturate(100);
    }, e.prototype.spin = function(t) {
      var n = this.toHsl(), r = (n.h + t) % 360;
      return n.h = r < 0 ? 360 + r : r, new e(n);
    }, e.prototype.mix = function(t, n) {
      n === void 0 && (n = 50);
      var r = this.toRgb(), o = new e(t).toRgb(), s = n / 100, a = {
        r: (o.r - r.r) * s + r.r,
        g: (o.g - r.g) * s + r.g,
        b: (o.b - r.b) * s + r.b,
        a: (o.a - r.a) * s + r.a
      };
      return new e(a);
    }, e.prototype.analogous = function(t, n) {
      t === void 0 && (t = 6), n === void 0 && (n = 30);
      var r = this.toHsl(), o = 360 / n, s = [this];
      for (r.h = (r.h - (o * t >> 1) + 720) % 360; --t; )
        r.h = (r.h + o) % 360, s.push(new e(r));
      return s;
    }, e.prototype.complement = function() {
      var t = this.toHsl();
      return t.h = (t.h + 180) % 360, new e(t);
    }, e.prototype.monochromatic = function(t) {
      t === void 0 && (t = 6);
      for (var n = this.toHsv(), r = n.h, o = n.s, s = n.v, a = [], i = 1 / t; t--; )
        a.push(new e({ h: r, s: o, v: s })), s = (s + i) % 1;
      return a;
    }, e.prototype.splitcomplement = function() {
      var t = this.toHsl(), n = t.h;
      return [
        this,
        new e({ h: (n + 72) % 360, s: t.s, l: t.l }),
        new e({ h: (n + 216) % 360, s: t.s, l: t.l })
      ];
    }, e.prototype.onBackground = function(t) {
      var n = this.toRgb(), r = new e(t).toRgb(), o = n.a + r.a * (1 - n.a);
      return new e({
        r: (n.r * n.a + r.r * r.a * (1 - n.a)) / o,
        g: (n.g * n.a + r.g * r.a * (1 - n.a)) / o,
        b: (n.b * n.a + r.b * r.a * (1 - n.a)) / o,
        a: o
      });
    }, e.prototype.triad = function() {
      return this.polyad(3);
    }, e.prototype.tetrad = function() {
      return this.polyad(4);
    }, e.prototype.polyad = function(t) {
      for (var n = this.toHsl(), r = n.h, o = [this], s = 360 / t, a = 1; a < t; a++)
        o.push(new e({ h: (r + a * s) % 360, s: n.s, l: n.l }));
      return o;
    }, e.prototype.equals = function(t) {
      return this.toRgbString() === new e(t).toRgbString();
    }, e;
  }()
);
function Ce(e, t = 20) {
  return e.mix("#141414", t).toString();
}
function vd(e) {
  const t = Ms(), n = fe("button");
  return E(() => {
    let r = {}, o = e.color;
    if (o) {
      const s = o.match(/var\((.*?)\)/);
      s && (o = window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));
      const a = new md(o), i = e.dark ? a.tint(20).toString() : Ce(a, 20);
      if (e.plain)
        r = n.cssVarBlock({
          "bg-color": e.dark ? Ce(a, 90) : a.tint(90).toString(),
          "text-color": o,
          "border-color": e.dark ? Ce(a, 50) : a.tint(50).toString(),
          "hover-text-color": `var(${n.cssVarName("color-white")})`,
          "hover-bg-color": o,
          "hover-border-color": o,
          "active-bg-color": i,
          "active-text-color": `var(${n.cssVarName("color-white")})`,
          "active-border-color": i
        }), t.value && (r[n.cssVarBlockName("disabled-bg-color")] = e.dark ? Ce(a, 90) : a.tint(90).toString(), r[n.cssVarBlockName("disabled-text-color")] = e.dark ? Ce(a, 50) : a.tint(50).toString(), r[n.cssVarBlockName("disabled-border-color")] = e.dark ? Ce(a, 80) : a.tint(80).toString());
      else {
        const c = e.dark ? Ce(a, 30) : a.tint(30).toString(), l = a.isDark() ? `var(${n.cssVarName("color-white")})` : `var(${n.cssVarName("color-black")})`;
        if (r = n.cssVarBlock({
          "bg-color": o,
          "text-color": l,
          "border-color": o,
          "hover-bg-color": c,
          "hover-text-color": l,
          "hover-border-color": c,
          "active-bg-color": i,
          "active-border-color": i
        }), t.value) {
          const u = e.dark ? Ce(a, 50) : a.tint(50).toString();
          r[n.cssVarBlockName("disabled-bg-color")] = u, r[n.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${n.cssVarName("color-white")})`, r[n.cssVarBlockName("disabled-border-color")] = u;
        }
      }
    }
    return r;
  });
}
const gd = $({
  name: "ElButton"
}), bd = /* @__PURE__ */ $({
  ...gd,
  props: Jn,
  emits: nd,
  setup(e, { expose: t, emit: n }) {
    const r = e, o = vd(r), s = fe("button"), { _ref: a, _size: i, _type: c, _disabled: l, _props: u, shouldAddSpace: p, handleClick: v } = Qf(r, n), b = E(() => [
      s.b(),
      s.m(c.value),
      s.m(i.value),
      s.is("disabled", l.value),
      s.is("loading", r.loading),
      s.is("plain", r.plain),
      s.is("round", r.round),
      s.is("circle", r.circle),
      s.is("text", r.text),
      s.is("link", r.link),
      s.is("has-bg", r.bg)
    ]);
    return t({
      ref: a,
      size: i,
      type: c,
      disabled: l,
      shouldAddSpace: p
    }), (f, d) => (P(), G(kn(f.tag), it({
      ref_key: "_ref",
      ref: a
    }, y(u), {
      class: y(b),
      style: y(o),
      onClick: y(v)
    }), {
      default: K(() => [
        f.loading ? (P(), B(hn, { key: 0 }, [
          f.$slots.loading ? z(f.$slots, "loading", { key: 0 }) : (P(), G(y(wo), {
            key: 1,
            class: Q(y(s).is("loading"))
          }, {
            default: K(() => [
              (P(), G(kn(f.loadingIcon)))
            ]),
            _: 1
          }, 8, ["class"]))
        ], 64)) : f.icon || f.$slots.icon ? (P(), G(y(wo), { key: 1 }, {
          default: K(() => [
            f.icon ? (P(), G(kn(f.icon), { key: 0 })) : z(f.$slots, "icon", { key: 1 })
          ]),
          _: 3
        })) : Y("v-if", !0),
        f.$slots.default ? (P(), B("span", {
          key: 2,
          class: Q({ [y(s).em("text", "expand")]: y(p) })
        }, [
          z(f.$slots, "default")
        ], 2)) : Y("v-if", !0)
      ]),
      _: 3
    }, 16, ["class", "style", "onClick"]));
  }
});
var yd = /* @__PURE__ */ X(bd, [["__file", "button.vue"]]);
const wd = {
  size: Jn.size,
  type: Jn.type
}, Ed = $({
  name: "ElButtonGroup"
}), Sd = /* @__PURE__ */ $({
  ...Ed,
  props: wd,
  setup(e) {
    const t = e;
    ye(Ks, Qo({
      size: je(t, "size"),
      type: je(t, "type")
    }));
    const n = fe("button");
    return (r, o) => (P(), B("div", {
      class: Q(y(n).b("group"))
    }, [
      z(r.$slots, "default")
    ], 2));
  }
});
var Js = /* @__PURE__ */ X(Sd, [["__file", "button-group.vue"]]);
const Od = Ze(yd, {
  ButtonGroup: Js
});
cc(Js);
const _d = q({
  header: {
    type: String,
    default: ""
  },
  footer: {
    type: String,
    default: ""
  },
  bodyStyle: {
    type: I([String, Object, Array]),
    default: ""
  },
  bodyClass: String,
  shadow: {
    type: String,
    values: ["always", "hover", "never"],
    default: "always"
  }
}), Td = $({
  name: "ElCard"
}), Cd = /* @__PURE__ */ $({
  ...Td,
  props: _d,
  setup(e) {
    const t = fe("card");
    return (n, r) => (P(), B("div", {
      class: Q([y(t).b(), y(t).is(`${n.shadow}-shadow`)])
    }, [
      n.$slots.header || n.header ? (P(), B("div", {
        key: 0,
        class: Q(y(t).e("header"))
      }, [
        z(n.$slots, "header", {}, () => [
          tn(Ae(n.header), 1)
        ])
      ], 2)) : Y("v-if", !0),
      se("div", {
        class: Q([y(t).e("body"), n.bodyClass]),
        style: De(n.bodyStyle)
      }, [
        z(n.$slots, "default")
      ], 6),
      n.$slots.footer || n.footer ? (P(), B("div", {
        key: 1,
        class: Q(y(t).e("footer"))
      }, [
        z(n.$slots, "footer", {}, () => [
          tn(Ae(n.footer), 1)
        ])
      ], 2)) : Y("v-if", !0)
    ], 2));
  }
});
var xd = /* @__PURE__ */ X(Cd, [["__file", "card.vue"]]);
const Rd = Ze(xd), Ad = /* @__PURE__ */ $({
  inheritAttrs: !1
});
function Pd(e, t, n, r, o, s) {
  return z(e.$slots, "default");
}
var kd = /* @__PURE__ */ X(Ad, [["render", Pd], ["__file", "collection.vue"]]);
const Nd = /* @__PURE__ */ $({
  name: "ElCollectionItem",
  inheritAttrs: !1
});
function Id(e, t, n, r, o, s) {
  return z(e.$slots, "default");
}
var Fd = /* @__PURE__ */ X(Nd, [["render", Id], ["__file", "collection-item.vue"]]);
const $d = "data-el-collection-item", Ld = (e) => {
  const t = `El${e}Collection`, n = `${t}Item`, r = Symbol(t), o = Symbol(n), s = {
    ...kd,
    name: t,
    setup() {
      const i = A(null), c = /* @__PURE__ */ new Map();
      ye(r, {
        itemMap: c,
        getItems: () => {
          const u = y(i);
          if (!u)
            return [];
          const p = Array.from(u.querySelectorAll(`[${$d}]`));
          return [...c.values()].sort((b, f) => p.indexOf(b.ref) - p.indexOf(f.ref));
        },
        collectionRef: i
      });
    }
  }, a = {
    ...Fd,
    name: n,
    setup(i, { attrs: c }) {
      const l = A(null), u = H(r, void 0);
      ye(o, {
        collectionItemRef: l
      }), Ie(() => {
        const p = y(l);
        p && u.itemMap.set(p, {
          ref: p,
          ...c
        });
      }), Te(() => {
        const p = y(l);
        u.itemMap.delete(p);
      });
    }
  };
  return {
    COLLECTION_INJECTION_KEY: r,
    COLLECTION_ITEM_INJECTION_KEY: o,
    ElCollection: s,
    ElCollectionItem: a
  };
}, jn = q({
  trigger: xt.trigger,
  effect: {
    ...ie.effect,
    default: "light"
  },
  type: {
    type: I(String)
  },
  placement: {
    type: I(String),
    default: "bottom"
  },
  popperOptions: {
    type: I(Object),
    default: () => ({})
  },
  id: String,
  size: {
    type: String,
    default: ""
  },
  splitButton: Boolean,
  hideOnClick: {
    type: Boolean,
    default: !0
  },
  loop: {
    type: Boolean,
    default: !0
  },
  showTimeout: {
    type: Number,
    default: 150
  },
  hideTimeout: {
    type: Number,
    default: 150
  },
  tabindex: {
    type: I([Number, String]),
    default: 0
  },
  maxHeight: {
    type: I([Number, String]),
    default: ""
  },
  popperClass: {
    type: String,
    default: ""
  },
  disabled: Boolean,
  role: {
    type: String,
    default: "menu"
  },
  buttonProps: {
    type: I(Object)
  },
  teleported: ie.teleported
});
q({
  command: {
    type: [Object, String, Number],
    default: () => ({})
  },
  disabled: Boolean,
  divided: Boolean,
  textValue: String,
  icon: {
    type: qn
  }
});
q({
  onKeydown: { type: I(Function) }
});
Ld("Dropdown");
const Bd = q({
  trigger: xt.trigger,
  placement: jn.placement,
  disabled: xt.disabled,
  visible: ie.visible,
  transition: ie.transition,
  popperOptions: jn.popperOptions,
  tabindex: jn.tabindex,
  content: ie.content,
  popperStyle: ie.popperStyle,
  popperClass: ie.popperClass,
  enterable: {
    ...ie.enterable,
    default: !0
  },
  effect: {
    ...ie.effect,
    default: "light"
  },
  teleported: ie.teleported,
  title: String,
  width: {
    type: [String, Number],
    default: 150
  },
  offset: {
    type: Number,
    default: void 0
  },
  showAfter: {
    type: Number,
    default: 0
  },
  hideAfter: {
    type: Number,
    default: 200
  },
  autoClose: {
    type: Number,
    default: 0
  },
  showArrow: {
    type: Boolean,
    default: !0
  },
  persistent: {
    type: Boolean,
    default: !0
  },
  "onUpdate:visible": {
    type: Function
  }
}), Md = {
  "update:visible": (e) => fr(e),
  "before-enter": () => !0,
  "before-leave": () => !0,
  "after-enter": () => !0,
  "after-leave": () => !0
}, Dd = "onUpdate:visible", jd = $({
  name: "ElPopover"
}), Ud = /* @__PURE__ */ $({
  ...jd,
  props: Bd,
  emits: Md,
  setup(e, { expose: t, emit: n }) {
    const r = e, o = E(() => r[Dd]), s = fe("popover"), a = A(), i = E(() => {
      var h;
      return (h = y(a)) == null ? void 0 : h.popperRef;
    }), c = E(() => [
      {
        width: ps(r.width)
      },
      r.popperStyle
    ]), l = E(() => [s.b(), r.popperClass, { [s.m("plain")]: !!r.content }]), u = E(() => r.transition === `${s.namespace.value}-fade-in-linear`), p = () => {
      var h;
      (h = a.value) == null || h.hide();
    }, v = () => {
      n("before-enter");
    }, b = () => {
      n("before-leave");
    }, f = () => {
      n("after-enter");
    }, d = () => {
      n("update:visible", !1), n("after-leave");
    };
    return t({
      popperRef: i,
      hide: p
    }), (h, m) => (P(), G(y(Yf), it({
      ref_key: "tooltipRef",
      ref: a
    }, h.$attrs, {
      trigger: h.trigger,
      placement: h.placement,
      disabled: h.disabled,
      visible: h.visible,
      transition: h.transition,
      "popper-options": h.popperOptions,
      tabindex: h.tabindex,
      content: h.content,
      offset: h.offset,
      "show-after": h.showAfter,
      "hide-after": h.hideAfter,
      "auto-close": h.autoClose,
      "show-arrow": h.showArrow,
      "aria-label": h.title,
      effect: h.effect,
      enterable: h.enterable,
      "popper-class": y(l),
      "popper-style": y(c),
      teleported: h.teleported,
      persistent: h.persistent,
      "gpu-acceleration": y(u),
      "onUpdate:visible": y(o),
      onBeforeShow: v,
      onBeforeHide: b,
      onShow: f,
      onHide: d
    }), {
      content: K(() => [
        h.title ? (P(), B("div", {
          key: 0,
          class: Q(y(s).e("title")),
          role: "title"
        }, Ae(h.title), 3)) : Y("v-if", !0),
        z(h.$slots, "default", {}, () => [
          tn(Ae(h.content), 1)
        ])
      ]),
      default: K(() => [
        h.$slots.reference ? z(h.$slots, "reference", { key: 0 }) : Y("v-if", !0)
      ]),
      _: 3
    }, 16, ["trigger", "placement", "disabled", "visible", "transition", "popper-options", "tabindex", "content", "offset", "show-after", "hide-after", "auto-close", "show-arrow", "aria-label", "effect", "enterable", "popper-class", "popper-style", "teleported", "persistent", "gpu-acceleration", "onUpdate:visible"]));
  }
});
var Hd = /* @__PURE__ */ X(Ud, [["__file", "popover.vue"]]);
const Io = (e, t) => {
  const n = t.arg || t.value, r = n == null ? void 0 : n.popperRef;
  r && (r.triggerRef = e);
};
var zd = {
  mounted(e, t) {
    Io(e, t);
  },
  updated(e, t) {
    Io(e, t);
  }
};
const Vd = "popover", qd = lc(zd, Vd), Kd = Ze(Hd, {
  directive: qd
});
function Wd(e) {
  let t;
  const n = A(!1), r = Qo({
    ...e,
    originalPosition: "",
    originalOverflow: "",
    visible: !1
  });
  function o(v) {
    r.text = v;
  }
  function s() {
    const v = r.parent, b = p.ns;
    if (!v.vLoadingAddClassList) {
      let f = v.getAttribute("loading-number");
      f = Number.parseInt(f) - 1, f ? v.setAttribute("loading-number", f.toString()) : (an(v, b.bm("parent", "relative")), v.removeAttribute("loading-number")), an(v, b.bm("parent", "hidden"));
    }
    a(), u.unmount();
  }
  function a() {
    var v, b;
    (b = (v = p.$el) == null ? void 0 : v.parentNode) == null || b.removeChild(p.$el);
  }
  function i() {
    var v;
    e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = setTimeout(c, 400), r.visible = !1, (v = e.closed) == null || v.call(e));
  }
  function c() {
    if (!n.value)
      return;
    const v = r.parent;
    n.value = !1, v.vLoadingAddClassList = void 0, s();
  }
  const l = $({
    name: "ElLoading",
    setup(v, { expose: b }) {
      const { ns: f, zIndex: d } = Mu("loading");
      return b({
        ns: f,
        zIndex: d
      }), () => {
        const h = r.spinner || r.svg, m = ht("svg", {
          class: "circular",
          viewBox: r.svgViewBox ? r.svgViewBox : "0 0 50 50",
          ...h ? { innerHTML: h } : {}
        }, [
          ht("circle", {
            class: "path",
            cx: "25",
            cy: "25",
            r: "20",
            fill: "none"
          })
        ]), w = r.text ? ht("p", { class: f.b("text") }, [r.text]) : void 0;
        return ht(Yo, {
          name: f.b("fade"),
          onAfterLeave: c
        }, {
          default: K(() => [
            et(ke("div", {
              style: {
                backgroundColor: r.background || ""
              },
              class: [
                f.b("mask"),
                r.customClass,
                r.fullscreen ? "is-fullscreen" : ""
              ]
            }, [
              ht("div", {
                class: f.b("spinner")
              }, [m, w])
            ]), [[en, r.visible]])
          ])
        });
      };
    }
  }), u = Ba(l), p = u.mount(document.createElement("div"));
  return {
    ...Ma(r),
    setText: o,
    removeElLoadingChild: a,
    close: i,
    handleAfterLeave: c,
    vm: p,
    get $el() {
      return p.$el;
    }
  };
}
let Wt;
const Jd = function(e = {}) {
  if (!ae)
    return;
  const t = Gd(e);
  if (t.fullscreen && Wt)
    return Wt;
  const n = Wd({
    ...t,
    closed: () => {
      var o;
      (o = t.closed) == null || o.call(t), t.fullscreen && (Wt = void 0);
    }
  });
  Zd(t, t.parent, n), Fo(t, t.parent, n), t.parent.vLoadingAddClassList = () => Fo(t, t.parent, n);
  let r = t.parent.getAttribute("loading-number");
  return r ? r = `${Number.parseInt(r) + 1}` : r = "1", t.parent.setAttribute("loading-number", r), t.parent.appendChild(n.$el), tt(() => n.visible.value = t.visible), t.fullscreen && (Wt = n), n;
}, Gd = (e) => {
  var t, n, r, o;
  let s;
  return lt(e.target) ? s = (t = document.querySelector(e.target)) != null ? t : document.body : s = e.target || document.body, {
    parent: s === document.body || e.body ? document.body : s,
    background: e.background || "",
    svg: e.svg || "",
    svgViewBox: e.svgViewBox || "",
    spinner: e.spinner || !1,
    text: e.text || "",
    fullscreen: s === document.body && ((n = e.fullscreen) != null ? n : !0),
    lock: (r = e.lock) != null ? r : !1,
    customClass: e.customClass || "",
    visible: (o = e.visible) != null ? o : !0,
    beforeClose: e.beforeClose,
    closed: e.closed,
    target: s
  };
}, Zd = async (e, t, n) => {
  const { nextZIndex: r } = n.vm.zIndex || n.vm._.exposed.zIndex, o = {};
  if (e.fullscreen)
    n.originalPosition.value = vt(document.body, "position"), n.originalOverflow.value = vt(document.body, "overflow"), o.zIndex = r();
  else if (e.parent === document.body) {
    n.originalPosition.value = vt(document.body, "position"), await tt();
    for (const s of ["top", "left"]) {
      const a = s === "top" ? "scrollTop" : "scrollLeft";
      o[s] = `${e.target.getBoundingClientRect()[s] + document.body[a] + document.documentElement[a] - Number.parseInt(vt(document.body, `margin-${s}`), 10)}px`;
    }
    for (const s of ["height", "width"])
      o[s] = `${e.target.getBoundingClientRect()[s]}px`;
  } else
    n.originalPosition.value = vt(t, "position");
  for (const [s, a] of Object.entries(o))
    n.$el.style[s] = a;
}, Fo = (e, t, n) => {
  const r = n.vm.ns || n.vm._.exposed.ns;
  ["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? an(t, r.bm("parent", "relative")) : ro(t, r.bm("parent", "relative")), e.fullscreen && e.lock ? ro(t, r.bm("parent", "hidden")) : an(t, r.bm("parent", "hidden"));
}, Zt = Symbol("ElLoading"), $o = (e, t) => {
  var n, r, o, s;
  const a = t.instance, i = (v) => At(t.value) ? t.value[v] : void 0, c = (v) => {
    const b = lt(v) && (a == null ? void 0 : a[v]) || v;
    return b && A(b);
  }, l = (v) => c(i(v) || e.getAttribute(`element-loading-${ai(v)}`)), u = (n = i("fullscreen")) != null ? n : t.modifiers.fullscreen, p = {
    text: l("text"),
    svg: l("svg"),
    svgViewBox: l("svgViewBox"),
    spinner: l("spinner"),
    background: l("background"),
    customClass: l("customClass"),
    fullscreen: u,
    target: (r = i("target")) != null ? r : u ? void 0 : e,
    body: (o = i("body")) != null ? o : t.modifiers.body,
    lock: (s = i("lock")) != null ? s : t.modifiers.lock
  };
  e[Zt] = {
    options: p,
    instance: Jd(p)
  };
}, Xd = (e, t) => {
  for (const n of Object.keys(t))
    Zo(t[n]) && (t[n].value = e[n]);
}, Yd = {
  mounted(e, t) {
    t.value && $o(e, t);
  },
  updated(e, t) {
    const n = e[Zt];
    t.oldValue !== t.value && (t.value && !t.oldValue ? $o(e, t) : t.value && t.oldValue ? At(t.value) && Xd(t.value, n.options) : n == null || n.instance.close());
  },
  unmounted(e) {
    var t;
    (t = e[Zt]) == null || t.instance.close(), e[Zt] = null;
  }
};
function Gs(e, t) {
  return function() {
    return e.apply(t, arguments);
  };
}
const { toString: Qd } = Object.prototype, { getPrototypeOf: Rr } = Object, { iterator: En, toStringTag: Zs } = Symbol, Sn = /* @__PURE__ */ ((e) => (t) => {
  const n = Qd.call(t);
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
})(/* @__PURE__ */ Object.create(null)), he = (e) => (e = e.toLowerCase(), (t) => Sn(t) === e), On = (e) => (t) => typeof t === e, { isArray: ut } = Array, Rt = On("undefined");
function It(e) {
  return e !== null && !Rt(e) && e.constructor !== null && !Rt(e.constructor) && ne(e.constructor.isBuffer) && e.constructor.isBuffer(e);
}
const Xs = he("ArrayBuffer");
function ep(e) {
  let t;
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Xs(e.buffer), t;
}
const tp = On("string"), ne = On("function"), Ys = On("number"), Ft = (e) => e !== null && typeof e == "object", np = (e) => e === !0 || e === !1, Xt = (e) => {
  if (Sn(e) !== "object")
    return !1;
  const t = Rr(e);
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Zs in e) && !(En in e);
}, rp = (e) => {
  if (!Ft(e) || It(e))
    return !1;
  try {
    return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
  } catch {
    return !1;
  }
}, op = he("Date"), sp = he("File"), ap = he("Blob"), ip = he("FileList"), lp = (e) => Ft(e) && ne(e.pipe), cp = (e) => {
  let t;
  return e && (typeof FormData == "function" && e instanceof FormData || ne(e.append) && ((t = Sn(e)) === "formdata" || // detect form-data instance
  t === "object" && ne(e.toString) && e.toString() === "[object FormData]"));
}, up = he("URLSearchParams"), [fp, dp, pp, hp] = ["ReadableStream", "Request", "Response", "Headers"].map(he), mp = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
function $t(e, t, { allOwnKeys: n = !1 } = {}) {
  if (e === null || typeof e > "u")
    return;
  let r, o;
  if (typeof e != "object" && (e = [e]), ut(e))
    for (r = 0, o = e.length; r < o; r++)
      t.call(null, e[r], r, e);
  else {
    if (It(e))
      return;
    const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
    let i;
    for (r = 0; r < a; r++)
      i = s[r], t.call(null, e[i], i, e);
  }
}
function Qs(e, t) {
  if (It(e))
    return null;
  t = t.toLowerCase();
  const n = Object.keys(e);
  let r = n.length, o;
  for (; r-- > 0; )
    if (o = n[r], t === o.toLowerCase())
      return o;
  return null;
}
const ze = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, ea = (e) => !Rt(e) && e !== ze;
function Zn() {
  const { caseless: e } = ea(this) && this || {}, t = {}, n = (r, o) => {
    const s = e && Qs(t, o) || o;
    Xt(t[s]) && Xt(r) ? t[s] = Zn(t[s], r) : Xt(r) ? t[s] = Zn({}, r) : ut(r) ? t[s] = r.slice() : t[s] = r;
  };
  for (let r = 0, o = arguments.length; r < o; r++)
    arguments[r] && $t(arguments[r], n);
  return t;
}
const vp = (e, t, n, { allOwnKeys: r } = {}) => ($t(t, (o, s) => {
  n && ne(o) ? e[s] = Gs(o, n) : e[s] = o;
}, { allOwnKeys: r }), e), gp = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), bp = (e, t, n, r) => {
  e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
    value: t.prototype
  }), n && Object.assign(e.prototype, n);
}, yp = (e, t, n, r) => {
  let o, s, a;
  const i = {};
  if (t = t || {}, e == null) return t;
  do {
    for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
      a = o[s], (!r || r(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
    e = n !== !1 && Rr(e);
  } while (e && (!n || n(e, t)) && e !== Object.prototype);
  return t;
}, wp = (e, t, n) => {
  e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
  const r = e.indexOf(t, n);
  return r !== -1 && r === n;
}, Ep = (e) => {
  if (!e) return null;
  if (ut(e)) return e;
  let t = e.length;
  if (!Ys(t)) return null;
  const n = new Array(t);
  for (; t-- > 0; )
    n[t] = e[t];
  return n;
}, Sp = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Rr(Uint8Array)), Op = (e, t) => {
  const r = (e && e[En]).call(e);
  let o;
  for (; (o = r.next()) && !o.done; ) {
    const s = o.value;
    t.call(e, s[0], s[1]);
  }
}, _p = (e, t) => {
  let n;
  const r = [];
  for (; (n = e.exec(t)) !== null; )
    r.push(n);
  return r;
}, Tp = he("HTMLFormElement"), Cp = (e) => e.toLowerCase().replace(
  /[-_\s]([a-z\d])(\w*)/g,
  function(n, r, o) {
    return r.toUpperCase() + o;
  }
), Lo = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), xp = he("RegExp"), ta = (e, t) => {
  const n = Object.getOwnPropertyDescriptors(e), r = {};
  $t(n, (o, s) => {
    let a;
    (a = t(o, s, e)) !== !1 && (r[s] = a || o);
  }), Object.defineProperties(e, r);
}, Rp = (e) => {
  ta(e, (t, n) => {
    if (ne(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
      return !1;
    const r = e[n];
    if (ne(r)) {
      if (t.enumerable = !1, "writable" in t) {
        t.writable = !1;
        return;
      }
      t.set || (t.set = () => {
        throw Error("Can not rewrite read-only method '" + n + "'");
      });
    }
  });
}, Ap = (e, t) => {
  const n = {}, r = (o) => {
    o.forEach((s) => {
      n[s] = !0;
    });
  };
  return ut(e) ? r(e) : r(String(e).split(t)), n;
}, Pp = () => {
}, kp = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
function Np(e) {
  return !!(e && ne(e.append) && e[Zs] === "FormData" && e[En]);
}
const Ip = (e) => {
  const t = new Array(10), n = (r, o) => {
    if (Ft(r)) {
      if (t.indexOf(r) >= 0)
        return;
      if (It(r))
        return r;
      if (!("toJSON" in r)) {
        t[o] = r;
        const s = ut(r) ? [] : {};
        return $t(r, (a, i) => {
          const c = n(a, o + 1);
          !Rt(c) && (s[i] = c);
        }), t[o] = void 0, s;
      }
    }
    return r;
  };
  return n(e, 0);
}, Fp = he("AsyncFunction"), $p = (e) => e && (Ft(e) || ne(e)) && ne(e.then) && ne(e.catch), na = ((e, t) => e ? setImmediate : t ? ((n, r) => (ze.addEventListener("message", ({ source: o, data: s }) => {
  o === ze && s === n && r.length && r.shift()();
}, !1), (o) => {
  r.push(o), ze.postMessage(n, "*");
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
  typeof setImmediate == "function",
  ne(ze.postMessage)
), Lp = typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || na, Bp = (e) => e != null && ne(e[En]), g = {
  isArray: ut,
  isArrayBuffer: Xs,
  isBuffer: It,
  isFormData: cp,
  isArrayBufferView: ep,
  isString: tp,
  isNumber: Ys,
  isBoolean: np,
  isObject: Ft,
  isPlainObject: Xt,
  isEmptyObject: rp,
  isReadableStream: fp,
  isRequest: dp,
  isResponse: pp,
  isHeaders: hp,
  isUndefined: Rt,
  isDate: op,
  isFile: sp,
  isBlob: ap,
  isRegExp: xp,
  isFunction: ne,
  isStream: lp,
  isURLSearchParams: up,
  isTypedArray: Sp,
  isFileList: ip,
  forEach: $t,
  merge: Zn,
  extend: vp,
  trim: mp,
  stripBOM: gp,
  inherits: bp,
  toFlatObject: yp,
  kindOf: Sn,
  kindOfTest: he,
  endsWith: wp,
  toArray: Ep,
  forEachEntry: Op,
  matchAll: _p,
  isHTMLForm: Tp,
  hasOwnProperty: Lo,
  hasOwnProp: Lo,
  // an alias to avoid ESLint no-prototype-builtins detection
  reduceDescriptors: ta,
  freezeMethods: Rp,
  toObjectSet: Ap,
  toCamelCase: Cp,
  noop: Pp,
  toFiniteNumber: kp,
  findKey: Qs,
  global: ze,
  isContextDefined: ea,
  isSpecCompliantForm: Np,
  toJSONObject: Ip,
  isAsyncFn: Fp,
  isThenable: $p,
  setImmediate: na,
  asap: Lp,
  isIterable: Bp
};
function k(e, t, n, r, o) {
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
}
g.inherits(k, Error, {
  toJSON: function() {
    return {
      // Standard
      message: this.message,
      name: this.name,
      // Microsoft
      description: this.description,
      number: this.number,
      // Mozilla
      fileName: this.fileName,
      lineNumber: this.lineNumber,
      columnNumber: this.columnNumber,
      stack: this.stack,
      // Axios
      config: g.toJSONObject(this.config),
      code: this.code,
      status: this.status
    };
  }
});
const ra = k.prototype, oa = {};
[
  "ERR_BAD_OPTION_VALUE",
  "ERR_BAD_OPTION",
  "ECONNABORTED",
  "ETIMEDOUT",
  "ERR_NETWORK",
  "ERR_FR_TOO_MANY_REDIRECTS",
  "ERR_DEPRECATED",
  "ERR_BAD_RESPONSE",
  "ERR_BAD_REQUEST",
  "ERR_CANCELED",
  "ERR_NOT_SUPPORT",
  "ERR_INVALID_URL"
  // eslint-disable-next-line func-names
].forEach((e) => {
  oa[e] = { value: e };
});
Object.defineProperties(k, oa);
Object.defineProperty(ra, "isAxiosError", { value: !0 });
k.from = (e, t, n, r, o, s) => {
  const a = Object.create(ra);
  return g.toFlatObject(e, a, function(c) {
    return c !== Error.prototype;
  }, (i) => i !== "isAxiosError"), k.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
};
const Mp = null;
function Xn(e) {
  return g.isPlainObject(e) || g.isArray(e);
}
function sa(e) {
  return g.endsWith(e, "[]") ? e.slice(0, -2) : e;
}
function Bo(e, t, n) {
  return e ? e.concat(t).map(function(o, s) {
    return o = sa(o), !n && s ? "[" + o + "]" : o;
  }).join(n ? "." : "") : t;
}
function Dp(e) {
  return g.isArray(e) && !e.some(Xn);
}
const jp = g.toFlatObject(g, {}, null, function(t) {
  return /^is[A-Z]/.test(t);
});
function _n(e, t, n) {
  if (!g.isObject(e))
    throw new TypeError("target must be an object");
  t = t || new FormData(), n = g.toFlatObject(n, {
    metaTokens: !0,
    dots: !1,
    indexes: !1
  }, !1, function(d, h) {
    return !g.isUndefined(h[d]);
  });
  const r = n.metaTokens, o = n.visitor || u, s = n.dots, a = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && g.isSpecCompliantForm(t);
  if (!g.isFunction(o))
    throw new TypeError("visitor must be a function");
  function l(f) {
    if (f === null) return "";
    if (g.isDate(f))
      return f.toISOString();
    if (g.isBoolean(f))
      return f.toString();
    if (!c && g.isBlob(f))
      throw new k("Blob is not supported. Use a Buffer instead.");
    return g.isArrayBuffer(f) || g.isTypedArray(f) ? c && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
  }
  function u(f, d, h) {
    let m = f;
    if (f && !h && typeof f == "object") {
      if (g.endsWith(d, "{}"))
        d = r ? d : d.slice(0, -2), f = JSON.stringify(f);
      else if (g.isArray(f) && Dp(f) || (g.isFileList(f) || g.endsWith(d, "[]")) && (m = g.toArray(f)))
        return d = sa(d), m.forEach(function(O, S) {
          !(g.isUndefined(O) || O === null) && t.append(
            // eslint-disable-next-line no-nested-ternary
            a === !0 ? Bo([d], S, s) : a === null ? d : d + "[]",
            l(O)
          );
        }), !1;
    }
    return Xn(f) ? !0 : (t.append(Bo(h, d, s), l(f)), !1);
  }
  const p = [], v = Object.assign(jp, {
    defaultVisitor: u,
    convertValue: l,
    isVisitable: Xn
  });
  function b(f, d) {
    if (!g.isUndefined(f)) {
      if (p.indexOf(f) !== -1)
        throw Error("Circular reference detected in " + d.join("."));
      p.push(f), g.forEach(f, function(m, w) {
        (!(g.isUndefined(m) || m === null) && o.call(
          t,
          m,
          g.isString(w) ? w.trim() : w,
          d,
          v
        )) === !0 && b(m, d ? d.concat(w) : [w]);
      }), p.pop();
    }
  }
  if (!g.isObject(e))
    throw new TypeError("data must be an object");
  return b(e), t;
}
function Mo(e) {
  const t = {
    "!": "%21",
    "'": "%27",
    "(": "%28",
    ")": "%29",
    "~": "%7E",
    "%20": "+",
    "%00": "\0"
  };
  return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
    return t[r];
  });
}
function Ar(e, t) {
  this._pairs = [], e && _n(e, this, t);
}
const aa = Ar.prototype;
aa.append = function(t, n) {
  this._pairs.push([t, n]);
};
aa.toString = function(t) {
  const n = t ? function(r) {
    return t.call(this, r, Mo);
  } : Mo;
  return this._pairs.map(function(o) {
    return n(o[0]) + "=" + n(o[1]);
  }, "").join("&");
};
function Up(e) {
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
}
function ia(e, t, n) {
  if (!t)
    return e;
  const r = n && n.encode || Up;
  g.isFunction(n) && (n = {
    serialize: n
  });
  const o = n && n.serialize;
  let s;
  if (o ? s = o(t, n) : s = g.isURLSearchParams(t) ? t.toString() : new Ar(t, n).toString(r), s) {
    const a = e.indexOf("#");
    a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
  }
  return e;
}
class Do {
  constructor() {
    this.handlers = [];
  }
  /**
   * Add a new interceptor to the stack
   *
   * @param {Function} fulfilled The function to handle `then` for a `Promise`
   * @param {Function} rejected The function to handle `reject` for a `Promise`
   *
   * @return {Number} An ID used to remove interceptor later
   */
  use(t, n, r) {
    return this.handlers.push({
      fulfilled: t,
      rejected: n,
      synchronous: r ? r.synchronous : !1,
      runWhen: r ? r.runWhen : null
    }), this.handlers.length - 1;
  }
  /**
   * Remove an interceptor from the stack
   *
   * @param {Number} id The ID that was returned by `use`
   *
   * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
   */
  eject(t) {
    this.handlers[t] && (this.handlers[t] = null);
  }
  /**
   * Clear all interceptors from the stack
   *
   * @returns {void}
   */
  clear() {
    this.handlers && (this.handlers = []);
  }
  /**
   * Iterate over all the registered interceptors
   *
   * This method is particularly useful for skipping over any
   * interceptors that may have become `null` calling `eject`.
   *
   * @param {Function} fn The function to call for each interceptor
   *
   * @returns {void}
   */
  forEach(t) {
    g.forEach(this.handlers, function(r) {
      r !== null && t(r);
    });
  }
}
const la = {
  silentJSONParsing: !0,
  forcedJSONParsing: !0,
  clarifyTimeoutError: !1
}, Hp = typeof URLSearchParams < "u" ? URLSearchParams : Ar, zp = typeof FormData < "u" ? FormData : null, Vp = typeof Blob < "u" ? Blob : null, qp = {
  isBrowser: !0,
  classes: {
    URLSearchParams: Hp,
    FormData: zp,
    Blob: Vp
  },
  protocols: ["http", "https", "file", "blob", "url", "data"]
}, Pr = typeof window < "u" && typeof document < "u", Yn = typeof navigator == "object" && navigator || void 0, Kp = Pr && (!Yn || ["ReactNative", "NativeScript", "NS"].indexOf(Yn.product) < 0), Wp = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Jp = Pr && window.location.href || "http://localhost", Gp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  hasBrowserEnv: Pr,
  hasStandardBrowserEnv: Kp,
  hasStandardBrowserWebWorkerEnv: Wp,
  navigator: Yn,
  origin: Jp
}, Symbol.toStringTag, { value: "Module" })), Z = {
  ...Gp,
  ...qp
};
function Zp(e, t) {
  return _n(e, new Z.classes.URLSearchParams(), {
    visitor: function(n, r, o, s) {
      return Z.isNode && g.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
    },
    ...t
  });
}
function Xp(e) {
  return g.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
}
function Yp(e) {
  const t = {}, n = Object.keys(e);
  let r;
  const o = n.length;
  let s;
  for (r = 0; r < o; r++)
    s = n[r], t[s] = e[s];
  return t;
}
function ca(e) {
  function t(n, r, o, s) {
    let a = n[s++];
    if (a === "__proto__") return !0;
    const i = Number.isFinite(+a), c = s >= n.length;
    return a = !a && g.isArray(o) ? o.length : a, c ? (g.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !i) : ((!o[a] || !g.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && g.isArray(o[a]) && (o[a] = Yp(o[a])), !i);
  }
  if (g.isFormData(e) && g.isFunction(e.entries)) {
    const n = {};
    return g.forEachEntry(e, (r, o) => {
      t(Xp(r), o, n, 0);
    }), n;
  }
  return null;
}
function Qp(e, t, n) {
  if (g.isString(e))
    try {
      return (t || JSON.parse)(e), g.trim(e);
    } catch (r) {
      if (r.name !== "SyntaxError")
        throw r;
    }
  return (0, JSON.stringify)(e);
}
const Lt = {
  transitional: la,
  adapter: ["xhr", "http", "fetch"],
  transformRequest: [function(t, n) {
    const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = g.isObject(t);
    if (s && g.isHTMLForm(t) && (t = new FormData(t)), g.isFormData(t))
      return o ? JSON.stringify(ca(t)) : t;
    if (g.isArrayBuffer(t) || g.isBuffer(t) || g.isStream(t) || g.isFile(t) || g.isBlob(t) || g.isReadableStream(t))
      return t;
    if (g.isArrayBufferView(t))
      return t.buffer;
    if (g.isURLSearchParams(t))
      return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
    let i;
    if (s) {
      if (r.indexOf("application/x-www-form-urlencoded") > -1)
        return Zp(t, this.formSerializer).toString();
      if ((i = g.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
        const c = this.env && this.env.FormData;
        return _n(
          i ? { "files[]": t } : t,
          c && new c(),
          this.formSerializer
        );
      }
    }
    return s || o ? (n.setContentType("application/json", !1), Qp(t)) : t;
  }],
  transformResponse: [function(t) {
    const n = this.transitional || Lt.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
    if (g.isResponse(t) || g.isReadableStream(t))
      return t;
    if (t && g.isString(t) && (r && !this.responseType || o)) {
      const a = !(n && n.silentJSONParsing) && o;
      try {
        return JSON.parse(t);
      } catch (i) {
        if (a)
          throw i.name === "SyntaxError" ? k.from(i, k.ERR_BAD_RESPONSE, this, null, this.response) : i;
      }
    }
    return t;
  }],
  /**
   * A timeout in milliseconds to abort a request. If set to 0 (default) a
   * timeout is not created.
   */
  timeout: 0,
  xsrfCookieName: "XSRF-TOKEN",
  xsrfHeaderName: "X-XSRF-TOKEN",
  maxContentLength: -1,
  maxBodyLength: -1,
  env: {
    FormData: Z.classes.FormData,
    Blob: Z.classes.Blob
  },
  validateStatus: function(t) {
    return t >= 200 && t < 300;
  },
  headers: {
    common: {
      Accept: "application/json, text/plain, */*",
      "Content-Type": void 0
    }
  }
};
g.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
  Lt.headers[e] = {};
});
const eh = g.toObjectSet([
  "age",
  "authorization",
  "content-length",
  "content-type",
  "etag",
  "expires",
  "from",
  "host",
  "if-modified-since",
  "if-unmodified-since",
  "last-modified",
  "location",
  "max-forwards",
  "proxy-authorization",
  "referer",
  "retry-after",
  "user-agent"
]), th = (e) => {
  const t = {};
  let n, r, o;
  return e && e.split(`
`).forEach(function(a) {
    o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && eh[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
  }), t;
}, jo = Symbol("internals");
function bt(e) {
  return e && String(e).trim().toLowerCase();
}
function Yt(e) {
  return e === !1 || e == null ? e : g.isArray(e) ? e.map(Yt) : String(e);
}
function nh(e) {
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
  let r;
  for (; r = n.exec(e); )
    t[r[1]] = r[2];
  return t;
}
const rh = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
function Un(e, t, n, r, o) {
  if (g.isFunction(r))
    return r.call(this, t, n);
  if (o && (t = n), !!g.isString(t)) {
    if (g.isString(r))
      return t.indexOf(r) !== -1;
    if (g.isRegExp(r))
      return r.test(t);
  }
}
function oh(e) {
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
}
function sh(e, t) {
  const n = g.toCamelCase(" " + t);
  ["get", "set", "has"].forEach((r) => {
    Object.defineProperty(e, r + n, {
      value: function(o, s, a) {
        return this[r].call(this, t, o, s, a);
      },
      configurable: !0
    });
  });
}
class re {
  constructor(t) {
    t && this.set(t);
  }
  set(t, n, r) {
    const o = this;
    function s(i, c, l) {
      const u = bt(c);
      if (!u)
        throw new Error("header name must be a non-empty string");
      const p = g.findKey(o, u);
      (!p || o[p] === void 0 || l === !0 || l === void 0 && o[p] !== !1) && (o[p || c] = Yt(i));
    }
    const a = (i, c) => g.forEach(i, (l, u) => s(l, u, c));
    if (g.isPlainObject(t) || t instanceof this.constructor)
      a(t, n);
    else if (g.isString(t) && (t = t.trim()) && !rh(t))
      a(th(t), n);
    else if (g.isObject(t) && g.isIterable(t)) {
      let i = {}, c, l;
      for (const u of t) {
        if (!g.isArray(u))
          throw TypeError("Object iterator must return a key-value pair");
        i[l = u[0]] = (c = i[l]) ? g.isArray(c) ? [...c, u[1]] : [c, u[1]] : u[1];
      }
      a(i, n);
    } else
      t != null && s(n, t, r);
    return this;
  }
  get(t, n) {
    if (t = bt(t), t) {
      const r = g.findKey(this, t);
      if (r) {
        const o = this[r];
        if (!n)
          return o;
        if (n === !0)
          return nh(o);
        if (g.isFunction(n))
          return n.call(this, o, r);
        if (g.isRegExp(n))
          return n.exec(o);
        throw new TypeError("parser must be boolean|regexp|function");
      }
    }
  }
  has(t, n) {
    if (t = bt(t), t) {
      const r = g.findKey(this, t);
      return !!(r && this[r] !== void 0 && (!n || Un(this, this[r], r, n)));
    }
    return !1;
  }
  delete(t, n) {
    const r = this;
    let o = !1;
    function s(a) {
      if (a = bt(a), a) {
        const i = g.findKey(r, a);
        i && (!n || Un(r, r[i], i, n)) && (delete r[i], o = !0);
      }
    }
    return g.isArray(t) ? t.forEach(s) : s(t), o;
  }
  clear(t) {
    const n = Object.keys(this);
    let r = n.length, o = !1;
    for (; r--; ) {
      const s = n[r];
      (!t || Un(this, this[s], s, t, !0)) && (delete this[s], o = !0);
    }
    return o;
  }
  normalize(t) {
    const n = this, r = {};
    return g.forEach(this, (o, s) => {
      const a = g.findKey(r, s);
      if (a) {
        n[a] = Yt(o), delete n[s];
        return;
      }
      const i = t ? oh(s) : String(s).trim();
      i !== s && delete n[s], n[i] = Yt(o), r[i] = !0;
    }), this;
  }
  concat(...t) {
    return this.constructor.concat(this, ...t);
  }
  toJSON(t) {
    const n = /* @__PURE__ */ Object.create(null);
    return g.forEach(this, (r, o) => {
      r != null && r !== !1 && (n[o] = t && g.isArray(r) ? r.join(", ") : r);
    }), n;
  }
  [Symbol.iterator]() {
    return Object.entries(this.toJSON())[Symbol.iterator]();
  }
  toString() {
    return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
`);
  }
  getSetCookie() {
    return this.get("set-cookie") || [];
  }
  get [Symbol.toStringTag]() {
    return "AxiosHeaders";
  }
  static from(t) {
    return t instanceof this ? t : new this(t);
  }
  static concat(t, ...n) {
    const r = new this(t);
    return n.forEach((o) => r.set(o)), r;
  }
  static accessor(t) {
    const r = (this[jo] = this[jo] = {
      accessors: {}
    }).accessors, o = this.prototype;
    function s(a) {
      const i = bt(a);
      r[i] || (sh(o, a), r[i] = !0);
    }
    return g.isArray(t) ? t.forEach(s) : s(t), this;
  }
}
re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
g.reduceDescriptors(re.prototype, ({ value: e }, t) => {
  let n = t[0].toUpperCase() + t.slice(1);
  return {
    get: () => e,
    set(r) {
      this[n] = r;
    }
  };
});
g.freezeMethods(re);
function Hn(e, t) {
  const n = this || Lt, r = t || n, o = re.from(r.headers);
  let s = r.data;
  return g.forEach(e, function(i) {
    s = i.call(n, s, o.normalize(), t ? t.status : void 0);
  }), o.normalize(), s;
}
function ua(e) {
  return !!(e && e.__CANCEL__);
}
function ft(e, t, n) {
  k.call(this, e ?? "canceled", k.ERR_CANCELED, t, n), this.name = "CanceledError";
}
g.inherits(ft, k, {
  __CANCEL__: !0
});
function fa(e, t, n) {
  const r = n.config.validateStatus;
  !n.status || !r || r(n.status) ? e(n) : t(new k(
    "Request failed with status code " + n.status,
    [k.ERR_BAD_REQUEST, k.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
    n.config,
    n.request,
    n
  ));
}
function ah(e) {
  const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
  return t && t[1] || "";
}
function ih(e, t) {
  e = e || 10;
  const n = new Array(e), r = new Array(e);
  let o = 0, s = 0, a;
  return t = t !== void 0 ? t : 1e3, function(c) {
    const l = Date.now(), u = r[s];
    a || (a = l), n[o] = c, r[o] = l;
    let p = s, v = 0;
    for (; p !== o; )
      v += n[p++], p = p % e;
    if (o = (o + 1) % e, o === s && (s = (s + 1) % e), l - a < t)
      return;
    const b = u && l - u;
    return b ? Math.round(v * 1e3 / b) : void 0;
  };
}
function lh(e, t) {
  let n = 0, r = 1e3 / t, o, s;
  const a = (l, u = Date.now()) => {
    n = u, o = null, s && (clearTimeout(s), s = null), e(...l);
  };
  return [(...l) => {
    const u = Date.now(), p = u - n;
    p >= r ? a(l, u) : (o = l, s || (s = setTimeout(() => {
      s = null, a(o);
    }, r - p)));
  }, () => o && a(o)];
}
const dn = (e, t, n = 3) => {
  let r = 0;
  const o = ih(50, 250);
  return lh((s) => {
    const a = s.loaded, i = s.lengthComputable ? s.total : void 0, c = a - r, l = o(c), u = a <= i;
    r = a;
    const p = {
      loaded: a,
      total: i,
      progress: i ? a / i : void 0,
      bytes: c,
      rate: l || void 0,
      estimated: l && i && u ? (i - a) / l : void 0,
      event: s,
      lengthComputable: i != null,
      [t ? "download" : "upload"]: !0
    };
    e(p);
  }, n);
}, Uo = (e, t) => {
  const n = e != null;
  return [(r) => t[0]({
    lengthComputable: n,
    total: e,
    loaded: r
  }), t[1]];
}, Ho = (e) => (...t) => g.asap(() => e(...t)), ch = Z.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Z.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
  new URL(Z.origin),
  Z.navigator && /(msie|trident)/i.test(Z.navigator.userAgent)
) : () => !0, uh = Z.hasStandardBrowserEnv ? (
  // Standard browser envs support document.cookie
  {
    write(e, t, n, r, o, s) {
      const a = [e + "=" + encodeURIComponent(t)];
      g.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), g.isString(r) && a.push("path=" + r), g.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; ");
    },
    read(e) {
      const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
      return t ? decodeURIComponent(t[3]) : null;
    },
    remove(e) {
      this.write(e, "", Date.now() - 864e5);
    }
  }
) : (
  // Non-standard browser env (web workers, react-native) lack needed support.
  {
    write() {
    },
    read() {
      return null;
    },
    remove() {
    }
  }
);
function fh(e) {
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
}
function dh(e, t) {
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
}
function da(e, t, n) {
  let r = !fh(t);
  return e && (r || n == !1) ? dh(e, t) : t;
}
const zo = (e) => e instanceof re ? { ...e } : e;
function Je(e, t) {
  t = t || {};
  const n = {};
  function r(l, u, p, v) {
    return g.isPlainObject(l) && g.isPlainObject(u) ? g.merge.call({ caseless: v }, l, u) : g.isPlainObject(u) ? g.merge({}, u) : g.isArray(u) ? u.slice() : u;
  }
  function o(l, u, p, v) {
    if (g.isUndefined(u)) {
      if (!g.isUndefined(l))
        return r(void 0, l, p, v);
    } else return r(l, u, p, v);
  }
  function s(l, u) {
    if (!g.isUndefined(u))
      return r(void 0, u);
  }
  function a(l, u) {
    if (g.isUndefined(u)) {
      if (!g.isUndefined(l))
        return r(void 0, l);
    } else return r(void 0, u);
  }
  function i(l, u, p) {
    if (p in t)
      return r(l, u);
    if (p in e)
      return r(void 0, l);
  }
  const c = {
    url: s,
    method: s,
    data: s,
    baseURL: a,
    transformRequest: a,
    transformResponse: a,
    paramsSerializer: a,
    timeout: a,
    timeoutMessage: a,
    withCredentials: a,
    withXSRFToken: a,
    adapter: a,
    responseType: a,
    xsrfCookieName: a,
    xsrfHeaderName: a,
    onUploadProgress: a,
    onDownloadProgress: a,
    decompress: a,
    maxContentLength: a,
    maxBodyLength: a,
    beforeRedirect: a,
    transport: a,
    httpAgent: a,
    httpsAgent: a,
    cancelToken: a,
    socketPath: a,
    responseEncoding: a,
    validateStatus: i,
    headers: (l, u, p) => o(zo(l), zo(u), p, !0)
  };
  return g.forEach(Object.keys({ ...e, ...t }), function(u) {
    const p = c[u] || o, v = p(e[u], t[u], u);
    g.isUndefined(v) && p !== i || (n[u] = v);
  }), n;
}
const pa = (e) => {
  const t = Je({}, e);
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: i } = t;
  t.headers = a = re.from(a), t.url = ia(da(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), i && a.set(
    "Authorization",
    "Basic " + btoa((i.username || "") + ":" + (i.password ? unescape(encodeURIComponent(i.password)) : ""))
  );
  let c;
  if (g.isFormData(n)) {
    if (Z.hasStandardBrowserEnv || Z.hasStandardBrowserWebWorkerEnv)
      a.setContentType(void 0);
    else if ((c = a.getContentType()) !== !1) {
      const [l, ...u] = c ? c.split(";").map((p) => p.trim()).filter(Boolean) : [];
      a.setContentType([l || "multipart/form-data", ...u].join("; "));
    }
  }
  if (Z.hasStandardBrowserEnv && (r && g.isFunction(r) && (r = r(t)), r || r !== !1 && ch(t.url))) {
    const l = o && s && uh.read(s);
    l && a.set(o, l);
  }
  return t;
}, ph = typeof XMLHttpRequest < "u", hh = ph && function(e) {
  return new Promise(function(n, r) {
    const o = pa(e);
    let s = o.data;
    const a = re.from(o.headers).normalize();
    let { responseType: i, onUploadProgress: c, onDownloadProgress: l } = o, u, p, v, b, f;
    function d() {
      b && b(), f && f(), o.cancelToken && o.cancelToken.unsubscribe(u), o.signal && o.signal.removeEventListener("abort", u);
    }
    let h = new XMLHttpRequest();
    h.open(o.method.toUpperCase(), o.url, !0), h.timeout = o.timeout;
    function m() {
      if (!h)
        return;
      const O = re.from(
        "getAllResponseHeaders" in h && h.getAllResponseHeaders()
      ), C = {
        data: !i || i === "text" || i === "json" ? h.responseText : h.response,
        status: h.status,
        statusText: h.statusText,
        headers: O,
        config: e,
        request: h
      };
      fa(function(T) {
        n(T), d();
      }, function(T) {
        r(T), d();
      }, C), h = null;
    }
    "onloadend" in h ? h.onloadend = m : h.onreadystatechange = function() {
      !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(m);
    }, h.onabort = function() {
      h && (r(new k("Request aborted", k.ECONNABORTED, e, h)), h = null);
    }, h.onerror = function() {
      r(new k("Network Error", k.ERR_NETWORK, e, h)), h = null;
    }, h.ontimeout = function() {
      let S = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
      const C = o.transitional || la;
      o.timeoutErrorMessage && (S = o.timeoutErrorMessage), r(new k(
        S,
        C.clarifyTimeoutError ? k.ETIMEDOUT : k.ECONNABORTED,
        e,
        h
      )), h = null;
    }, s === void 0 && a.setContentType(null), "setRequestHeader" in h && g.forEach(a.toJSON(), function(S, C) {
      h.setRequestHeader(C, S);
    }), g.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), i && i !== "json" && (h.responseType = o.responseType), l && ([v, f] = dn(l, !0), h.addEventListener("progress", v)), c && h.upload && ([p, b] = dn(c), h.upload.addEventListener("progress", p), h.upload.addEventListener("loadend", b)), (o.cancelToken || o.signal) && (u = (O) => {
      h && (r(!O || O.type ? new ft(null, e, h) : O), h.abort(), h = null);
    }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
    const w = ah(o.url);
    if (w && Z.protocols.indexOf(w) === -1) {
      r(new k("Unsupported protocol " + w + ":", k.ERR_BAD_REQUEST, e));
      return;
    }
    h.send(s || null);
  });
}, mh = (e, t) => {
  const { length: n } = e = e ? e.filter(Boolean) : [];
  if (t || n) {
    let r = new AbortController(), o;
    const s = function(l) {
      if (!o) {
        o = !0, i();
        const u = l instanceof Error ? l : this.reason;
        r.abort(u instanceof k ? u : new ft(u instanceof Error ? u.message : u));
      }
    };
    let a = t && setTimeout(() => {
      a = null, s(new k(`timeout ${t} of ms exceeded`, k.ETIMEDOUT));
    }, t);
    const i = () => {
      e && (a && clearTimeout(a), a = null, e.forEach((l) => {
        l.unsubscribe ? l.unsubscribe(s) : l.removeEventListener("abort", s);
      }), e = null);
    };
    e.forEach((l) => l.addEventListener("abort", s));
    const { signal: c } = r;
    return c.unsubscribe = () => g.asap(i), c;
  }
}, vh = function* (e, t) {
  let n = e.byteLength;
  if (n < t) {
    yield e;
    return;
  }
  let r = 0, o;
  for (; r < n; )
    o = r + t, yield e.slice(r, o), r = o;
}, gh = async function* (e, t) {
  for await (const n of bh(e))
    yield* vh(n, t);
}, bh = async function* (e) {
  if (e[Symbol.asyncIterator]) {
    yield* e;
    return;
  }
  const t = e.getReader();
  try {
    for (; ; ) {
      const { done: n, value: r } = await t.read();
      if (n)
        break;
      yield r;
    }
  } finally {
    await t.cancel();
  }
}, Vo = (e, t, n, r) => {
  const o = gh(e, t);
  let s = 0, a, i = (c) => {
    a || (a = !0, r && r(c));
  };
  return new ReadableStream({
    async pull(c) {
      try {
        const { done: l, value: u } = await o.next();
        if (l) {
          i(), c.close();
          return;
        }
        let p = u.byteLength;
        if (n) {
          let v = s += p;
          n(v);
        }
        c.enqueue(new Uint8Array(u));
      } catch (l) {
        throw i(l), l;
      }
    },
    cancel(c) {
      return i(c), o.return();
    }
  }, {
    highWaterMark: 2
  });
}, Tn = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Tn && typeof ReadableStream == "function", yh = Tn && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), ma = (e, ...t) => {
  try {
    return !!e(...t);
  } catch {
    return !1;
  }
}, wh = ha && ma(() => {
  let e = !1;
  const t = new Request(Z.origin, {
    body: new ReadableStream(),
    method: "POST",
    get duplex() {
      return e = !0, "half";
    }
  }).headers.has("Content-Type");
  return e && !t;
}), qo = 64 * 1024, Qn = ha && ma(() => g.isReadableStream(new Response("").body)), pn = {
  stream: Qn && ((e) => e.body)
};
Tn && ((e) => {
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
    !pn[t] && (pn[t] = g.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
      throw new k(`Response type '${t}' is not supported`, k.ERR_NOT_SUPPORT, r);
    });
  });
})(new Response());
const Eh = async (e) => {
  if (e == null)
    return 0;
  if (g.isBlob(e))
    return e.size;
  if (g.isSpecCompliantForm(e))
    return (await new Request(Z.origin, {
      method: "POST",
      body: e
    }).arrayBuffer()).byteLength;
  if (g.isArrayBufferView(e) || g.isArrayBuffer(e))
    return e.byteLength;
  if (g.isURLSearchParams(e) && (e = e + ""), g.isString(e))
    return (await yh(e)).byteLength;
}, Sh = async (e, t) => {
  const n = g.toFiniteNumber(e.getContentLength());
  return n ?? Eh(t);
}, Oh = Tn && (async (e) => {
  let {
    url: t,
    method: n,
    data: r,
    signal: o,
    cancelToken: s,
    timeout: a,
    onDownloadProgress: i,
    onUploadProgress: c,
    responseType: l,
    headers: u,
    withCredentials: p = "same-origin",
    fetchOptions: v
  } = pa(e);
  l = l ? (l + "").toLowerCase() : "text";
  let b = mh([o, s && s.toAbortSignal()], a), f;
  const d = b && b.unsubscribe && (() => {
    b.unsubscribe();
  });
  let h;
  try {
    if (c && wh && n !== "get" && n !== "head" && (h = await Sh(u, r)) !== 0) {
      let C = new Request(t, {
        method: "POST",
        body: r,
        duplex: "half"
      }), R;
      if (g.isFormData(r) && (R = C.headers.get("content-type")) && u.setContentType(R), C.body) {
        const [T, _] = Uo(
          h,
          dn(Ho(c))
        );
        r = Vo(C.body, qo, T, _);
      }
    }
    g.isString(p) || (p = p ? "include" : "omit");
    const m = "credentials" in Request.prototype;
    f = new Request(t, {
      ...v,
      signal: b,
      method: n.toUpperCase(),
      headers: u.normalize().toJSON(),
      body: r,
      duplex: "half",
      credentials: m ? p : void 0
    });
    let w = await fetch(f, v);
    const O = Qn && (l === "stream" || l === "response");
    if (Qn && (i || O && d)) {
      const C = {};
      ["status", "statusText", "headers"].forEach((N) => {
        C[N] = w[N];
      });
      const R = g.toFiniteNumber(w.headers.get("content-length")), [T, _] = i && Uo(
        R,
        dn(Ho(i), !0)
      ) || [];
      w = new Response(
        Vo(w.body, qo, T, () => {
          _ && _(), d && d();
        }),
        C
      );
    }
    l = l || "text";
    let S = await pn[g.findKey(pn, l) || "text"](w, e);
    return !O && d && d(), await new Promise((C, R) => {
      fa(C, R, {
        data: S,
        headers: re.from(w.headers),
        status: w.status,
        statusText: w.statusText,
        config: e,
        request: f
      });
    });
  } catch (m) {
    throw d && d(), m && m.name === "TypeError" && /Load failed|fetch/i.test(m.message) ? Object.assign(
      new k("Network Error", k.ERR_NETWORK, e, f),
      {
        cause: m.cause || m
      }
    ) : k.from(m, m && m.code, e, f);
  }
}), er = {
  http: Mp,
  xhr: hh,
  fetch: Oh
};
g.forEach(er, (e, t) => {
  if (e) {
    try {
      Object.defineProperty(e, "name", { value: t });
    } catch {
    }
    Object.defineProperty(e, "adapterName", { value: t });
  }
});
const Ko = (e) => `- ${e}`, _h = (e) => g.isFunction(e) || e === null || e === !1, va = {
  getAdapter: (e) => {
    e = g.isArray(e) ? e : [e];
    const { length: t } = e;
    let n, r;
    const o = {};
    for (let s = 0; s < t; s++) {
      n = e[s];
      let a;
      if (r = n, !_h(n) && (r = er[(a = String(n)).toLowerCase()], r === void 0))
        throw new k(`Unknown adapter '${a}'`);
      if (r)
        break;
      o[a || "#" + s] = r;
    }
    if (!r) {
      const s = Object.entries(o).map(
        ([i, c]) => `adapter ${i} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
      );
      let a = t ? s.length > 1 ? `since :
` + s.map(Ko).join(`
`) : " " + Ko(s[0]) : "as no adapter specified";
      throw new k(
        "There is no suitable adapter to dispatch the request " + a,
        "ERR_NOT_SUPPORT"
      );
    }
    return r;
  },
  adapters: er
};
function zn(e) {
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
    throw new ft(null, e);
}
function Wo(e) {
  return zn(e), e.headers = re.from(e.headers), e.data = Hn.call(
    e,
    e.transformRequest
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), va.getAdapter(e.adapter || Lt.adapter)(e).then(function(r) {
    return zn(e), r.data = Hn.call(
      e,
      e.transformResponse,
      r
    ), r.headers = re.from(r.headers), r;
  }, function(r) {
    return ua(r) || (zn(e), r && r.response && (r.response.data = Hn.call(
      e,
      e.transformResponse,
      r.response
    ), r.response.headers = re.from(r.response.headers))), Promise.reject(r);
  });
}
const ga = "1.11.0", Cn = {};
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
  Cn[e] = function(r) {
    return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
  };
});
const Jo = {};
Cn.transitional = function(t, n, r) {
  function o(s, a) {
    return "[Axios v" + ga + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
  }
  return (s, a, i) => {
    if (t === !1)
      throw new k(
        o(a, " has been removed" + (n ? " in " + n : "")),
        k.ERR_DEPRECATED
      );
    return n && !Jo[a] && (Jo[a] = !0, console.warn(
      o(
        a,
        " has been deprecated since v" + n + " and will be removed in the near future"
      )
    )), t ? t(s, a, i) : !0;
  };
};
Cn.spelling = function(t) {
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
};
function Th(e, t, n) {
  if (typeof e != "object")
    throw new k("options must be an object", k.ERR_BAD_OPTION_VALUE);
  const r = Object.keys(e);
  let o = r.length;
  for (; o-- > 0; ) {
    const s = r[o], a = t[s];
    if (a) {
      const i = e[s], c = i === void 0 || a(i, s, e);
      if (c !== !0)
        throw new k("option " + s + " must be " + c, k.ERR_BAD_OPTION_VALUE);
      continue;
    }
    if (n !== !0)
      throw new k("Unknown option " + s, k.ERR_BAD_OPTION);
  }
}
const Qt = {
  assertOptions: Th,
  validators: Cn
}, ge = Qt.validators;
class qe {
  constructor(t) {
    this.defaults = t || {}, this.interceptors = {
      request: new Do(),
      response: new Do()
    };
  }
  /**
   * Dispatch a request
   *
   * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
   * @param {?Object} config
   *
   * @returns {Promise} The Promise to be fulfilled
   */
  async request(t, n) {
    try {
      return await this._request(t, n);
    } catch (r) {
      if (r instanceof Error) {
        let o = {};
        Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
        const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
        try {
          r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
` + s) : r.stack = s;
        } catch {
        }
      }
      throw r;
    }
  }
  _request(t, n) {
    typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Je(this.defaults, n);
    const { transitional: r, paramsSerializer: o, headers: s } = n;
    r !== void 0 && Qt.assertOptions(r, {
      silentJSONParsing: ge.transitional(ge.boolean),
      forcedJSONParsing: ge.transitional(ge.boolean),
      clarifyTimeoutError: ge.transitional(ge.boolean)
    }, !1), o != null && (g.isFunction(o) ? n.paramsSerializer = {
      serialize: o
    } : Qt.assertOptions(o, {
      encode: ge.function,
      serialize: ge.function
    }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Qt.assertOptions(n, {
      baseUrl: ge.spelling("baseURL"),
      withXsrfToken: ge.spelling("withXSRFToken")
    }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
    let a = s && g.merge(
      s.common,
      s[n.method]
    );
    s && g.forEach(
      ["delete", "get", "head", "post", "put", "patch", "common"],
      (f) => {
        delete s[f];
      }
    ), n.headers = re.concat(a, s);
    const i = [];
    let c = !0;
    this.interceptors.request.forEach(function(d) {
      typeof d.runWhen == "function" && d.runWhen(n) === !1 || (c = c && d.synchronous, i.unshift(d.fulfilled, d.rejected));
    });
    const l = [];
    this.interceptors.response.forEach(function(d) {
      l.push(d.fulfilled, d.rejected);
    });
    let u, p = 0, v;
    if (!c) {
      const f = [Wo.bind(this), void 0];
      for (f.unshift(...i), f.push(...l), v = f.length, u = Promise.resolve(n); p < v; )
        u = u.then(f[p++], f[p++]);
      return u;
    }
    v = i.length;
    let b = n;
    for (p = 0; p < v; ) {
      const f = i[p++], d = i[p++];
      try {
        b = f(b);
      } catch (h) {
        d.call(this, h);
        break;
      }
    }
    try {
      u = Wo.call(this, b);
    } catch (f) {
      return Promise.reject(f);
    }
    for (p = 0, v = l.length; p < v; )
      u = u.then(l[p++], l[p++]);
    return u;
  }
  getUri(t) {
    t = Je(this.defaults, t);
    const n = da(t.baseURL, t.url, t.allowAbsoluteUrls);
    return ia(n, t.params, t.paramsSerializer);
  }
}
g.forEach(["delete", "get", "head", "options"], function(t) {
  qe.prototype[t] = function(n, r) {
    return this.request(Je(r || {}, {
      method: t,
      url: n,
      data: (r || {}).data
    }));
  };
});
g.forEach(["post", "put", "patch"], function(t) {
  function n(r) {
    return function(s, a, i) {
      return this.request(Je(i || {}, {
        method: t,
        headers: r ? {
          "Content-Type": "multipart/form-data"
        } : {},
        url: s,
        data: a
      }));
    };
  }
  qe.prototype[t] = n(), qe.prototype[t + "Form"] = n(!0);
});
class kr {
  constructor(t) {
    if (typeof t != "function")
      throw new TypeError("executor must be a function.");
    let n;
    this.promise = new Promise(function(s) {
      n = s;
    });
    const r = this;
    this.promise.then((o) => {
      if (!r._listeners) return;
      let s = r._listeners.length;
      for (; s-- > 0; )
        r._listeners[s](o);
      r._listeners = null;
    }), this.promise.then = (o) => {
      let s;
      const a = new Promise((i) => {
        r.subscribe(i), s = i;
      }).then(o);
      return a.cancel = function() {
        r.unsubscribe(s);
      }, a;
    }, t(function(s, a, i) {
      r.reason || (r.reason = new ft(s, a, i), n(r.reason));
    });
  }
  /**
   * Throws a `CanceledError` if cancellation has been requested.
   */
  throwIfRequested() {
    if (this.reason)
      throw this.reason;
  }
  /**
   * Subscribe to the cancel signal
   */
  subscribe(t) {
    if (this.reason) {
      t(this.reason);
      return;
    }
    this._listeners ? this._listeners.push(t) : this._listeners = [t];
  }
  /**
   * Unsubscribe from the cancel signal
   */
  unsubscribe(t) {
    if (!this._listeners)
      return;
    const n = this._listeners.indexOf(t);
    n !== -1 && this._listeners.splice(n, 1);
  }
  toAbortSignal() {
    const t = new AbortController(), n = (r) => {
      t.abort(r);
    };
    return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
  }
  /**
   * Returns an object that contains a new `CancelToken` and a function that, when called,
   * cancels the `CancelToken`.
   */
  static source() {
    let t;
    return {
      token: new kr(function(o) {
        t = o;
      }),
      cancel: t
    };
  }
}
function Ch(e) {
  return function(n) {
    return e.apply(null, n);
  };
}
function xh(e) {
  return g.isObject(e) && e.isAxiosError === !0;
}
const tr = {
  Continue: 100,
  SwitchingProtocols: 101,
  Processing: 102,
  EarlyHints: 103,
  Ok: 200,
  Created: 201,
  Accepted: 202,
  NonAuthoritativeInformation: 203,
  NoContent: 204,
  ResetContent: 205,
  PartialContent: 206,
  MultiStatus: 207,
  AlreadyReported: 208,
  ImUsed: 226,
  MultipleChoices: 300,
  MovedPermanently: 301,
  Found: 302,
  SeeOther: 303,
  NotModified: 304,
  UseProxy: 305,
  Unused: 306,
  TemporaryRedirect: 307,
  PermanentRedirect: 308,
  BadRequest: 400,
  Unauthorized: 401,
  PaymentRequired: 402,
  Forbidden: 403,
  NotFound: 404,
  MethodNotAllowed: 405,
  NotAcceptable: 406,
  ProxyAuthenticationRequired: 407,
  RequestTimeout: 408,
  Conflict: 409,
  Gone: 410,
  LengthRequired: 411,
  PreconditionFailed: 412,
  PayloadTooLarge: 413,
  UriTooLong: 414,
  UnsupportedMediaType: 415,
  RangeNotSatisfiable: 416,
  ExpectationFailed: 417,
  ImATeapot: 418,
  MisdirectedRequest: 421,
  UnprocessableEntity: 422,
  Locked: 423,
  FailedDependency: 424,
  TooEarly: 425,
  UpgradeRequired: 426,
  PreconditionRequired: 428,
  TooManyRequests: 429,
  RequestHeaderFieldsTooLarge: 431,
  UnavailableForLegalReasons: 451,
  InternalServerError: 500,
  NotImplemented: 501,
  BadGateway: 502,
  ServiceUnavailable: 503,
  GatewayTimeout: 504,
  HttpVersionNotSupported: 505,
  VariantAlsoNegotiates: 506,
  InsufficientStorage: 507,
  LoopDetected: 508,
  NotExtended: 510,
  NetworkAuthenticationRequired: 511
};
Object.entries(tr).forEach(([e, t]) => {
  tr[t] = e;
});
function ba(e) {
  const t = new qe(e), n = Gs(qe.prototype.request, t);
  return g.extend(n, qe.prototype, t, { allOwnKeys: !0 }), g.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
    return ba(Je(e, o));
  }, n;
}
const V = ba(Lt);
V.Axios = qe;
V.CanceledError = ft;
V.CancelToken = kr;
V.isCancel = ua;
V.VERSION = ga;
V.toFormData = _n;
V.AxiosError = k;
V.Cancel = V.CanceledError;
V.all = function(t) {
  return Promise.all(t);
};
V.spread = Ch;
V.isAxiosError = xh;
V.mergeConfig = Je;
V.AxiosHeaders = re;
V.formToJSON = (e) => ca(g.isHTMLForm(e) ? new FormData(e) : e);
V.getAdapter = va.getAdapter;
V.HttpStatusCode = tr;
V.default = V;
const Rh = "data:image/svg+xml,%3csvg%20id='logo-sparc-wave-primary'%20data-name='logo-sparc-wave-primary'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20190.5854'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20y1='96.3505'%20x2='400'%20y2='96.3505'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%230b00bf'/%3e%3cstop%20offset='1'%20stop-color='%23bc00fc'/%3e%3c/linearGradient%3e%3c/defs%3e%3ctitle%3eSPARC%20Logo%3c/title%3e%3cpath%20d='M396.6976,128.6248l-146.2735-3.38a6.5358,6.5358,0,0,0-6.1378,3.9236l-.0612.1407-13.673,31.4482L202.9416,9.5333l-.01-.0685a8.9823,8.9823,0,0,0-17.6624-.0114L163.673,125.3819,3.298,129.2886a3.38,3.38,0,0,0,.0269,6.7592L169.34,138.7635a6.5939,6.5939,0,0,0,6.5373-5.1457l.0571-.2546,17.8534-79.5649L221.26,185.1237l.0256.1243A6.7593,6.7593,0,0,0,234.092,186.52L254.9005,138.66l141.7971-3.2762a3.3805,3.3805,0,0,0,0-6.7592Z'%20style='fill:url(%23linear-gradient)'/%3e%3cpath%20d='M25.6793,0C41.3957,0,51.057,10.0926,51.057,26.0972v9.5162H36.2053V26.0972c0-7.3532-3.8945-11.8219-10.526-11.8219-6.7768,0-10.6691,4.4687-10.6691,11.8219,0,3.8945,1.2982,7.3533,5.4786,11.3908l19.754,18.601C46.5861,62.1441,52.21,68.7778,52.21,79.88c0,16.0047-9.95,26.0973-25.9543,26.0973C10.108,105.9776.1585,95.885.1585,79.88V70.362H15.01V79.88c0,7.3533,4.0375,11.822,11.2455,11.822,7.065,0,11.1025-4.4687,11.1025-11.822,0-4.4709-2.1628-8.6514-6.0551-12.2576L11.1158,48.7357C3.043,41.2372.1585,34.8939.1585,25.666.1585,10.0926,9.82,0,25.6793,0Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M99.7971,69.7856v35.1821H84.9454V1.01h25.3755c16.0047,0,26.0973,10.0926,26.0973,26.0973V43.6883c0,16.15-10.0926,26.0973-26.0973,26.0973Zm10.3808-13.9849c7.2081,0,11.3908-4.3257,11.3908-11.6789V26.6759c0-7.21-4.1827-11.6811-11.3908-11.6811H99.7971V55.8007Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M278.5812,108.147H263.73V4.1893h26.0972c16.0047,0,26.0973,10.0926,26.0973,26.0972v14.13c0,9.95-4.3257,17.7363-11.3908,22.205,4.1827,12.6889,10.0926,29.9917,13.8418,41.5254h-15.14L290.6914,70.3708h-12.11Zm11.1-51.7632c7.21,0,11.3907-4.3257,11.3907-11.5338V29.8553c0-7.21-4.18-11.6812-11.3907-11.6812h-11.1v38.21Z'%20style='fill:%230e0e19'/%3e%3cpath%20d='M399.844,73.5414V83.06c0,16.0047-9.9474,26.0973-25.9521,26.0973-16.15,0-26.0972-10.0926-26.0972-26.0973V29.2766c0-16.0046,9.9473-26.0972,26.0972-26.0972,16.0047,0,25.9521,10.0926,25.9521,26.0972v9.5161h-14.85V29.2766c0-7.3532-4.0374-11.822-11.1025-11.822-7.21,0-11.2477,4.4688-11.2477,11.822V83.06c0,7.3533,4.0375,11.822,11.2477,11.822,7.0651,0,11.1025-4.4687,11.1025-11.822V73.5414Z'%20style='fill:%230e0e19'/%3e%3c/svg%3e";
function Ah() {
  const e = Rh;
  async function t(n, r, o) {
    return await V({
      method: "get",
      url: n,
      params: r,
      timeout: o
    });
  }
  return {
    defaultImg: e,
    getRequest: t
  };
}
const Ph = ["src"], kh = ["src"], Nh = {
  key: 1,
  class: "details"
}, Ih = { key: 0 }, Fh = { class: "title text-placeholder" }, $h = {
  __name: "Card",
  props: {
    data: {
      type: Object,
      required: !0
    },
    width: {
      type: Number,
      default: 3
    },
    height: {
      type: Number,
      default: 3
    },
    showCardDetails: {
      type: Boolean
    },
    bodyStyle: {
      type: Object,
      default: () => ({ padding: "20px", background: "#ffffff" })
    },
    imageStyle: {
      type: Object,
      default: () => ({})
    },
    imageContainerStyle: {
      type: Object,
      default: () => ({})
    },
    shadow: {
      type: String,
      default: "always"
    }
  },
  emits: ["card-clicked", "datalink-clicked"],
  setup(e, { emit: t }) {
    function n(m) {
      let w;
      try {
        w = new URL(m);
      } catch {
        return !1;
      }
      return w.protocol === "http:" || w.protocol === "https:";
    }
    const { defaultImg: r, getRequest: o } = Ah(), s = A();
    A(null), A(4);
    const a = A(void 0), i = A(!1), c = A(!1), l = A(!1), u = e, p = t, v = E(() => u.data.title && ((a ? a.value : !1) || i.value) && (u.data.link || u.data.userData));
    E(() => showCardDetails ? height * 0.525 : height), E(() => width - 2 * b), E(() => height * 0.237);
    const b = E(() => height * 0.076);
    E(() => showCardDetails ? height * 0.525 : height), U(
      () => u.data,
      () => {
        a.value = void 0, i.value = !1, l.value = !1, c.value = !1, u.data.thumbnail ? n(u.data.thumbnail) && u.data.mimetype ? d(u.data.thumbnail, { fetchAttempts: 0 }) : a.value = u.data.thumbnail : i.value = !0, tt(() => {
          h();
        });
      },
      { immediate: !0 }
    ), Da(() => {
      tt(() => {
        h();
      });
    });
    function f() {
      if (u.data.link) {
        const m = document.createElement("a");
        m.href = u.data.link, m.target = "_blank", document.body.appendChild(m), m.click(), p("datalink-clicked", u.data.link), m.remove();
      }
      u.data.userData && p("card-clicked", u.data.userData);
    }
    function d(m, w) {
      o(m, {}, 11e3).then(
        (O) => {
          let S = O.data;
          typeof S == "string" && S.startsWith("data:") ? a.value = O.data : u.data.mimetype ? a.value = `data:${u.data.mimetype};base64,${O.data}` : a.value = O.data;
        },
        (O) => {
          O.message.includes("timeout") && O.message.includes("exceeded") && w.fetchAttempts < 3 ? (w.fetchAttempts += 1, d(m, w)) : i.value = !0;
        }
      );
    }
    function h() {
      if (u.data.hideTitle)
        c.value = !0, l.value = !0;
      else {
        const m = s;
        m && m.offsetParent ? (l.value = !0, m.offsetWidth >= m.scrollWidth ? c.value = !0 : c.value = !1) : u.data.title.length > 20 ? c.value = !1 : c.value = !0;
      }
    }
    return (m, w) => {
      const O = Kd, S = Od, C = Rd, R = Yd;
      return P(), G(C, {
        shadow: e.shadow,
        "body-style": e.bodyStyle,
        style: De({ padding: "0px", maxWidth: e.width + "rem" }),
        class: "card"
      }, {
        default: K(() => [
          et((P(), B("div", null, [
            se("div", {
              class: "cursor-pointer",
              style: De(e.imageContainerStyle),
              onClick: nn(f, ["prevent"])
            }, [
              i.value ? (P(), B("img", {
                key: 0,
                src: y(r),
                style: De(e.imageStyle)
              }, null, 12, Ph)) : (P(), B("img", {
                key: 1,
                src: a.value,
                alt: "thumbnail loading ...",
                style: De(e.imageStyle)
              }, null, 12, kh))
            ], 4),
            Y("", !0),
            e.showCardDetails ? (P(), B("div", Nh, [
              e.data.hideType ? Y("", !0) : (P(), B("p", Ih, [
                se("b", null, Ae(e.data.type), 1)
              ])),
              ke(O, {
                "virtual-ref": s.value,
                disabled: c.value,
                content: e.data.title,
                placement: "top",
                trigger: "hover",
                "popper-class": "gallery-popper",
                "virtual-triggering": ""
              }, null, 8, ["virtual-ref", "disabled", "content"]),
              et(se("p", {
                ref_key: "titleText",
                ref: s,
                class: "title"
              }, Ae(e.data.title), 513), [
                [en, !e.data.hideTitle]
              ]),
              et(se("p", Fh, null, 512), [
                [en, e.data.hideTitle]
              ]),
              ke(S, {
                class: "button",
                onClick: nn(f, ["prevent"]),
                size: "large"
              }, {
                default: K(() => [
                  tn(" View " + Ae(e.data.type), 1)
                ]),
                _: 1
              })
            ])) : Y("", !0)
          ])), [
            [R, !v.value]
          ])
        ]),
        _: 1
      }, 8, ["shadow", "body-style", "style"]);
    };
  }
}, Lh = /* @__PURE__ */ nr($h, [["__scopeId", "data-v-8306387d"]]), xn = (e) => (ja("data-v-e745b327"), e = e(), Ua(), e), Bh = {
  ref: "myButton",
  class: "gallery"
}, Mh = { class: "gallery-strip" }, Dh = /* @__PURE__ */ xn(() => /* @__PURE__ */ se("span", { class: "progress-button" }, "‹", -1)), jh = [
  Dh
], Uh = {
  key: 1,
  style: { width: "2rem" }
}, Hh = /* @__PURE__ */ xn(() => /* @__PURE__ */ se("div", { class: "filler" }, null, -1)), zh = { class: "card-line" }, Vh = /* @__PURE__ */ xn(() => /* @__PURE__ */ se("div", { class: "filler" }, null, -1)), qh = /* @__PURE__ */ xn(() => /* @__PURE__ */ se("span", { class: "progress-button" }, "›", -1)), Kh = [
  qh
], Wh = {
  key: 3,
  style: { width: "2rem" }
}, Jh = {
  __name: "Gallery",
  props: {
    /**
     * The array of items (data) to render the gallery.
     */
    items: {
      type: Array,
      default: () => []
    },
    /**
     * The maximum width we are allowed minus two buttons for next and previous divided by the width of a card.
     */
    maxWidth: {
      type: Number,
      default: 3
    },
    /**
     * The width of the card in rem unit.
     */
    cardWidth: {
      type: Number,
      default: 13.8
    },
    /**
     * The option to show indicator bar at the bottom.
     */
    showIndicatorBar: {
      type: Boolean,
      default: !0
    },
    /**
     * The option to highlight the active item.
     */
    highlightActive: {
      type: Boolean,
      default: !0
    },
    /**
     * The option to show card details.
     */
    showCardDetails: {
      type: Boolean,
      default: !0
    },
    /**
     * The CSS to define card's style.
     */
    bodyStyle: {
      type: Object,
      default: () => ({ padding: "20px", background: "#ffffff" })
    },
    /**
     * The space between the card and indicator bar.
     */
    bottomSpacer: {
      type: Object,
      default: () => ({ minHeight: "4rem" })
    },
    /**
     * The CSS for image container in card.
     */
    imageContainerStyle: {
      type: Object,
      default: () => ({})
    },
    /**
     * The CSS for image style in card.
     */
    imageStyle: {
      type: Object,
      default: () => ({})
    },
    // TODO: not in use
    metaData: {
      type: Object,
      default: () => ({
        datasetVersion: -1,
        datasetId: -1
      })
    },
    // TODO: not in use
    description: {
      type: String,
      default: ""
    },
    /**
     * when to show card shadows (always / hover / never)
     */
    shadow: {
      type: String,
      default: "always"
    }
  },
  emits: ["card-clicked", "datalink-clicked"],
  setup(e, { expose: t, emit: n }) {
    function r(_) {
      return typeof window < "u" ? _ * parseFloat(window.getComputedStyle(document.documentElement).fontSize) : _ * 16;
    }
    const o = e, s = n, a = A(0), i = A(0), c = A(2), l = A(2), u = E(() => o.items.length), p = E(() => i.value > 0), v = E(() => i.value < u.value - 1), b = E(() => 0.78 * o.cardWidth);
    E(() => u.value * (o.cardWidth + 0.25) - 0.25);
    const f = E(() => {
      const _ = r(0.5), N = r(2), F = r(o.cardWidth), L = (o.maxWidth - 2 * N - 2 * _) / (1.1 * F);
      return Math.max(1, Math.floor(L));
    }), d = E(() => {
      const _ = r(1), N = o.maxWidth / (_ * u.value);
      return o.showIndicatorBar && N > 0.1 && u.value > 1;
    }), h = E(() => {
      const _ = Math.floor(f.value / 2);
      let N = i.value - _;
      return N < 0 ? N = 0 : N + f.value > u.value && (N = u.value - f.value), N;
    }), m = E(() => {
      let _ = [];
      for (let N = 0; N < f.value; N++)
        _.push(o.items[N + h.value]);
      return _;
    });
    function w(_) {
      s("card-clicked", _);
    }
    function O(_) {
      s("datalink-clicked", _);
    }
    function S(_) {
      return i.value - h.value === _ && o.highlightActive;
    }
    function C() {
      i.value += 1;
    }
    function R() {
      i.value -= 1;
    }
    function T(_) {
      i.value !== _ && (i.value = _);
    }
    return t({
      count: a,
      currentIndex: i,
      controlHeight: c,
      controlWidth: l,
      cardClicked: w,
      isActive: S,
      goNext: C,
      goPrev: R,
      indicatorClicked: T
    }), (_, N) => (P(), B("div", Bh, [
      se("div", Mh, [
        e.items.length > 1 ? (P(), B("a", {
          key: 0,
          href: "#",
          class: Q(["oval", "prev", { disabled: !p.value }]),
          onClick: nn(R, ["prevent"])
        }, jh, 2)) : (P(), B("div", Uh)),
        Hh,
        se("div", zh, [
          (P(!0), B(hn, null, Go(m.value, (F, L) => (P(), B("span", {
            key: "card_" + L,
            class: Q(["key-image-span", { active: S(L) }])
          }, [
            F ? (P(), G(Lh, {
              key: 0,
              data: F,
              "body-style": e.bodyStyle,
              "image-container-style": e.imageContainerStyle,
              "image-style": e.imageStyle,
              width: e.cardWidth,
              height: b.value,
              shadow: e.shadow,
              "show-card-details": e.showCardDetails,
              onCardClicked: w,
              onDatalinkClicked: O
            }, null, 8, ["data", "body-style", "image-container-style", "image-style", "width", "height", "shadow", "show-card-details"])) : Y("", !0)
          ], 2))), 128))
        ]),
        Vh,
        e.items.length > 1 ? (P(), B("a", {
          key: 2,
          href: "#",
          class: Q(["oval", "next", { disabled: !v.value }]),
          onClick: nn(C, ["prevent"])
        }, Kh, 2)) : (P(), B("div", Wh))
      ]),
      se("div", {
        style: De(e.bottomSpacer)
      }, null, 4),
      d.value ? (P(), G(qa, {
        key: 0,
        count: u.value,
        current: i.value,
        onClicked: T
      }, null, 8, ["count", "current"])) : Y("", !0)
    ], 512));
  }
}, Zh = /* @__PURE__ */ nr(Jh, [["__scopeId", "data-v-e745b327"]]);
export {
  Zh as default
};
