import {
  yfe
} from "./chunk-CRD3SALI.js";
import {
  Comment,
  Fragment,
  Teleport,
  Text,
  Transition,
  cloneVNode,
  computed,
  createApp,
  createBaseVNode,
  createBlock,
  createCommentVNode,
  createElementBlock,
  createSlots,
  createTextVNode,
  createVNode,
  defineComponent,
  getCurrentInstance,
  getCurrentScope,
  h,
  inject,
  isRef,
  mergeProps,
  nextTick,
  normalizeClass,
  normalizeStyle,
  onActivated,
  onBeforeMount,
  onBeforeUnmount,
  onDeactivated,
  onMounted,
  onScopeDispose,
  onUnmounted,
  onUpdated,
  openBlock,
  popScopeId,
  provide,
  pushScopeId,
  reactive,
  readonly,
  ref,
  renderList,
  renderSlot,
  resolveComponent,
  resolveDirective,
  resolveDynamicComponent,
  shallowRef,
  toDisplayString,
  toHandlerKey,
  toRaw,
  toRef,
  toRefs,
  unref,
  useAttrs,
  useSlots,
  vModelText,
  vShow,
  warn,
  watch,
  watchEffect,
  withCtx,
  withDirectives,
  withKeys,
  withModifiers
} from "./chunk-6UGCK2MK.js";
import "./chunk-DC5AMYBS.js";

// node_modules/@abi-software/simulationvuer/dist/simulationvuer.js
var Ft = (e8, t, { checkForDefaultPrevented: r = true } = {}) => (o) => {
  const a = e8 == null ? void 0 : e8(o);
  if (r === false || !a)
    return t == null ? void 0 : t(o);
};
var Si;
var Fe = typeof window < "u";
var uc = (e8) => typeof e8 == "string";
var Sl = () => {
};
var Go = Fe && ((Si = window == null ? void 0 : window.navigator) == null ? void 0 : Si.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
function El(e8) {
  return typeof e8 == "function" ? e8() : unref(e8);
}
function fc(e8) {
  return e8;
}
function uo(e8) {
  return getCurrentScope() ? (onScopeDispose(e8), true) : false;
}
function cc(e8, t = true) {
  getCurrentInstance() ? onMounted(e8) : t ? e8() : nextTick(e8);
}
function Nt(e8) {
  var t;
  const r = El(e8);
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
}
var fo = Fe ? window : void 0;
function je(...e8) {
  let t, r, n, o;
  if (uc(e8[0]) || Array.isArray(e8[0]) ? ([r, n, o] = e8, t = fo) : [t, r, n, o] = e8, !t)
    return Sl;
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
  const a = [], i = () => {
    a.forEach((f) => f()), a.length = 0;
  }, s = (f, c, d, h2) => (f.addEventListener(c, d, h2), () => f.removeEventListener(c, d, h2)), u = watch(() => [Nt(t), El(o)], ([f, c]) => {
    i(), f && a.push(...r.flatMap((d) => n.map((h2) => s(f, d, h2, c))));
  }, { immediate: true, flush: "post" }), l = () => {
    u(), i();
  };
  return uo(l), l;
}
var Ei = false;
function dc(e8, t, r = {}) {
  const { window: n = fo, ignore: o = [], capture: a = true, detectIframe: i = false } = r;
  if (!n)
    return;
  Go && !Ei && (Ei = true, Array.from(n.document.body.children).forEach((d) => d.addEventListener("click", Sl)));
  let s = true;
  const u = (d) => o.some((h2) => {
    if (typeof h2 == "string")
      return Array.from(n.document.querySelectorAll(h2)).some((v) => v === d.target || d.composedPath().includes(v));
    {
      const v = Nt(h2);
      return v && (d.target === v || d.composedPath().includes(v));
    }
  }), f = [
    je(n, "click", (d) => {
      const h2 = Nt(e8);
      if (!(!h2 || h2 === d.target || d.composedPath().includes(h2))) {
        if (d.detail === 0 && (s = !u(d)), !s) {
          s = true;
          return;
        }
        t(d);
      }
    }, { passive: true, capture: a }),
    je(n, "pointerdown", (d) => {
      const h2 = Nt(e8);
      h2 && (s = !d.composedPath().includes(h2) && !u(d));
    }, { passive: true }),
    i && je(n, "blur", (d) => {
      var h2;
      const v = Nt(e8);
      ((h2 = n.document.activeElement) == null ? void 0 : h2.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(d);
    })
  ].filter(Boolean);
  return () => f.forEach((d) => d());
}
function Ol(e8, t = false) {
  const r = ref(), n = () => r.value = !!e8();
  return n(), cc(n, t), r;
}
var Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
var Ai = "__vueuse_ssr_handlers__";
Oi[Ai] = Oi[Ai] || {};
var _i = Object.getOwnPropertySymbols;
var pc = Object.prototype.hasOwnProperty;
var vc = Object.prototype.propertyIsEnumerable;
var mc = (e8, t) => {
  var r = {};
  for (var n in e8)
    pc.call(e8, n) && t.indexOf(n) < 0 && (r[n] = e8[n]);
  if (e8 != null && _i)
    for (var n of _i(e8))
      t.indexOf(n) < 0 && vc.call(e8, n) && (r[n] = e8[n]);
  return r;
};
function Mt(e8, t, r = {}) {
  const n = r, { window: o = fo } = n, a = mc(n, ["window"]);
  let i;
  const s = Ol(() => o && "ResizeObserver" in o), u = () => {
    i && (i.disconnect(), i = void 0);
  }, l = watch(() => Nt(e8), (c) => {
    u(), s.value && o && c && (i = new ResizeObserver(t), i.observe(c, a));
  }, { immediate: true, flush: "post" }), f = () => {
    u(), l();
  };
  return uo(f), {
    isSupported: s,
    stop: f
  };
}
var Ii = Object.getOwnPropertySymbols;
var hc = Object.prototype.hasOwnProperty;
var yc = Object.prototype.propertyIsEnumerable;
var gc = (e8, t) => {
  var r = {};
  for (var n in e8)
    hc.call(e8, n) && t.indexOf(n) < 0 && (r[n] = e8[n]);
  if (e8 != null && Ii)
    for (var n of Ii(e8))
      t.indexOf(n) < 0 && yc.call(e8, n) && (r[n] = e8[n]);
  return r;
};
function bc(e8, t, r = {}) {
  const n = r, { window: o = fo } = n, a = gc(n, ["window"]);
  let i;
  const s = Ol(() => o && "MutationObserver" in o), u = () => {
    i && (i.disconnect(), i = void 0);
  }, l = watch(() => Nt(e8), (c) => {
    u(), s.value && o && c && (i = new MutationObserver(t), i.observe(c, a));
  }, { immediate: true }), f = () => {
    u(), l();
  };
  return uo(f), {
    isSupported: s,
    stop: f
  };
}
var Ci;
(function(e8) {
  e8.UP = "UP", e8.RIGHT = "RIGHT", e8.DOWN = "DOWN", e8.LEFT = "LEFT", e8.NONE = "NONE";
})(Ci || (Ci = {}));
var wc = Object.defineProperty;
var xi = Object.getOwnPropertySymbols;
var Sc = Object.prototype.hasOwnProperty;
var Ec = Object.prototype.propertyIsEnumerable;
var Ti = (e8, t, r) => t in e8 ? wc(e8, t, { enumerable: true, configurable: true, writable: true, value: r }) : e8[t] = r;
var Oc = (e8, t) => {
  for (var r in t || (t = {}))
    Sc.call(t, r) && Ti(e8, r, t[r]);
  if (xi)
    for (var r of xi(t))
      Ec.call(t, r) && Ti(e8, r, t[r]);
  return e8;
};
var Ac = {
  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]
};
Oc({
  linear: fc
}, Ac);
var _c = () => Fe && /firefox/i.test(window.navigator.userAgent);
Object.freeze({});
Object.freeze([]);
var yn = () => {
};
var Ic = Object.prototype.hasOwnProperty;
var Pi = (e8, t) => Ic.call(e8, t);
var Ot = Array.isArray;
var Be = (e8) => typeof e8 == "function";
var Qe = (e8) => typeof e8 == "string";
var Ge = (e8) => e8 !== null && typeof e8 == "object";
var Cc = Object.prototype.toString;
var xc = (e8) => Cc.call(e8);
var Io = (e8) => xc(e8).slice(8, -1);
var Al = (e8) => {
  const t = /* @__PURE__ */ Object.create(null);
  return (r) => t[r] || (t[r] = e8(r));
};
var Tc = /-(\w)/g;
var Pc = Al((e8) => e8.replace(Tc, (t, r) => r ? r.toUpperCase() : ""));
var $c = /\B([A-Z])/g;
var Fc = Al(
  (e8) => e8.replace($c, "-$1").toLowerCase()
);
var _l = typeof global == "object" && global && global.Object === Object && global;
var Mc = typeof self == "object" && self && self.Object === Object && self;
var xt = _l || Mc || Function("return this")();
var _t = xt.Symbol;
var Il = Object.prototype;
var Vc = Il.hasOwnProperty;
var Rc = Il.toString;
var sn = _t ? _t.toStringTag : void 0;
function Nc(e8) {
  var t = Vc.call(e8, sn), r = e8[sn];
  try {
    e8[sn] = void 0;
    var n = true;
  } catch {
  }
  var o = Rc.call(e8);
  return n && (t ? e8[sn] = r : delete e8[sn]), o;
}
var kc = Object.prototype;
var Lc = kc.toString;
function zc(e8) {
  return Lc.call(e8);
}
var Bc = "[object Null]";
var Dc = "[object Undefined]";
var $i = _t ? _t.toStringTag : void 0;
function en(e8) {
  return e8 == null ? e8 === void 0 ? Dc : Bc : $i && $i in Object(e8) ? Nc(e8) : zc(e8);
}
function Ur(e8) {
  return e8 != null && typeof e8 == "object";
}
var Uc = "[object Symbol]";
function co(e8) {
  return typeof e8 == "symbol" || Ur(e8) && en(e8) == Uc;
}
function jc(e8, t) {
  for (var r = -1, n = e8 == null ? 0 : e8.length, o = Array(n); ++r < n; )
    o[r] = t(e8[r], r, e8);
  return o;
}
var ht = Array.isArray;
var Hc = 1 / 0;
var Fi = _t ? _t.prototype : void 0;
var Mi = Fi ? Fi.toString : void 0;
function Cl(e8) {
  if (typeof e8 == "string")
    return e8;
  if (ht(e8))
    return jc(e8, Cl) + "";
  if (co(e8))
    return Mi ? Mi.call(e8) : "";
  var t = e8 + "";
  return t == "0" && 1 / e8 == -Hc ? "-0" : t;
}
var Wc = /\s/;
function qc(e8) {
  for (var t = e8.length; t-- && Wc.test(e8.charAt(t)); )
    ;
  return t;
}
var Kc = /^\s+/;
function Zc(e8) {
  return e8 && e8.slice(0, qc(e8) + 1).replace(Kc, "");
}
function sr(e8) {
  var t = typeof e8;
  return e8 != null && (t == "object" || t == "function");
}
var Vi = NaN;
var Gc = /^[-+]0x[0-9a-f]+$/i;
var Jc = /^0b[01]+$/i;
var Yc = /^0o[0-7]+$/i;
var Xc = parseInt;
function Ri(e8) {
  if (typeof e8 == "number")
    return e8;
  if (co(e8))
    return Vi;
  if (sr(e8)) {
    var t = typeof e8.valueOf == "function" ? e8.valueOf() : e8;
    e8 = sr(t) ? t + "" : t;
  }
  if (typeof e8 != "string")
    return e8 === 0 ? e8 : +e8;
  e8 = Zc(e8);
  var r = Jc.test(e8);
  return r || Yc.test(e8) ? Xc(e8.slice(2), r ? 2 : 8) : Gc.test(e8) ? Vi : +e8;
}
function xl(e8) {
  return e8;
}
var Qc = "[object AsyncFunction]";
var ed = "[object Function]";
var td = "[object GeneratorFunction]";
var rd = "[object Proxy]";
function Tl(e8) {
  if (!sr(e8))
    return false;
  var t = en(e8);
  return t == ed || t == td || t == Qc || t == rd;
}
var Co = xt["__core-js_shared__"];
var Ni = function() {
  var e8 = /[^.]+$/.exec(Co && Co.keys && Co.keys.IE_PROTO || "");
  return e8 ? "Symbol(src)_1." + e8 : "";
}();
function nd(e8) {
  return !!Ni && Ni in e8;
}
var od = Function.prototype;
var ad = od.toString;
function _r(e8) {
  if (e8 != null) {
    try {
      return ad.call(e8);
    } catch {
    }
    try {
      return e8 + "";
    } catch {
    }
  }
  return "";
}
var id = /[\\^$.*+?()[\]{}|]/g;
var sd = /^\[object .+?Constructor\]$/;
var ld = Function.prototype;
var ud = Object.prototype;
var fd = ld.toString;
var cd = ud.hasOwnProperty;
var dd = RegExp(
  "^" + fd.call(cd).replace(id, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
);
function pd(e8) {
  if (!sr(e8) || nd(e8))
    return false;
  var t = Tl(e8) ? dd : sd;
  return t.test(_r(e8));
}
function vd(e8, t) {
  return e8 == null ? void 0 : e8[t];
}
function Ir(e8, t) {
  var r = vd(e8, t);
  return pd(r) ? r : void 0;
}
var Jo = Ir(xt, "WeakMap");
function md(e8, t, r) {
  switch (r.length) {
    case 0:
      return e8.call(t);
    case 1:
      return e8.call(t, r[0]);
    case 2:
      return e8.call(t, r[0], r[1]);
    case 3:
      return e8.call(t, r[0], r[1], r[2]);
  }
  return e8.apply(t, r);
}
var hd = 800;
var yd = 16;
var gd = Date.now;
function bd(e8) {
  var t = 0, r = 0;
  return function() {
    var n = gd(), o = yd - (n - r);
    if (r = n, o > 0) {
      if (++t >= hd)
        return arguments[0];
    } else
      t = 0;
    return e8.apply(void 0, arguments);
  };
}
function wd(e8) {
  return function() {
    return e8;
  };
}
var Jn = function() {
  try {
    var e8 = Ir(Object, "defineProperty");
    return e8({}, "", {}), e8;
  } catch {
  }
}();
var Sd = Jn ? function(e8, t) {
  return Jn(e8, "toString", {
    configurable: true,
    enumerable: false,
    value: wd(t),
    writable: true
  });
} : xl;
var Ed = bd(Sd);
function Od(e8, t, r, n) {
  e8.length;
  for (var o = r + 1; o--; )
    if (t(e8[o], o, e8))
      return o;
  return -1;
}
var Ad = 9007199254740991;
var _d = /^(?:0|[1-9]\d*)$/;
function _a(e8, t) {
  var r = typeof e8;
  return t = t ?? Ad, !!t && (r == "number" || r != "symbol" && _d.test(e8)) && e8 > -1 && e8 % 1 == 0 && e8 < t;
}
function Id(e8, t, r) {
  t == "__proto__" && Jn ? Jn(e8, t, {
    configurable: true,
    enumerable: true,
    value: r,
    writable: true
  }) : e8[t] = r;
}
function Ia(e8, t) {
  return e8 === t || e8 !== e8 && t !== t;
}
var Cd = Object.prototype;
var xd = Cd.hasOwnProperty;
function Td(e8, t, r) {
  var n = e8[t];
  (!(xd.call(e8, t) && Ia(n, r)) || r === void 0 && !(t in e8)) && Id(e8, t, r);
}
var ki = Math.max;
function Pd(e8, t, r) {
  return t = ki(t === void 0 ? e8.length - 1 : t, 0), function() {
    for (var n = arguments, o = -1, a = ki(n.length - t, 0), i = Array(a); ++o < a; )
      i[o] = n[t + o];
    o = -1;
    for (var s = Array(t + 1); ++o < t; )
      s[o] = n[o];
    return s[t] = r(i), md(e8, this, s);
  };
}
var $d = 9007199254740991;
function Ca(e8) {
  return typeof e8 == "number" && e8 > -1 && e8 % 1 == 0 && e8 <= $d;
}
function Fd(e8) {
  return e8 != null && Ca(e8.length) && !Tl(e8);
}
var Md = Object.prototype;
function Vd(e8) {
  var t = e8 && e8.constructor, r = typeof t == "function" && t.prototype || Md;
  return e8 === r;
}
function Rd(e8, t) {
  for (var r = -1, n = Array(e8); ++r < e8; )
    n[r] = t(r);
  return n;
}
var Nd = "[object Arguments]";
function Li(e8) {
  return Ur(e8) && en(e8) == Nd;
}
var Pl = Object.prototype;
var kd = Pl.hasOwnProperty;
var Ld = Pl.propertyIsEnumerable;
var xa = Li(/* @__PURE__ */ function() {
  return arguments;
}()) ? Li : function(e8) {
  return Ur(e8) && kd.call(e8, "callee") && !Ld.call(e8, "callee");
};
function zd() {
  return false;
}
var $l = typeof exports == "object" && exports && !exports.nodeType && exports;
var zi = $l && typeof module == "object" && module && !module.nodeType && module;
var Bd = zi && zi.exports === $l;
var Bi = Bd ? xt.Buffer : void 0;
var Dd = Bi ? Bi.isBuffer : void 0;
var Yo = Dd || zd;
var Ud = "[object Arguments]";
var jd = "[object Array]";
var Hd = "[object Boolean]";
var Wd = "[object Date]";
var qd = "[object Error]";
var Kd = "[object Function]";
var Zd = "[object Map]";
var Gd = "[object Number]";
var Jd = "[object Object]";
var Yd = "[object RegExp]";
var Xd = "[object Set]";
var Qd = "[object String]";
var ep = "[object WeakMap]";
var tp = "[object ArrayBuffer]";
var rp = "[object DataView]";
var np = "[object Float32Array]";
var op = "[object Float64Array]";
var ap = "[object Int8Array]";
var ip = "[object Int16Array]";
var sp = "[object Int32Array]";
var lp = "[object Uint8Array]";
var up = "[object Uint8ClampedArray]";
var fp = "[object Uint16Array]";
var cp = "[object Uint32Array]";
var ye = {};
ye[np] = ye[op] = ye[ap] = ye[ip] = ye[sp] = ye[lp] = ye[up] = ye[fp] = ye[cp] = true;
ye[Ud] = ye[jd] = ye[tp] = ye[Hd] = ye[rp] = ye[Wd] = ye[qd] = ye[Kd] = ye[Zd] = ye[Gd] = ye[Jd] = ye[Yd] = ye[Xd] = ye[Qd] = ye[ep] = false;
function dp(e8) {
  return Ur(e8) && Ca(e8.length) && !!ye[en(e8)];
}
function pp(e8) {
  return function(t) {
    return e8(t);
  };
}
var Fl = typeof exports == "object" && exports && !exports.nodeType && exports;
var cn = Fl && typeof module == "object" && module && !module.nodeType && module;
var vp = cn && cn.exports === Fl;
var xo = vp && _l.process;
var Di = function() {
  try {
    var e8 = cn && cn.require && cn.require("util").types;
    return e8 || xo && xo.binding && xo.binding("util");
  } catch {
  }
}();
var Ui = Di && Di.isTypedArray;
var Ml = Ui ? pp(Ui) : dp;
var mp = Object.prototype;
var hp = mp.hasOwnProperty;
function yp(e8, t) {
  var r = ht(e8), n = !r && xa(e8), o = !r && !n && Yo(e8), a = !r && !n && !o && Ml(e8), i = r || n || o || a, s = i ? Rd(e8.length, String) : [], u = s.length;
  for (var l in e8)
    hp.call(e8, l) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
    (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
    o && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
    a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
    _a(l, u))) && s.push(l);
  return s;
}
function gp(e8, t) {
  return function(r) {
    return e8(t(r));
  };
}
var bp = gp(Object.keys, Object);
var wp = Object.prototype;
var Sp = wp.hasOwnProperty;
function Ep(e8) {
  if (!Vd(e8))
    return bp(e8);
  var t = [];
  for (var r in Object(e8))
    Sp.call(e8, r) && r != "constructor" && t.push(r);
  return t;
}
function Vl(e8) {
  return Fd(e8) ? yp(e8) : Ep(e8);
}
var Op = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
var Ap = /^\w*$/;
function Ta(e8, t) {
  if (ht(e8))
    return false;
  var r = typeof e8;
  return r == "number" || r == "symbol" || r == "boolean" || e8 == null || co(e8) ? true : Ap.test(e8) || !Op.test(e8) || t != null && e8 in Object(t);
}
var gn = Ir(Object, "create");
function _p() {
  this.__data__ = gn ? gn(null) : {}, this.size = 0;
}
function Ip(e8) {
  var t = this.has(e8) && delete this.__data__[e8];
  return this.size -= t ? 1 : 0, t;
}
var Cp = "__lodash_hash_undefined__";
var xp = Object.prototype;
var Tp = xp.hasOwnProperty;
function Pp(e8) {
  var t = this.__data__;
  if (gn) {
    var r = t[e8];
    return r === Cp ? void 0 : r;
  }
  return Tp.call(t, e8) ? t[e8] : void 0;
}
var $p = Object.prototype;
var Fp = $p.hasOwnProperty;
function Mp(e8) {
  var t = this.__data__;
  return gn ? t[e8] !== void 0 : Fp.call(t, e8);
}
var Vp = "__lodash_hash_undefined__";
function Rp(e8, t) {
  var r = this.__data__;
  return this.size += this.has(e8) ? 0 : 1, r[e8] = gn && t === void 0 ? Vp : t, this;
}
function Or(e8) {
  var t = -1, r = e8 == null ? 0 : e8.length;
  for (this.clear(); ++t < r; ) {
    var n = e8[t];
    this.set(n[0], n[1]);
  }
}
Or.prototype.clear = _p;
Or.prototype.delete = Ip;
Or.prototype.get = Pp;
Or.prototype.has = Mp;
Or.prototype.set = Rp;
function Np() {
  this.__data__ = [], this.size = 0;
}
function po(e8, t) {
  for (var r = e8.length; r--; )
    if (Ia(e8[r][0], t))
      return r;
  return -1;
}
var kp = Array.prototype;
var Lp = kp.splice;
function zp(e8) {
  var t = this.__data__, r = po(t, e8);
  if (r < 0)
    return false;
  var n = t.length - 1;
  return r == n ? t.pop() : Lp.call(t, r, 1), --this.size, true;
}
function Bp(e8) {
  var t = this.__data__, r = po(t, e8);
  return r < 0 ? void 0 : t[r][1];
}
function Dp(e8) {
  return po(this.__data__, e8) > -1;
}
function Up(e8, t) {
  var r = this.__data__, n = po(r, e8);
  return n < 0 ? (++this.size, r.push([e8, t])) : r[n][1] = t, this;
}
function Ut(e8) {
  var t = -1, r = e8 == null ? 0 : e8.length;
  for (this.clear(); ++t < r; ) {
    var n = e8[t];
    this.set(n[0], n[1]);
  }
}
Ut.prototype.clear = Np;
Ut.prototype.delete = zp;
Ut.prototype.get = Bp;
Ut.prototype.has = Dp;
Ut.prototype.set = Up;
var bn = Ir(xt, "Map");
function jp() {
  this.size = 0, this.__data__ = {
    hash: new Or(),
    map: new (bn || Ut)(),
    string: new Or()
  };
}
function Hp(e8) {
  var t = typeof e8;
  return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e8 !== "__proto__" : e8 === null;
}
function vo(e8, t) {
  var r = e8.__data__;
  return Hp(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
}
function Wp(e8) {
  var t = vo(this, e8).delete(e8);
  return this.size -= t ? 1 : 0, t;
}
function qp(e8) {
  return vo(this, e8).get(e8);
}
function Kp(e8) {
  return vo(this, e8).has(e8);
}
function Zp(e8, t) {
  var r = vo(this, e8), n = r.size;
  return r.set(e8, t), this.size += r.size == n ? 0 : 1, this;
}
function jt(e8) {
  var t = -1, r = e8 == null ? 0 : e8.length;
  for (this.clear(); ++t < r; ) {
    var n = e8[t];
    this.set(n[0], n[1]);
  }
}
jt.prototype.clear = jp;
jt.prototype.delete = Wp;
jt.prototype.get = qp;
jt.prototype.has = Kp;
jt.prototype.set = Zp;
var Gp = "Expected a function";
function Pa(e8, t) {
  if (typeof e8 != "function" || t != null && typeof t != "function")
    throw new TypeError(Gp);
  var r = function() {
    var n = arguments, o = t ? t.apply(this, n) : n[0], a = r.cache;
    if (a.has(o))
      return a.get(o);
    var i = e8.apply(this, n);
    return r.cache = a.set(o, i) || a, i;
  };
  return r.cache = new (Pa.Cache || jt)(), r;
}
Pa.Cache = jt;
var Jp = 500;
function Yp(e8) {
  var t = Pa(e8, function(n) {
    return r.size === Jp && r.clear(), n;
  }), r = t.cache;
  return t;
}
var Xp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
var Qp = /\\(\\)?/g;
var ev = Yp(function(e8) {
  var t = [];
  return e8.charCodeAt(0) === 46 && t.push(""), e8.replace(Xp, function(r, n, o, a) {
    t.push(o ? a.replace(Qp, "$1") : n || r);
  }), t;
});
function tv(e8) {
  return e8 == null ? "" : Cl(e8);
}
function mo(e8, t) {
  return ht(e8) ? e8 : Ta(e8, t) ? [e8] : ev(tv(e8));
}
var rv = 1 / 0;
function On(e8) {
  if (typeof e8 == "string" || co(e8))
    return e8;
  var t = e8 + "";
  return t == "0" && 1 / e8 == -rv ? "-0" : t;
}
function $a(e8, t) {
  t = mo(t, e8);
  for (var r = 0, n = t.length; e8 != null && r < n; )
    e8 = e8[On(t[r++])];
  return r && r == n ? e8 : void 0;
}
function Rt(e8, t, r) {
  var n = e8 == null ? void 0 : $a(e8, t);
  return n === void 0 ? r : n;
}
function Rl(e8, t) {
  for (var r = -1, n = t.length, o = e8.length; ++r < n; )
    e8[o + r] = t[r];
  return e8;
}
var ji = _t ? _t.isConcatSpreadable : void 0;
function nv(e8) {
  return ht(e8) || xa(e8) || !!(ji && e8 && e8[ji]);
}
function ov(e8, t, r, n, o) {
  var a = -1, i = e8.length;
  for (r || (r = nv), o || (o = []); ++a < i; ) {
    var s = e8[a];
    r(s) ? Rl(o, s) : o[o.length] = s;
  }
  return o;
}
function av(e8) {
  var t = e8 == null ? 0 : e8.length;
  return t ? ov(e8) : [];
}
function iv(e8) {
  return Ed(Pd(e8, void 0, av), e8 + "");
}
function rr() {
  if (!arguments.length)
    return [];
  var e8 = arguments[0];
  return ht(e8) ? e8 : [e8];
}
function sv() {
  this.__data__ = new Ut(), this.size = 0;
}
function lv(e8) {
  var t = this.__data__, r = t.delete(e8);
  return this.size = t.size, r;
}
function uv(e8) {
  return this.__data__.get(e8);
}
function fv(e8) {
  return this.__data__.has(e8);
}
var cv = 200;
function dv(e8, t) {
  var r = this.__data__;
  if (r instanceof Ut) {
    var n = r.__data__;
    if (!bn || n.length < cv - 1)
      return n.push([e8, t]), this.size = ++r.size, this;
    r = this.__data__ = new jt(n);
  }
  return r.set(e8, t), this.size = r.size, this;
}
function Lt(e8) {
  var t = this.__data__ = new Ut(e8);
  this.size = t.size;
}
Lt.prototype.clear = sv;
Lt.prototype.delete = lv;
Lt.prototype.get = uv;
Lt.prototype.has = fv;
Lt.prototype.set = dv;
function pv(e8, t) {
  for (var r = -1, n = e8 == null ? 0 : e8.length, o = 0, a = []; ++r < n; ) {
    var i = e8[r];
    t(i, r, e8) && (a[o++] = i);
  }
  return a;
}
function vv() {
  return [];
}
var mv = Object.prototype;
var hv = mv.propertyIsEnumerable;
var Hi = Object.getOwnPropertySymbols;
var yv = Hi ? function(e8) {
  return e8 == null ? [] : (e8 = Object(e8), pv(Hi(e8), function(t) {
    return hv.call(e8, t);
  }));
} : vv;
function gv(e8, t, r) {
  var n = t(e8);
  return ht(e8) ? n : Rl(n, r(e8));
}
function Wi(e8) {
  return gv(e8, Vl, yv);
}
var Xo = Ir(xt, "DataView");
var Qo = Ir(xt, "Promise");
var ea = Ir(xt, "Set");
var qi = "[object Map]";
var bv = "[object Object]";
var Ki = "[object Promise]";
var Zi = "[object Set]";
var Gi = "[object WeakMap]";
var Ji = "[object DataView]";
var wv = _r(Xo);
var Sv = _r(bn);
var Ev = _r(Qo);
var Ov = _r(ea);
var Av = _r(Jo);
var er = en;
(Xo && er(new Xo(new ArrayBuffer(1))) != Ji || bn && er(new bn()) != qi || Qo && er(Qo.resolve()) != Ki || ea && er(new ea()) != Zi || Jo && er(new Jo()) != Gi) && (er = function(e8) {
  var t = en(e8), r = t == bv ? e8.constructor : void 0, n = r ? _r(r) : "";
  if (n)
    switch (n) {
      case wv:
        return Ji;
      case Sv:
        return qi;
      case Ev:
        return Ki;
      case Ov:
        return Zi;
      case Av:
        return Gi;
    }
  return t;
});
var Yi = xt.Uint8Array;
var _v = "__lodash_hash_undefined__";
function Iv(e8) {
  return this.__data__.set(e8, _v), this;
}
function Cv(e8) {
  return this.__data__.has(e8);
}
function Yn(e8) {
  var t = -1, r = e8 == null ? 0 : e8.length;
  for (this.__data__ = new jt(); ++t < r; )
    this.add(e8[t]);
}
Yn.prototype.add = Yn.prototype.push = Iv;
Yn.prototype.has = Cv;
function xv(e8, t) {
  for (var r = -1, n = e8 == null ? 0 : e8.length; ++r < n; )
    if (t(e8[r], r, e8))
      return true;
  return false;
}
function Tv(e8, t) {
  return e8.has(t);
}
var Pv = 1;
var $v = 2;
function Nl(e8, t, r, n, o, a) {
  var i = r & Pv, s = e8.length, u = t.length;
  if (s != u && !(i && u > s))
    return false;
  var l = a.get(e8), f = a.get(t);
  if (l && f)
    return l == t && f == e8;
  var c = -1, d = true, h2 = r & $v ? new Yn() : void 0;
  for (a.set(e8, t), a.set(t, e8); ++c < s; ) {
    var v = e8[c], m = t[c];
    if (n)
      var g = i ? n(m, v, c, t, e8, a) : n(v, m, c, e8, t, a);
    if (g !== void 0) {
      if (g)
        continue;
      d = false;
      break;
    }
    if (h2) {
      if (!xv(t, function(y, b) {
        if (!Tv(h2, b) && (v === y || o(v, y, r, n, a)))
          return h2.push(b);
      })) {
        d = false;
        break;
      }
    } else if (!(v === m || o(v, m, r, n, a))) {
      d = false;
      break;
    }
  }
  return a.delete(e8), a.delete(t), d;
}
function Fv(e8) {
  var t = -1, r = Array(e8.size);
  return e8.forEach(function(n, o) {
    r[++t] = [o, n];
  }), r;
}
function Mv(e8) {
  var t = -1, r = Array(e8.size);
  return e8.forEach(function(n) {
    r[++t] = n;
  }), r;
}
var Vv = 1;
var Rv = 2;
var Nv = "[object Boolean]";
var kv = "[object Date]";
var Lv = "[object Error]";
var zv = "[object Map]";
var Bv = "[object Number]";
var Dv = "[object RegExp]";
var Uv = "[object Set]";
var jv = "[object String]";
var Hv = "[object Symbol]";
var Wv = "[object ArrayBuffer]";
var qv = "[object DataView]";
var Xi = _t ? _t.prototype : void 0;
var To = Xi ? Xi.valueOf : void 0;
function Kv(e8, t, r, n, o, a, i) {
  switch (r) {
    case qv:
      if (e8.byteLength != t.byteLength || e8.byteOffset != t.byteOffset)
        return false;
      e8 = e8.buffer, t = t.buffer;
    case Wv:
      return !(e8.byteLength != t.byteLength || !a(new Yi(e8), new Yi(t)));
    case Nv:
    case kv:
    case Bv:
      return Ia(+e8, +t);
    case Lv:
      return e8.name == t.name && e8.message == t.message;
    case Dv:
    case jv:
      return e8 == t + "";
    case zv:
      var s = Fv;
    case Uv:
      var u = n & Vv;
      if (s || (s = Mv), e8.size != t.size && !u)
        return false;
      var l = i.get(e8);
      if (l)
        return l == t;
      n |= Rv, i.set(e8, t);
      var f = Nl(s(e8), s(t), n, o, a, i);
      return i.delete(e8), f;
    case Hv:
      if (To)
        return To.call(e8) == To.call(t);
  }
  return false;
}
var Zv = 1;
var Gv = Object.prototype;
var Jv = Gv.hasOwnProperty;
function Yv(e8, t, r, n, o, a) {
  var i = r & Zv, s = Wi(e8), u = s.length, l = Wi(t), f = l.length;
  if (u != f && !i)
    return false;
  for (var c = u; c--; ) {
    var d = s[c];
    if (!(i ? d in t : Jv.call(t, d)))
      return false;
  }
  var h2 = a.get(e8), v = a.get(t);
  if (h2 && v)
    return h2 == t && v == e8;
  var m = true;
  a.set(e8, t), a.set(t, e8);
  for (var g = i; ++c < u; ) {
    d = s[c];
    var y = e8[d], b = t[d];
    if (n)
      var O = i ? n(b, y, d, t, e8, a) : n(y, b, d, e8, t, a);
    if (!(O === void 0 ? y === b || o(y, b, r, n, a) : O)) {
      m = false;
      break;
    }
    g || (g = d == "constructor");
  }
  if (m && !g) {
    var I = e8.constructor, S = t.constructor;
    I != S && "constructor" in e8 && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof S == "function" && S instanceof S) && (m = false);
  }
  return a.delete(e8), a.delete(t), m;
}
var Xv = 1;
var Qi = "[object Arguments]";
var es = "[object Array]";
var Mn = "[object Object]";
var Qv = Object.prototype;
var ts = Qv.hasOwnProperty;
function em(e8, t, r, n, o, a) {
  var i = ht(e8), s = ht(t), u = i ? es : er(e8), l = s ? es : er(t);
  u = u == Qi ? Mn : u, l = l == Qi ? Mn : l;
  var f = u == Mn, c = l == Mn, d = u == l;
  if (d && Yo(e8)) {
    if (!Yo(t))
      return false;
    i = true, f = false;
  }
  if (d && !f)
    return a || (a = new Lt()), i || Ml(e8) ? Nl(e8, t, r, n, o, a) : Kv(e8, t, u, r, n, o, a);
  if (!(r & Xv)) {
    var h2 = f && ts.call(e8, "__wrapped__"), v = c && ts.call(t, "__wrapped__");
    if (h2 || v) {
      var m = h2 ? e8.value() : e8, g = v ? t.value() : t;
      return a || (a = new Lt()), o(m, g, r, n, a);
    }
  }
  return d ? (a || (a = new Lt()), Yv(e8, t, r, n, o, a)) : false;
}
function ho(e8, t, r, n, o) {
  return e8 === t ? true : e8 == null || t == null || !Ur(e8) && !Ur(t) ? e8 !== e8 && t !== t : em(e8, t, r, n, ho, o);
}
var tm = 1;
var rm = 2;
function nm(e8, t, r, n) {
  var o = r.length, a = o;
  if (e8 == null)
    return !a;
  for (e8 = Object(e8); o--; ) {
    var i = r[o];
    if (i[2] ? i[1] !== e8[i[0]] : !(i[0] in e8))
      return false;
  }
  for (; ++o < a; ) {
    i = r[o];
    var s = i[0], u = e8[s], l = i[1];
    if (i[2]) {
      if (u === void 0 && !(s in e8))
        return false;
    } else {
      var f = new Lt(), c;
      if (!(c === void 0 ? ho(l, u, tm | rm, n, f) : c))
        return false;
    }
  }
  return true;
}
function kl(e8) {
  return e8 === e8 && !sr(e8);
}
function om(e8) {
  for (var t = Vl(e8), r = t.length; r--; ) {
    var n = t[r], o = e8[n];
    t[r] = [n, o, kl(o)];
  }
  return t;
}
function Ll(e8, t) {
  return function(r) {
    return r == null ? false : r[e8] === t && (t !== void 0 || e8 in Object(r));
  };
}
function am(e8) {
  var t = om(e8);
  return t.length == 1 && t[0][2] ? Ll(t[0][0], t[0][1]) : function(r) {
    return r === e8 || nm(r, e8, t);
  };
}
function im(e8, t) {
  return e8 != null && t in Object(e8);
}
function sm(e8, t, r) {
  t = mo(t, e8);
  for (var n = -1, o = t.length, a = false; ++n < o; ) {
    var i = On(t[n]);
    if (!(a = e8 != null && r(e8, i)))
      break;
    e8 = e8[i];
  }
  return a || ++n != o ? a : (o = e8 == null ? 0 : e8.length, !!o && Ca(o) && _a(i, o) && (ht(e8) || xa(e8)));
}
function zl(e8, t) {
  return e8 != null && sm(e8, t, im);
}
var lm = 1;
var um = 2;
function fm(e8, t) {
  return Ta(e8) && kl(t) ? Ll(On(e8), t) : function(r) {
    var n = Rt(r, e8);
    return n === void 0 && n === t ? zl(r, e8) : ho(t, n, lm | um);
  };
}
function cm(e8) {
  return function(t) {
    return t == null ? void 0 : t[e8];
  };
}
function dm(e8) {
  return function(t) {
    return $a(t, e8);
  };
}
function pm(e8) {
  return Ta(e8) ? cm(On(e8)) : dm(e8);
}
function vm(e8) {
  return typeof e8 == "function" ? e8 : e8 == null ? xl : typeof e8 == "object" ? ht(e8) ? fm(e8[0], e8[1]) : am(e8) : pm(e8);
}
var Po = function() {
  return xt.Date.now();
};
var mm = "Expected a function";
var hm = Math.max;
var ym = Math.min;
function ta(e8, t, r) {
  var n, o, a, i, s, u, l = 0, f = false, c = false, d = true;
  if (typeof e8 != "function")
    throw new TypeError(mm);
  t = Ri(t) || 0, sr(r) && (f = !!r.leading, c = "maxWait" in r, a = c ? hm(Ri(r.maxWait) || 0, t) : a, d = "trailing" in r ? !!r.trailing : d);
  function h2(x) {
    var T = n, V = o;
    return n = o = void 0, l = x, i = e8.apply(V, T), i;
  }
  function v(x) {
    return l = x, s = setTimeout(y, t), f ? h2(x) : i;
  }
  function m(x) {
    var T = x - u, V = x - l, $ = t - T;
    return c ? ym($, a - V) : $;
  }
  function g(x) {
    var T = x - u, V = x - l;
    return u === void 0 || T >= t || T < 0 || c && V >= a;
  }
  function y() {
    var x = Po();
    if (g(x))
      return b(x);
    s = setTimeout(y, m(x));
  }
  function b(x) {
    return s = void 0, d && n ? h2(x) : (n = o = void 0, i);
  }
  function O() {
    s !== void 0 && clearTimeout(s), l = 0, n = u = o = s = void 0;
  }
  function I() {
    return s === void 0 ? i : b(Po());
  }
  function S() {
    var x = Po(), T = g(x);
    if (n = arguments, o = this, u = x, T) {
      if (s === void 0)
        return v(u);
      if (c)
        return clearTimeout(s), s = setTimeout(y, t), h2(u);
    }
    return s === void 0 && (s = setTimeout(y, t)), i;
  }
  return S.cancel = O, S.flush = I, S;
}
function gm(e8, t, r) {
  var n = e8 == null ? 0 : e8.length;
  if (!n)
    return -1;
  var o = n - 1;
  return Od(e8, vm(t), o);
}
function Xn(e8) {
  for (var t = -1, r = e8 == null ? 0 : e8.length, n = {}; ++t < r; ) {
    var o = e8[t];
    n[o[0]] = o[1];
  }
  return n;
}
function ra(e8, t) {
  return ho(e8, t);
}
function zt(e8) {
  return e8 == null;
}
function bm(e8) {
  return e8 === void 0;
}
function wm(e8, t, r, n) {
  if (!sr(e8))
    return e8;
  t = mo(t, e8);
  for (var o = -1, a = t.length, i = a - 1, s = e8; s != null && ++o < a; ) {
    var u = On(t[o]), l = r;
    if (u === "__proto__" || u === "constructor" || u === "prototype")
      return e8;
    if (o != i) {
      var f = s[u];
      l = void 0, l === void 0 && (l = sr(f) ? f : _a(t[o + 1]) ? [] : {});
    }
    Td(s, u, l), s = s[u];
  }
  return e8;
}
function Sm(e8, t, r) {
  for (var n = -1, o = t.length, a = {}; ++n < o; ) {
    var i = t[n], s = $a(e8, i);
    r(s, i) && wm(a, mo(i, e8), s);
  }
  return a;
}
function Em(e8, t) {
  return Sm(e8, t, function(r, n) {
    return zl(e8, n);
  });
}
var Om = iv(function(e8, t) {
  return e8 == null ? {} : Em(e8, t);
});
var kt = (e8) => e8 === void 0;
var Bl = (e8) => typeof e8 == "boolean";
var ge = (e8) => typeof e8 == "number";
var yr = (e8) => typeof Element > "u" ? false : e8 instanceof Element;
var Am = (e8) => Qe(e8) ? !Number.isNaN(Number(e8)) : false;
var _m = (e8 = "") => e8.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
var rs = (e8) => Object.keys(e8);
var Dl = class extends Error {
  constructor(t) {
    super(t), this.name = "ElementPlusError";
  }
};
function Fa(e8, t) {
  throw new Dl(`[${e8}] ${t}`);
}
function Ce(e8, t) {
  if (true) {
    const r = Qe(e8) ? new Dl(`[${e8}] ${t}`) : e8;
    console.warn(r);
  }
}
var Im = "utils/dom/style";
var Ul = (e8 = "") => e8.split(" ").filter((t) => !!t.trim());
var ns = (e8, t) => {
  !e8 || !t.trim() || e8.classList.add(...Ul(t));
};
var Qn = (e8, t) => {
  !e8 || !t.trim() || e8.classList.remove(...Ul(t));
};
var ln = (e8, t) => {
  var r;
  if (!Fe || !e8 || !t)
    return "";
  let n = Pc(t);
  n === "float" && (n = "cssFloat");
  try {
    const o = e8.style[n];
    if (o)
      return o;
    const a = (r = document.defaultView) == null ? void 0 : r.getComputedStyle(e8, "");
    return a ? a[n] : "";
  } catch {
    return e8.style[n];
  }
};
function na(e8, t = "px") {
  if (!e8)
    return "";
  if (ge(e8) || Am(e8))
    return `${e8}${t}`;
  if (Qe(e8))
    return e8;
  Ce(Im, "binding value must be a string or number");
}
function Cm(e8, t) {
  if (!Fe)
    return;
  if (!t) {
    e8.scrollTop = 0;
    return;
  }
  const r = [];
  let n = t.offsetParent;
  for (; n !== null && e8 !== n && e8.contains(n); )
    r.push(n), n = n.offsetParent;
  const o = t.offsetTop + r.reduce((u, l) => u + l.offsetTop, 0), a = o + t.offsetHeight, i = e8.scrollTop, s = i + e8.clientHeight;
  o < i ? e8.scrollTop = o : a > s && (e8.scrollTop = a - e8.clientHeight);
}
var xm = defineComponent({
  name: "ArrowDown",
  __name: "arrow-down",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
      })
    ]));
  }
});
var jl = xm;
var Tm = defineComponent({
  name: "ArrowUp",
  __name: "arrow-up",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
      })
    ]));
  }
});
var Pm = Tm;
var $m = defineComponent({
  name: "CircleCheck",
  __name: "circle-check",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
      }),
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
      })
    ]));
  }
});
var Fm = $m;
var Mm = defineComponent({
  name: "CircleClose",
  __name: "circle-close",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
      }),
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
      })
    ]));
  }
});
var Ma = Mm;
var Vm = defineComponent({
  name: "Close",
  __name: "close",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
      })
    ]));
  }
});
var os = Vm;
var Rm = defineComponent({
  name: "Hide",
  __name: "hide",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
      }),
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
      })
    ]));
  }
});
var Nm = Rm;
var km = defineComponent({
  name: "Loading",
  __name: "loading",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("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"
      })
    ]));
  }
});
var Hl = km;
var Lm = defineComponent({
  name: "Minus",
  __name: "minus",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
      })
    ]));
  }
});
var zm = Lm;
var Bm = defineComponent({
  name: "Plus",
  __name: "plus",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
      })
    ]));
  }
});
var Dm = Bm;
var Um = defineComponent({
  name: "View",
  __name: "view",
  setup(e8) {
    return (t, r) => (openBlock(), createElementBlock("svg", {
      xmlns: "http://www.w3.org/2000/svg",
      viewBox: "0 0 1024 1024"
    }, [
      createBaseVNode("path", {
        fill: "currentColor",
        d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
      })
    ]));
  }
});
var jm = Um;
var Wl = "__epPropKey";
var ie = (e8) => e8;
var Hm = (e8) => Ge(e8) && !!e8[Wl];
var yo = (e8, t) => {
  if (!Ge(e8) || Hm(e8))
    return e8;
  const { values: r, required: n, default: o, type: a, validator: i } = e8, u = {
    type: a,
    required: !!n,
    validator: r || i ? (l) => {
      let f = false, c = [];
      if (r && (c = Array.from(r), Pi(e8, "default") && c.push(o), f || (f = c.includes(l))), i && (f || (f = i(l))), !f && c.length > 0) {
        const d = [...new Set(c)].map((h2) => JSON.stringify(h2)).join(", ");
        warn(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(l)}.`);
      }
      return f;
    } : void 0,
    [Wl]: true
  };
  return Pi(e8, "default") && (u.default = o), u;
};
var we = (e8) => Xn(Object.entries(e8).map(([t, r]) => [
  t,
  yo(r, t)
]));
var jr = ie([
  String,
  Object,
  Function
]);
var ql = {
  validating: Hl,
  success: Fm,
  error: Ma
};
var lt = (e8, t) => {
  if (e8.install = (r) => {
    for (const n of [e8, ...Object.values(t ?? {})])
      r.component(n.name, n);
  }, t)
    for (const [r, n] of Object.entries(t))
      e8[r] = n;
  return e8;
};
var Va = (e8) => (e8.install = yn, e8);
var Hr = {
  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"
};
var Pe = "update:modelValue";
var tn = "change";
var gr = "input";
var Kl = ["", "default", "small", "large"];
var Wm = (e8) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e8);
var qm = (e8) => e8;
var Km = ["class", "style"];
var Zm = /^on[A-Z]/;
var Gm = (e8 = {}) => {
  const { excludeListeners: t = false, excludeKeys: r } = e8, n = computed(() => ((r == null ? void 0 : r.value) || []).concat(Km)), o = getCurrentInstance();
  return o ? computed(() => {
    var a;
    return Xn(Object.entries((a = o.proxy) == null ? void 0 : a.$attrs).filter(([i]) => !n.value.includes(i) && !(t && Zm.test(i))));
  }) : (Ce("use-attrs", "getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"), computed(() => ({})));
};
var Jm = ({ from: e8, replacement: t, scope: r, version: n, ref: o, type: a = "API" }, i) => {
  watch(() => unref(i), (s) => {
    s && Ce(r, `[${a}] ${e8} is about to be deprecated in version ${n}, please use ${t} instead.
For more detail, please visit: ${o}
`);
  }, {
    immediate: true
  });
};
var Ym = {
  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}"
    }
  }
};
var Xm = (e8) => (t, r) => Qm(t, r, unref(e8));
var Qm = (e8, t, r) => Rt(r, e8, e8).replace(/\{(\w+)\}/g, (n, o) => {
  var a;
  return `${(a = t == null ? void 0 : t[o]) != null ? a : `{${o}}`}`;
});
var eh = (e8) => {
  const t = computed(() => unref(e8).name), r = isRef(e8) ? e8 : ref(e8);
  return {
    lang: t,
    locale: r,
    t: Xm(e8)
  };
};
var Zl = Symbol("localeContextKey");
var go = (e8) => {
  const t = e8 || inject(Zl, ref());
  return eh(computed(() => t.value || Ym));
};
var Hn = "el";
var th = "is-";
var vr = (e8, t, r, n, o) => {
  let a = `${e8}-${t}`;
  return r && (a += `-${r}`), n && (a += `__${n}`), o && (a += `--${o}`), a;
};
var Gl = Symbol("namespaceContextKey");
var Ra = (e8) => {
  const t = e8 || (getCurrentInstance() ? inject(Gl, ref(Hn)) : ref(Hn));
  return computed(() => unref(t) || Hn);
};
var be = (e8, t) => {
  const r = Ra(t);
  return {
    namespace: r,
    b: (m = "") => vr(r.value, e8, m, "", ""),
    e: (m) => m ? vr(r.value, e8, "", m, "") : "",
    m: (m) => m ? vr(r.value, e8, "", "", m) : "",
    be: (m, g) => m && g ? vr(r.value, e8, m, g, "") : "",
    em: (m, g) => m && g ? vr(r.value, e8, "", m, g) : "",
    bm: (m, g) => m && g ? vr(r.value, e8, m, "", g) : "",
    bem: (m, g, y) => m && g && y ? vr(r.value, e8, m, g, y) : "",
    is: (m, ...g) => {
      const y = g.length >= 1 ? g[0] : true;
      return m && y ? `${th}${m}` : "";
    },
    cssVar: (m) => {
      const g = {};
      for (const y in m)
        m[y] && (g[`--${r.value}-${y}`] = m[y]);
      return g;
    },
    cssVarName: (m) => `--${r.value}-${m}`,
    cssVarBlock: (m) => {
      const g = {};
      for (const y in m)
        m[y] && (g[`--${r.value}-${e8}-${y}`] = m[y]);
      return g;
    },
    cssVarBlockName: (m) => `--${r.value}-${e8}-${m}`
  };
};
var rh = yo({
  type: ie(Boolean),
  default: null
});
var nh = yo({
  type: ie(Function)
});
var oh = (e8) => {
  const t = `update:${e8}`, r = `onUpdate:${e8}`, n = [t], o = {
    [e8]: rh,
    [r]: nh
  };
  return {
    useModelToggle: ({
      indicator: i,
      toggleReason: s,
      shouldHideWhenRouteChanges: u,
      shouldProceed: l,
      onShow: f,
      onHide: c
    }) => {
      const d = getCurrentInstance(), { emit: h2 } = d, v = d.props, m = computed(() => Be(v[r])), g = computed(() => v[e8] === null), y = (T) => {
        i.value !== true && (i.value = true, s && (s.value = T), Be(f) && f(T));
      }, b = (T) => {
        i.value !== false && (i.value = false, s && (s.value = T), Be(c) && c(T));
      }, O = (T) => {
        if (v.disabled === true || Be(l) && !l())
          return;
        const V = m.value && Fe;
        V && h2(t, true), (g.value || !V) && y(T);
      }, I = (T) => {
        if (v.disabled === true || !Fe)
          return;
        const V = m.value && Fe;
        V && h2(t, false), (g.value || !V) && b(T);
      }, S = (T) => {
        Bl(T) && (v.disabled && T ? m.value && h2(t, false) : i.value !== T && (T ? y() : b()));
      }, x = () => {
        i.value ? I() : O();
      };
      return watch(() => v[e8], S), u && d.appContext.config.globalProperties.$route !== void 0 && watch(() => ({
        ...d.proxy.$route
      }), () => {
        u.value && i.value && I();
      }), onMounted(() => {
        S(v[e8]);
      }), {
        hide: I,
        show: O,
        toggle: x,
        hasUpdateHandler: m
      };
    },
    useModelToggleProps: o,
    useModelToggleEmits: n
  };
};
var Jl = (e8) => {
  const t = getCurrentInstance();
  return computed(() => {
    var r, n;
    return (n = (r = t == null ? void 0 : t.proxy) == null ? void 0 : r.$props) == null ? void 0 : n[e8];
  });
};
var Je = "top";
var it = "bottom";
var st = "right";
var Ye = "left";
var Na = "auto";
var An = [Je, it, st, Ye];
var Wr = "start";
var wn = "end";
var ah = "clippingParents";
var Yl = "viewport";
var un = "popper";
var ih = "reference";
var as = An.reduce(function(e8, t) {
  return e8.concat([t + "-" + Wr, t + "-" + wn]);
}, []);
var rn = [].concat(An, [Na]).reduce(function(e8, t) {
  return e8.concat([t, t + "-" + Wr, t + "-" + wn]);
}, []);
var sh = "beforeRead";
var lh = "read";
var uh = "afterRead";
var fh = "beforeMain";
var ch = "main";
var dh = "afterMain";
var ph = "beforeWrite";
var vh = "write";
var mh = "afterWrite";
var hh = [sh, lh, uh, fh, ch, dh, ph, vh, mh];
function It(e8) {
  return e8 ? (e8.nodeName || "").toLowerCase() : null;
}
function yt(e8) {
  if (e8 == null) return window;
  if (e8.toString() !== "[object Window]") {
    var t = e8.ownerDocument;
    return t && t.defaultView || window;
  }
  return e8;
}
function qr(e8) {
  var t = yt(e8).Element;
  return e8 instanceof t || e8 instanceof Element;
}
function nt(e8) {
  var t = yt(e8).HTMLElement;
  return e8 instanceof t || e8 instanceof HTMLElement;
}
function ka(e8) {
  if (typeof ShadowRoot > "u") return false;
  var t = yt(e8).ShadowRoot;
  return e8 instanceof t || e8 instanceof ShadowRoot;
}
function yh(e8) {
  var t = e8.state;
  Object.keys(t.elements).forEach(function(r) {
    var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r];
    !nt(a) || !It(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(i) {
      var s = o[i];
      s === false ? a.removeAttribute(i) : a.setAttribute(i, s === true ? "" : s);
    }));
  });
}
function gh(e8) {
  var t = e8.state, r = { popper: { position: t.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
  return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
    Object.keys(t.elements).forEach(function(n) {
      var o = t.elements[n], a = t.attributes[n] || {}, i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), s = i.reduce(function(u, l) {
        return u[l] = "", u;
      }, {});
      !nt(o) || !It(o) || (Object.assign(o.style, s), Object.keys(a).forEach(function(u) {
        o.removeAttribute(u);
      }));
    });
  };
}
var Xl = { name: "applyStyles", enabled: true, phase: "write", fn: yh, effect: gh, requires: ["computeStyles"] };
function At(e8) {
  return e8.split("-")[0];
}
var br = Math.max;
var eo = Math.min;
var Kr = Math.round;
function Zr(e8, t) {
  t === void 0 && (t = false);
  var r = e8.getBoundingClientRect(), n = 1, o = 1;
  if (nt(e8) && t) {
    var a = e8.offsetHeight, i = e8.offsetWidth;
    i > 0 && (n = Kr(r.width) / i || 1), a > 0 && (o = Kr(r.height) / a || 1);
  }
  return { width: r.width / n, height: r.height / o, top: r.top / o, right: r.right / n, bottom: r.bottom / o, left: r.left / n, x: r.left / n, y: r.top / o };
}
function La(e8) {
  var t = Zr(e8), r = e8.offsetWidth, n = e8.offsetHeight;
  return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e8.offsetLeft, y: e8.offsetTop, width: r, height: n };
}
function Ql(e8, t) {
  var r = t.getRootNode && t.getRootNode();
  if (e8.contains(t)) return true;
  if (r && ka(r)) {
    var n = t;
    do {
      if (n && e8.isSameNode(n)) return true;
      n = n.parentNode || n.host;
    } while (n);
  }
  return false;
}
function Dt(e8) {
  return yt(e8).getComputedStyle(e8);
}
function bh(e8) {
  return ["table", "td", "th"].indexOf(It(e8)) >= 0;
}
function lr(e8) {
  return ((qr(e8) ? e8.ownerDocument : e8.document) || window.document).documentElement;
}
function bo(e8) {
  return It(e8) === "html" ? e8 : e8.assignedSlot || e8.parentNode || (ka(e8) ? e8.host : null) || lr(e8);
}
function is(e8) {
  return !nt(e8) || Dt(e8).position === "fixed" ? null : e8.offsetParent;
}
function wh(e8) {
  var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, r = navigator.userAgent.indexOf("Trident") !== -1;
  if (r && nt(e8)) {
    var n = Dt(e8);
    if (n.position === "fixed") return null;
  }
  var o = bo(e8);
  for (ka(o) && (o = o.host); nt(o) && ["html", "body"].indexOf(It(o)) < 0; ) {
    var a = Dt(o);
    if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none") return o;
    o = o.parentNode;
  }
  return null;
}
function _n(e8) {
  for (var t = yt(e8), r = is(e8); r && bh(r) && Dt(r).position === "static"; ) r = is(r);
  return r && (It(r) === "html" || It(r) === "body" && Dt(r).position === "static") ? t : r || wh(e8) || t;
}
function za(e8) {
  return ["top", "bottom"].indexOf(e8) >= 0 ? "x" : "y";
}
function dn(e8, t, r) {
  return br(e8, eo(t, r));
}
function Sh(e8, t, r) {
  var n = dn(e8, t, r);
  return n > r ? r : n;
}
function eu() {
  return { top: 0, right: 0, bottom: 0, left: 0 };
}
function tu(e8) {
  return Object.assign({}, eu(), e8);
}
function ru(e8, t) {
  return t.reduce(function(r, n) {
    return r[n] = e8, r;
  }, {});
}
var Eh = function(e8, t) {
  return e8 = typeof e8 == "function" ? e8(Object.assign({}, t.rects, { placement: t.placement })) : e8, tu(typeof e8 != "number" ? e8 : ru(e8, An));
};
function Oh(e8) {
  var t, r = e8.state, n = e8.name, o = e8.options, a = r.elements.arrow, i = r.modifiersData.popperOffsets, s = At(r.placement), u = za(s), l = [Ye, st].indexOf(s) >= 0, f = l ? "height" : "width";
  if (!(!a || !i)) {
    var c = Eh(o.padding, r), d = La(a), h2 = u === "y" ? Je : Ye, v = u === "y" ? it : st, m = r.rects.reference[f] + r.rects.reference[u] - i[u] - r.rects.popper[f], g = i[u] - r.rects.reference[u], y = _n(a), b = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, O = m / 2 - g / 2, I = c[h2], S = b - d[f] - c[v], x = b / 2 - d[f] / 2 + O, T = dn(I, x, S), V = u;
    r.modifiersData[n] = (t = {}, t[V] = T, t.centerOffset = T - x, t);
  }
}
function Ah(e8) {
  var t = e8.state, r = e8.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
  o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || !Ql(t.elements.popper, o) || (t.elements.arrow = o));
}
var _h = { name: "arrow", enabled: true, phase: "main", fn: Oh, effect: Ah, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
function Gr(e8) {
  return e8.split("-")[1];
}
var Ih = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
function Ch(e8) {
  var t = e8.x, r = e8.y, n = window, o = n.devicePixelRatio || 1;
  return { x: Kr(t * o) / o || 0, y: Kr(r * o) / o || 0 };
}
function ss(e8) {
  var t, r = e8.popper, n = e8.popperRect, o = e8.placement, a = e8.variation, i = e8.offsets, s = e8.position, u = e8.gpuAcceleration, l = e8.adaptive, f = e8.roundOffsets, c = e8.isFixed, d = i.x, h2 = d === void 0 ? 0 : d, v = i.y, m = v === void 0 ? 0 : v, g = typeof f == "function" ? f({ x: h2, y: m }) : { x: h2, y: m };
  h2 = g.x, m = g.y;
  var y = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), O = Ye, I = Je, S = window;
  if (l) {
    var x = _n(r), T = "clientHeight", V = "clientWidth";
    if (x === yt(r) && (x = lr(r), Dt(x).position !== "static" && s === "absolute" && (T = "scrollHeight", V = "scrollWidth")), x = x, o === Je || (o === Ye || o === st) && a === wn) {
      I = it;
      var $ = c && x === S && S.visualViewport ? S.visualViewport.height : x[T];
      m -= $ - n.height, m *= u ? 1 : -1;
    }
    if (o === Ye || (o === Je || o === it) && a === wn) {
      O = st;
      var H = c && x === S && S.visualViewport ? S.visualViewport.width : x[V];
      h2 -= H - n.width, h2 *= u ? 1 : -1;
    }
  }
  var J = Object.assign({ position: s }, l && Ih), R = f === true ? Ch({ x: h2, y: m }) : { x: h2, y: m };
  if (h2 = R.x, m = R.y, u) {
    var z;
    return Object.assign({}, J, (z = {}, z[I] = b ? "0" : "", z[O] = y ? "0" : "", z.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + h2 + "px, " + m + "px)" : "translate3d(" + h2 + "px, " + m + "px, 0)", z));
  }
  return Object.assign({}, J, (t = {}, t[I] = b ? m + "px" : "", t[O] = y ? h2 + "px" : "", t.transform = "", t));
}
function xh(e8) {
  var t = e8.state, r = e8.options, n = r.gpuAcceleration, o = n === void 0 ? true : n, a = r.adaptive, i = a === void 0 ? true : a, s = r.roundOffsets, u = s === void 0 ? true : s, l = { placement: At(t.placement), variation: Gr(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, ss(Object.assign({}, l, { offsets: t.modifiersData.popperOffsets, position: t.options.strategy, adaptive: i, roundOffsets: u })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ss(Object.assign({}, l, { offsets: t.modifiersData.arrow, position: "absolute", adaptive: false, roundOffsets: u })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement });
}
var nu = { name: "computeStyles", enabled: true, phase: "beforeWrite", fn: xh, data: {} };
var Vn = { passive: true };
function Th(e8) {
  var t = e8.state, r = e8.instance, n = e8.options, o = n.scroll, a = o === void 0 ? true : o, i = n.resize, s = i === void 0 ? true : i, u = yt(t.elements.popper), l = [].concat(t.scrollParents.reference, t.scrollParents.popper);
  return a && l.forEach(function(f) {
    f.addEventListener("scroll", r.update, Vn);
  }), s && u.addEventListener("resize", r.update, Vn), function() {
    a && l.forEach(function(f) {
      f.removeEventListener("scroll", r.update, Vn);
    }), s && u.removeEventListener("resize", r.update, Vn);
  };
}
var ou = { name: "eventListeners", enabled: true, phase: "write", fn: function() {
}, effect: Th, data: {} };
var Ph = { left: "right", right: "left", bottom: "top", top: "bottom" };
function Wn(e8) {
  return e8.replace(/left|right|bottom|top/g, function(t) {
    return Ph[t];
  });
}
var $h = { start: "end", end: "start" };
function ls(e8) {
  return e8.replace(/start|end/g, function(t) {
    return $h[t];
  });
}
function Ba(e8) {
  var t = yt(e8), r = t.pageXOffset, n = t.pageYOffset;
  return { scrollLeft: r, scrollTop: n };
}
function Da(e8) {
  return Zr(lr(e8)).left + Ba(e8).scrollLeft;
}
function Fh(e8) {
  var t = yt(e8), r = lr(e8), n = t.visualViewport, o = r.clientWidth, a = r.clientHeight, i = 0, s = 0;
  return n && (o = n.width, a = n.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (i = n.offsetLeft, s = n.offsetTop)), { width: o, height: a, x: i + Da(e8), y: s };
}
function Mh(e8) {
  var t, r = lr(e8), n = Ba(e8), o = (t = e8.ownerDocument) == null ? void 0 : t.body, a = br(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), i = br(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + Da(e8), u = -n.scrollTop;
  return Dt(o || r).direction === "rtl" && (s += br(r.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: i, x: s, y: u };
}
function Ua(e8) {
  var t = Dt(e8), r = t.overflow, n = t.overflowX, o = t.overflowY;
  return /auto|scroll|overlay|hidden/.test(r + o + n);
}
function au(e8) {
  return ["html", "body", "#document"].indexOf(It(e8)) >= 0 ? e8.ownerDocument.body : nt(e8) && Ua(e8) ? e8 : au(bo(e8));
}
function pn(e8, t) {
  var r;
  t === void 0 && (t = []);
  var n = au(e8), o = n === ((r = e8.ownerDocument) == null ? void 0 : r.body), a = yt(n), i = o ? [a].concat(a.visualViewport || [], Ua(n) ? n : []) : n, s = t.concat(i);
  return o ? s : s.concat(pn(bo(i)));
}
function oa(e8) {
  return Object.assign({}, e8, { left: e8.x, top: e8.y, right: e8.x + e8.width, bottom: e8.y + e8.height });
}
function Vh(e8) {
  var t = Zr(e8);
  return t.top = t.top + e8.clientTop, t.left = t.left + e8.clientLeft, t.bottom = t.top + e8.clientHeight, t.right = t.left + e8.clientWidth, t.width = e8.clientWidth, t.height = e8.clientHeight, t.x = t.left, t.y = t.top, t;
}
function us(e8, t) {
  return t === Yl ? oa(Fh(e8)) : qr(t) ? Vh(t) : oa(Mh(lr(e8)));
}
function Rh(e8) {
  var t = pn(bo(e8)), r = ["absolute", "fixed"].indexOf(Dt(e8).position) >= 0, n = r && nt(e8) ? _n(e8) : e8;
  return qr(n) ? t.filter(function(o) {
    return qr(o) && Ql(o, n) && It(o) !== "body";
  }) : [];
}
function Nh(e8, t, r) {
  var n = t === "clippingParents" ? Rh(e8) : [].concat(t), o = [].concat(n, [r]), a = o[0], i = o.reduce(function(s, u) {
    var l = us(e8, u);
    return s.top = br(l.top, s.top), s.right = eo(l.right, s.right), s.bottom = eo(l.bottom, s.bottom), s.left = br(l.left, s.left), s;
  }, us(e8, a));
  return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
}
function iu(e8) {
  var t = e8.reference, r = e8.element, n = e8.placement, o = n ? At(n) : null, a = n ? Gr(n) : null, i = t.x + t.width / 2 - r.width / 2, s = t.y + t.height / 2 - r.height / 2, u;
  switch (o) {
    case Je:
      u = { x: i, y: t.y - r.height };
      break;
    case it:
      u = { x: i, y: t.y + t.height };
      break;
    case st:
      u = { x: t.x + t.width, y: s };
      break;
    case Ye:
      u = { x: t.x - r.width, y: s };
      break;
    default:
      u = { x: t.x, y: t.y };
  }
  var l = o ? za(o) : null;
  if (l != null) {
    var f = l === "y" ? "height" : "width";
    switch (a) {
      case Wr:
        u[l] = u[l] - (t[f] / 2 - r[f] / 2);
        break;
      case wn:
        u[l] = u[l] + (t[f] / 2 - r[f] / 2);
        break;
    }
  }
  return u;
}
function Sn(e8, t) {
  t === void 0 && (t = {});
  var r = t, n = r.placement, o = n === void 0 ? e8.placement : n, a = r.boundary, i = a === void 0 ? ah : a, s = r.rootBoundary, u = s === void 0 ? Yl : s, l = r.elementContext, f = l === void 0 ? un : l, c = r.altBoundary, d = c === void 0 ? false : c, h2 = r.padding, v = h2 === void 0 ? 0 : h2, m = tu(typeof v != "number" ? v : ru(v, An)), g = f === un ? ih : un, y = e8.rects.popper, b = e8.elements[d ? g : f], O = Nh(qr(b) ? b : b.contextElement || lr(e8.elements.popper), i, u), I = Zr(e8.elements.reference), S = iu({ reference: I, element: y, strategy: "absolute", placement: o }), x = oa(Object.assign({}, y, S)), T = f === un ? x : I, V = { top: O.top - T.top + m.top, bottom: T.bottom - O.bottom + m.bottom, left: O.left - T.left + m.left, right: T.right - O.right + m.right }, $ = e8.modifiersData.offset;
  if (f === un && $) {
    var H = $[o];
    Object.keys(V).forEach(function(J) {
      var R = [st, it].indexOf(J) >= 0 ? 1 : -1, z = [Je, it].indexOf(J) >= 0 ? "y" : "x";
      V[J] += H[z] * R;
    });
  }
  return V;
}
function kh(e8, t) {
  t === void 0 && (t = {});
  var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, i = r.padding, s = r.flipVariations, u = r.allowedAutoPlacements, l = u === void 0 ? rn : u, f = Gr(n), c = f ? s ? as : as.filter(function(v) {
    return Gr(v) === f;
  }) : An, d = c.filter(function(v) {
    return l.indexOf(v) >= 0;
  });
  d.length === 0 && (d = c);
  var h2 = d.reduce(function(v, m) {
    return v[m] = Sn(e8, { placement: m, boundary: o, rootBoundary: a, padding: i })[At(m)], v;
  }, {});
  return Object.keys(h2).sort(function(v, m) {
    return h2[v] - h2[m];
  });
}
function Lh(e8) {
  if (At(e8) === Na) return [];
  var t = Wn(e8);
  return [ls(e8), t, ls(t)];
}
function zh(e8) {
  var t = e8.state, r = e8.options, n = e8.name;
  if (!t.modifiersData[n]._skip) {
    for (var o = r.mainAxis, a = o === void 0 ? true : o, i = r.altAxis, s = i === void 0 ? true : i, u = r.fallbackPlacements, l = r.padding, f = r.boundary, c = r.rootBoundary, d = r.altBoundary, h2 = r.flipVariations, v = h2 === void 0 ? true : h2, m = r.allowedAutoPlacements, g = t.options.placement, y = At(g), b = y === g, O = u || (b || !v ? [Wn(g)] : Lh(g)), I = [g].concat(O).reduce(function(Y, oe) {
      return Y.concat(At(oe) === Na ? kh(t, { placement: oe, boundary: f, rootBoundary: c, padding: l, flipVariations: v, allowedAutoPlacements: m }) : oe);
    }, []), S = t.rects.reference, x = t.rects.popper, T = /* @__PURE__ */ new Map(), V = true, $ = I[0], H = 0; H < I.length; H++) {
      var J = I[H], R = At(J), z = Gr(J) === Wr, X = [Je, it].indexOf(R) >= 0, _ = X ? "width" : "height", A = Sn(t, { placement: J, boundary: f, rootBoundary: c, altBoundary: d, padding: l }), k = X ? z ? st : Ye : z ? it : Je;
      S[_] > x[_] && (k = Wn(k));
      var Q = Wn(k), K = [];
      if (a && K.push(A[R] <= 0), s && K.push(A[k] <= 0, A[Q] <= 0), K.every(function(Y) {
        return Y;
      })) {
        $ = J, V = false;
        break;
      }
      T.set(J, K);
    }
    if (V) for (var P = v ? 3 : 1, U = function(Y) {
      var oe = I.find(function(ae) {
        var W = T.get(ae);
        if (W) return W.slice(0, Y).every(function(Ee) {
          return Ee;
        });
      });
      if (oe) return $ = oe, "break";
    }, M = P; M > 0; M--) {
      var j = U(M);
      if (j === "break") break;
    }
    t.placement !== $ && (t.modifiersData[n]._skip = true, t.placement = $, t.reset = true);
  }
}
var Bh = { name: "flip", enabled: true, phase: "main", fn: zh, requiresIfExists: ["offset"], data: { _skip: false } };
function fs(e8, t, r) {
  return r === void 0 && (r = { x: 0, y: 0 }), { top: e8.top - t.height - r.y, right: e8.right - t.width + r.x, bottom: e8.bottom - t.height + r.y, left: e8.left - t.width - r.x };
}
function cs(e8) {
  return [Je, st, it, Ye].some(function(t) {
    return e8[t] >= 0;
  });
}
function Dh(e8) {
  var t = e8.state, r = e8.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Sn(t, { elementContext: "reference" }), s = Sn(t, { altBoundary: true }), u = fs(i, n), l = fs(s, o, a), f = cs(u), c = cs(l);
  t.modifiersData[r] = { referenceClippingOffsets: u, popperEscapeOffsets: l, isReferenceHidden: f, hasPopperEscaped: c }, t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-reference-hidden": f, "data-popper-escaped": c });
}
var Uh = { name: "hide", enabled: true, phase: "main", requiresIfExists: ["preventOverflow"], fn: Dh };
function jh(e8, t, r) {
  var n = At(e8), o = [Ye, Je].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { placement: e8 })) : r, i = a[0], s = a[1];
  return i = i || 0, s = (s || 0) * o, [Ye, st].indexOf(n) >= 0 ? { x: s, y: i } : { x: i, y: s };
}
function Hh(e8) {
  var t = e8.state, r = e8.options, n = e8.name, o = r.offset, a = o === void 0 ? [0, 0] : o, i = rn.reduce(function(f, c) {
    return f[c] = jh(c, t.rects, a), f;
  }, {}), s = i[t.placement], u = s.x, l = s.y;
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += u, t.modifiersData.popperOffsets.y += l), t.modifiersData[n] = i;
}
var Wh = { name: "offset", enabled: true, phase: "main", requires: ["popperOffsets"], fn: Hh };
function qh(e8) {
  var t = e8.state, r = e8.name;
  t.modifiersData[r] = iu({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement });
}
var su = { name: "popperOffsets", enabled: true, phase: "read", fn: qh, data: {} };
function Kh(e8) {
  return e8 === "x" ? "y" : "x";
}
function Zh(e8) {
  var t = e8.state, r = e8.options, n = e8.name, o = r.mainAxis, a = o === void 0 ? true : o, i = r.altAxis, s = i === void 0 ? false : i, u = r.boundary, l = r.rootBoundary, f = r.altBoundary, c = r.padding, d = r.tether, h2 = d === void 0 ? true : d, v = r.tetherOffset, m = v === void 0 ? 0 : v, g = Sn(t, { boundary: u, rootBoundary: l, padding: c, altBoundary: f }), y = At(t.placement), b = Gr(t.placement), O = !b, I = za(y), S = Kh(I), x = t.modifiersData.popperOffsets, T = t.rects.reference, V = t.rects.popper, $ = typeof m == "function" ? m(Object.assign({}, t.rects, { placement: t.placement })) : m, H = typeof $ == "number" ? { mainAxis: $, altAxis: $ } : Object.assign({ mainAxis: 0, altAxis: 0 }, $), J = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, R = { x: 0, y: 0 };
  if (x) {
    if (a) {
      var z, X = I === "y" ? Je : Ye, _ = I === "y" ? it : st, A = I === "y" ? "height" : "width", k = x[I], Q = k + g[X], K = k - g[_], P = h2 ? -V[A] / 2 : 0, U = b === Wr ? T[A] : V[A], M = b === Wr ? -V[A] : -T[A], j = t.elements.arrow, Y = h2 && j ? La(j) : { width: 0, height: 0 }, oe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : eu(), ae = oe[X], W = oe[_], Ee = dn(0, T[A], Y[A]), Ae = O ? T[A] / 2 - P - Ee - ae - H.mainAxis : U - Ee - ae - H.mainAxis, _e = O ? -T[A] / 2 + P + Ee + W + H.mainAxis : M + Ee + W + H.mainAxis, ue = t.elements.arrow && _n(t.elements.arrow), he = ue ? I === "y" ? ue.clientTop || 0 : ue.clientLeft || 0 : 0, Te = (z = J == null ? void 0 : J[I]) != null ? z : 0, Ue = k + Ae - Te - he, Ke = k + _e - Te, Ze = dn(h2 ? eo(Q, Ue) : Q, k, h2 ? br(K, Ke) : K);
      x[I] = Ze, R[I] = Ze - k;
    }
    if (s) {
      var dr, Pt = I === "x" ? Je : Ye, Tr = I === "x" ? it : st, ut = x[S], Ht = S === "y" ? "height" : "width", Wt = ut + g[Pt], Pr = ut - g[Tr], gt = [Je, Ye].indexOf(y) !== -1, F = (dr = J == null ? void 0 : J[S]) != null ? dr : 0, de = gt ? Wt : ut - T[Ht] - V[Ht] - F + H.altAxis, tt = gt ? ut + T[Ht] + V[Ht] - F - H.altAxis : Pr, qt = h2 && gt ? Sh(de, ut, tt) : dn(h2 ? de : Wt, ut, h2 ? tt : Pr);
      x[S] = qt, R[S] = qt - ut;
    }
    t.modifiersData[n] = R;
  }
}
var Gh = { name: "preventOverflow", enabled: true, phase: "main", fn: Zh, requiresIfExists: ["offset"] };
function Jh(e8) {
  return { scrollLeft: e8.scrollLeft, scrollTop: e8.scrollTop };
}
function Yh(e8) {
  return e8 === yt(e8) || !nt(e8) ? Ba(e8) : Jh(e8);
}
function Xh(e8) {
  var t = e8.getBoundingClientRect(), r = Kr(t.width) / e8.offsetWidth || 1, n = Kr(t.height) / e8.offsetHeight || 1;
  return r !== 1 || n !== 1;
}
function Qh(e8, t, r) {
  r === void 0 && (r = false);
  var n = nt(t), o = nt(t) && Xh(t), a = lr(t), i = Zr(e8, o), s = { scrollLeft: 0, scrollTop: 0 }, u = { x: 0, y: 0 };
  return (n || !n && !r) && ((It(t) !== "body" || Ua(a)) && (s = Yh(t)), nt(t) ? (u = Zr(t, true), u.x += t.clientLeft, u.y += t.clientTop) : a && (u.x = Da(a))), { x: i.left + s.scrollLeft - u.x, y: i.top + s.scrollTop - u.y, width: i.width, height: i.height };
}
function ey(e8) {
  var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
  e8.forEach(function(a) {
    t.set(a.name, a);
  });
  function o(a) {
    r.add(a.name);
    var i = [].concat(a.requires || [], a.requiresIfExists || []);
    i.forEach(function(s) {
      if (!r.has(s)) {
        var u = t.get(s);
        u && o(u);
      }
    }), n.push(a);
  }
  return e8.forEach(function(a) {
    r.has(a.name) || o(a);
  }), n;
}
function ty(e8) {
  var t = ey(e8);
  return hh.reduce(function(r, n) {
    return r.concat(t.filter(function(o) {
      return o.phase === n;
    }));
  }, []);
}
function ry(e8) {
  var t;
  return function() {
    return t || (t = new Promise(function(r) {
      Promise.resolve().then(function() {
        t = void 0, r(e8());
      });
    })), t;
  };
}
function ny(e8) {
  var t = e8.reduce(function(r, n) {
    var o = r[n.name];
    return r[n.name] = o ? Object.assign({}, o, n, { options: Object.assign({}, o.options, n.options), data: Object.assign({}, o.data, n.data) }) : n, r;
  }, {});
  return Object.keys(t).map(function(r) {
    return t[r];
  });
}
var ds = { placement: "bottom", modifiers: [], strategy: "absolute" };
function ps() {
  for (var e8 = arguments.length, t = new Array(e8), r = 0; r < e8; r++) t[r] = arguments[r];
  return !t.some(function(n) {
    return !(n && typeof n.getBoundingClientRect == "function");
  });
}
function ja(e8) {
  e8 === void 0 && (e8 = {});
  var t = e8, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? ds : o;
  return function(i, s, u) {
    u === void 0 && (u = a);
    var l = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, ds, a), modifiersData: {}, elements: { reference: i, popper: s }, attributes: {}, styles: {} }, f = [], c = false, d = { state: l, setOptions: function(m) {
      var g = typeof m == "function" ? m(l.options) : m;
      v(), l.options = Object.assign({}, a, l.options, g), l.scrollParents = { reference: qr(i) ? pn(i) : i.contextElement ? pn(i.contextElement) : [], popper: pn(s) };
      var y = ty(ny([].concat(n, l.options.modifiers)));
      return l.orderedModifiers = y.filter(function(b) {
        return b.enabled;
      }), h2(), d.update();
    }, forceUpdate: function() {
      if (!c) {
        var m = l.elements, g = m.reference, y = m.popper;
        if (ps(g, y)) {
          l.rects = { reference: Qh(g, _n(y), l.options.strategy === "fixed"), popper: La(y) }, l.reset = false, l.placement = l.options.placement, l.orderedModifiers.forEach(function(V) {
            return l.modifiersData[V.name] = Object.assign({}, V.data);
          });
          for (var b = 0; b < l.orderedModifiers.length; b++) {
            if (l.reset === true) {
              l.reset = false, b = -1;
              continue;
            }
            var O = l.orderedModifiers[b], I = O.fn, S = O.options, x = S === void 0 ? {} : S, T = O.name;
            typeof I == "function" && (l = I({ state: l, options: x, name: T, instance: d }) || l);
          }
        }
      }
    }, update: ry(function() {
      return new Promise(function(m) {
        d.forceUpdate(), m(l);
      });
    }), destroy: function() {
      v(), c = true;
    } };
    if (!ps(i, s)) return d;
    d.setOptions(u).then(function(m) {
      !c && u.onFirstUpdate && u.onFirstUpdate(m);
    });
    function h2() {
      l.orderedModifiers.forEach(function(m) {
        var g = m.name, y = m.options, b = y === void 0 ? {} : y, O = m.effect;
        if (typeof O == "function") {
          var I = O({ state: l, name: g, instance: d, options: b }), S = function() {
          };
          f.push(I || S);
        }
      });
    }
    function v() {
      f.forEach(function(m) {
        return m();
      }), f = [];
    }
    return d;
  };
}
ja();
var oy = [ou, su, nu, Xl];
ja({ defaultModifiers: oy });
var ay = [ou, su, nu, Xl, Wh, Bh, Gh, _h, Uh];
var iy = ja({ defaultModifiers: ay });
var sy = (e8, t, r = {}) => {
  const n = {
    name: "updateState",
    enabled: true,
    phase: "write",
    fn: ({ state: u }) => {
      const l = ly(u);
      Object.assign(i.value, l);
    },
    requires: ["computeStyles"]
  }, o = computed(() => {
    const { onFirstUpdate: u, placement: l, strategy: f, modifiers: c } = unref(r);
    return {
      onFirstUpdate: u,
      placement: l || "bottom",
      strategy: f || "absolute",
      modifiers: [
        ...c || [],
        n,
        { name: "applyStyles", enabled: false }
      ]
    };
  }), a = shallowRef(), i = ref({
    styles: {
      popper: {
        position: unref(o).strategy,
        left: "0",
        top: "0"
      },
      arrow: {
        position: "absolute"
      }
    },
    attributes: {}
  }), s = () => {
    a.value && (a.value.destroy(), a.value = void 0);
  };
  return watch(o, (u) => {
    const l = unref(a);
    l && l.setOptions(u);
  }, {
    deep: true
  }), watch([e8, t], ([u, l]) => {
    s(), !(!u || !l) && (a.value = iy(u, l, unref(o)));
  }), onBeforeUnmount(() => {
    s();
  }), {
    state: computed(() => {
      var u;
      return { ...((u = unref(a)) == null ? void 0 : u.state) || {} };
    }),
    styles: computed(() => unref(i).styles),
    attributes: computed(() => unref(i).attributes),
    update: () => {
      var u;
      return (u = unref(a)) == null ? void 0 : u.update();
    },
    forceUpdate: () => {
      var u;
      return (u = unref(a)) == null ? void 0 : u.forceUpdate();
    },
    instanceRef: computed(() => unref(a))
  };
};
function ly(e8) {
  const t = Object.keys(e8.elements), r = Xn(t.map((o) => [o, e8.styles[o] || {}])), n = Xn(t.map((o) => [o, e8.attributes[o]]));
  return {
    styles: r,
    attributes: n
  };
}
function vs() {
  let e8;
  const t = (n, o) => {
    r(), e8 = window.setTimeout(n, o);
  }, r = () => window.clearTimeout(e8);
  return uo(() => r()), {
    registerTimeout: t,
    cancelTimeout: r
  };
}
var aa = {
  prefix: Math.floor(Math.random() * 1e4),
  current: 0
};
var uy = Symbol("elIdInjection");
var lu = () => getCurrentInstance() ? inject(uy, aa) : aa;
var wo = (e8) => {
  const t = lu();
  !Fe && t === aa && Ce("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 r = Ra();
  return computed(() => unref(e8) || `${r.value}-id-${t.prefix}-${t.current++}`);
};
var kr = [];
var ms = (e8) => {
  const t = e8;
  t.key === Hr.esc && kr.forEach((r) => r(t));
};
var fy = (e8) => {
  onMounted(() => {
    kr.length === 0 && document.addEventListener("keydown", ms), Fe && kr.push(e8);
  }), onBeforeUnmount(() => {
    kr = kr.filter((t) => t !== e8), kr.length === 0 && Fe && document.removeEventListener("keydown", ms);
  });
};
var hs;
var uu = () => {
  const e8 = Ra(), t = lu(), r = computed(() => `${e8.value}-popper-container-${t.prefix}`), n = computed(() => `#${r.value}`);
  return {
    id: r,
    selector: n
  };
};
var cy = (e8) => {
  const t = document.createElement("div");
  return t.id = e8, document.body.appendChild(t), t;
};
var dy = () => {
  const { id: e8, selector: t } = uu();
  return onBeforeMount(() => {
    Fe && (!hs || !document.body.querySelector(t.value)) && (hs = cy(e8.value));
  }), {
    id: e8,
    selector: t
  };
};
var py = we({
  showAfter: {
    type: Number,
    default: 0
  },
  hideAfter: {
    type: Number,
    default: 200
  },
  autoClose: {
    type: Number,
    default: 0
  }
});
var vy = ({
  showAfter: e8,
  hideAfter: t,
  autoClose: r,
  open: n,
  close: o
}) => {
  const { registerTimeout: a } = vs(), {
    registerTimeout: i,
    cancelTimeout: s
  } = vs();
  return {
    onOpen: (f) => {
      a(() => {
        n(f);
        const c = unref(r);
        ge(c) && c > 0 && i(() => {
          o(f);
        }, c);
      }, unref(e8));
    },
    onClose: (f) => {
      s(), a(() => {
        o(f);
      }, unref(t));
    }
  };
};
var fu = Symbol("elForwardRef");
var my = (e8) => {
  provide(fu, {
    setForwardRef: (r) => {
      e8.value = r;
    }
  });
};
var hy = (e8) => ({
  mounted(t) {
    e8(t);
  },
  updated(t) {
    e8(t);
  },
  unmounted() {
    e8(null);
  }
});
var ys = {
  current: 0
};
var gs = ref(0);
var cu = 2e3;
var bs = Symbol("elZIndexContextKey");
var du = Symbol("zIndexContextKey");
var pu = (e8) => {
  const t = getCurrentInstance() ? inject(bs, ys) : ys, r = e8 || (getCurrentInstance() ? inject(du, void 0) : void 0), n = computed(() => {
    const i = unref(r);
    return ge(i) ? i : cu;
  }), o = computed(() => n.value + gs.value), a = () => (t.current++, gs.value = t.current, o.value);
  return !Fe && !inject(bs) && Ce("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: n,
    currentZIndex: o,
    nextZIndex: a
  };
};
function yy(e8) {
  let t;
  function r() {
    if (e8.value == null)
      return;
    const { selectionStart: o, selectionEnd: a, value: i } = e8.value;
    if (o == null || a == null)
      return;
    const s = i.slice(0, Math.max(0, o)), u = i.slice(Math.max(0, a));
    t = {
      selectionStart: o,
      selectionEnd: a,
      value: i,
      beforeTxt: s,
      afterTxt: u
    };
  }
  function n() {
    if (e8.value == null || t == null)
      return;
    const { value: o } = e8.value, { beforeTxt: a, afterTxt: i, selectionStart: s } = t;
    if (a == null || i == null || s == null)
      return;
    let u = o.length;
    if (o.endsWith(i))
      u = o.length - i.length;
    else if (o.startsWith(a))
      u = a.length;
    else {
      const l = a[s - 1], f = o.indexOf(l, s - 1);
      f !== -1 && (u = f + 1);
    }
    e8.value.setSelectionRange(u, u);
  }
  return [r, n];
}
var Jr = yo({
  type: String,
  values: Kl,
  required: false
});
var vu = Symbol("size");
var gy = () => {
  const e8 = inject(vu, {});
  return computed(() => unref(e8.size) || "");
};
function mu(e8, {
  beforeFocus: t,
  afterFocus: r,
  beforeBlur: n,
  afterBlur: o
} = {}) {
  const a = getCurrentInstance(), { emit: i } = a, s = shallowRef(), u = ref(false), l = (d) => {
    Be(t) && t(d) || u.value || (u.value = true, i("focus", d), r == null || r());
  }, f = (d) => {
    var h2;
    Be(n) && n(d) || d.relatedTarget && ((h2 = s.value) != null && h2.contains(d.relatedTarget)) || (u.value = false, i("blur", d), o == null || o());
  }, c = () => {
    var d, h2;
    (d = s.value) != null && d.contains(document.activeElement) && s.value !== document.activeElement || (h2 = e8.value) == null || h2.focus();
  };
  return watch(s, (d) => {
    d && d.setAttribute("tabindex", "-1");
  }), je(s, "focus", l, true), je(s, "blur", f, true), je(s, "click", c, true), false, {
    isFocused: u,
    wrapperRef: s,
    handleFocus: l,
    handleBlur: f
  };
}
function hu({
  afterComposition: e8,
  emit: t
}) {
  const r = ref(false), n = (s) => {
    t == null || t("compositionstart", s), r.value = true;
  }, o = (s) => {
    var u;
    t == null || t("compositionupdate", s);
    const l = (u = s.target) == null ? void 0 : u.value, f = l[l.length - 1] || "";
    r.value = !Wm(f);
  }, a = (s) => {
    t == null || t("compositionend", s), r.value && (r.value = false, nextTick(() => e8(s)));
  };
  return {
    isComposing: r,
    handleComposition: (s) => {
      s.type === "compositionend" ? a(s) : o(s);
    },
    handleCompositionStart: n,
    handleCompositionUpdate: o,
    handleCompositionEnd: a
  };
}
var yu = Symbol("emptyValuesContextKey");
var by = "use-empty-values";
var wy = ["", void 0, null];
var Sy = void 0;
var Ey = we({
  emptyValues: Array,
  valueOnClear: {
    type: [String, Number, Boolean, Function],
    default: void 0,
    validator: (e8) => Be(e8) ? !e8() : !e8
  }
});
var Oy = (e8, t) => {
  const r = getCurrentInstance() ? inject(yu, ref({})) : ref({}), n = computed(() => e8.emptyValues || r.value.emptyValues || wy), o = computed(() => Be(e8.valueOnClear) ? e8.valueOnClear() : e8.valueOnClear !== void 0 ? e8.valueOnClear : Be(r.value.valueOnClear) ? r.value.valueOnClear() : r.value.valueOnClear !== void 0 ? r.value.valueOnClear : Sy), a = (i) => n.value.includes(i);
  return n.value.includes(o.value) || Ce(by, "value-on-clear should be a value of empty-values"), {
    emptyValues: n,
    valueOnClear: o,
    isEmptyValue: a
  };
};
var Ay = we({
  ariaLabel: String,
  ariaOrientation: {
    type: String,
    values: ["horizontal", "vertical", "undefined"]
  },
  ariaControls: String
});
var Cr = (e8) => Om(Ay, e8);
var gu = Symbol();
var to = ref();
function Ha(e8, t = void 0) {
  const r = getCurrentInstance() ? inject(gu, to) : to;
  return e8 ? computed(() => {
    var n, o;
    return (o = (n = r.value) == null ? void 0 : n[e8]) != null ? o : t;
  }) : r;
}
function _y(e8, t) {
  const r = Ha(), n = be(e8, computed(() => {
    var s;
    return ((s = r.value) == null ? void 0 : s.namespace) || Hn;
  })), o = go(computed(() => {
    var s;
    return (s = r.value) == null ? void 0 : s.locale;
  })), a = pu(computed(() => {
    var s;
    return ((s = r.value) == null ? void 0 : s.zIndex) || cu;
  })), i = computed(() => {
    var s;
    return unref(t) || ((s = r.value) == null ? void 0 : s.size) || "";
  });
  return Iy(computed(() => unref(r) || {})), {
    ns: n,
    locale: o,
    zIndex: a,
    size: i
  };
}
var Iy = (e8, t, r = false) => {
  var n;
  const o = !!getCurrentInstance(), a = o ? Ha() : void 0, i = (n = void 0) != null ? n : o ? provide : void 0;
  if (!i) {
    Ce("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
    return;
  }
  const s = computed(() => {
    const u = unref(e8);
    return a != null && a.value ? Cy(a.value, u) : u;
  });
  return i(gu, s), i(Zl, computed(() => s.value.locale)), i(Gl, computed(() => s.value.namespace)), i(du, computed(() => s.value.zIndex)), i(vu, {
    size: computed(() => s.value.size || "")
  }), i(yu, computed(() => ({
    emptyValues: s.value.emptyValues,
    valueOnClear: s.value.valueOnClear
  }))), (r || !to.value) && (to.value = s.value), s;
};
var Cy = (e8, t) => {
  const r = [.../* @__PURE__ */ new Set([...rs(e8), ...rs(t)])], n = {};
  for (const o of r)
    n[o] = t[o] !== void 0 ? t[o] : e8[o];
  return n;
};
var Se = (e8, t) => {
  const r = e8.__vccOpts || e8;
  for (const [n, o] of t)
    r[n] = o;
  return r;
};
var xy = we({
  size: {
    type: ie([Number, String])
  },
  color: {
    type: String
  }
});
var Ty = defineComponent({
  name: "ElIcon",
  inheritAttrs: false
});
var Py = defineComponent({
  ...Ty,
  props: xy,
  setup(e8) {
    const t = e8, r = be("icon"), n = computed(() => {
      const { size: o, color: a } = t;
      return !o && !a ? {} : {
        fontSize: kt(o) ? void 0 : na(o),
        "--color": a
      };
    });
    return (o, a) => (openBlock(), createElementBlock("i", mergeProps({
      class: unref(r).b(),
      style: unref(n)
    }, o.$attrs), [
      renderSlot(o.$slots, "default")
    ], 16));
  }
});
var $y = Se(Py, [["__file", "icon.vue"]]);
var rt = lt($y);
var Wa = Symbol("formContextKey");
var ro = Symbol("formItemContextKey");
var nn = (e8, t = {}) => {
  const r = ref(void 0), n = t.prop ? r : Jl("size"), o = t.global ? r : gy(), a = t.form ? { size: void 0 } : inject(Wa, void 0), i = t.formItem ? { size: void 0 } : inject(ro, void 0);
  return computed(() => n.value || unref(e8) || (i == null ? void 0 : i.size) || (a == null ? void 0 : a.size) || o.value || "");
};
var So = (e8) => {
  const t = Jl("disabled"), r = inject(Wa, void 0);
  return computed(() => t.value || unref(e8) || (r == null ? void 0 : r.disabled) || false);
};
var In = () => {
  const e8 = inject(Wa, void 0), t = inject(ro, void 0);
  return {
    form: e8,
    formItem: t
  };
};
var qa = (e8, {
  formItemContext: t,
  disableIdGeneration: r,
  disableIdManagement: n
}) => {
  r || (r = ref(false)), n || (n = ref(false));
  const o = ref();
  let a;
  const i = computed(() => {
    var s;
    return !!(!(e8.label || e8.ariaLabel) && t && t.inputIds && ((s = t.inputIds) == null ? void 0 : s.length) <= 1);
  });
  return onMounted(() => {
    a = watch([toRef(e8, "id"), r], ([s, u]) => {
      const l = s ?? (u ? void 0 : wo().value);
      l !== o.value && (t != null && t.removeInputId && (o.value && t.removeInputId(o.value), !(n != null && n.value) && !u && l && t.addInputId(l)), o.value = l);
    }, { immediate: true });
  }), onUnmounted(() => {
    a && a(), t != null && t.removeInputId && o.value && t.removeInputId(o.value);
  }), {
    isLabeledByFormItem: i,
    inputId: o
  };
};
var ft;
var Fy = `
  height:0 !important;
  visibility:hidden !important;
  ${_c() ? "" : "overflow:hidden !important;"}
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
`;
var My = [
  "letter-spacing",
  "line-height",
  "padding-top",
  "padding-bottom",
  "font-family",
  "font-weight",
  "font-size",
  "text-rendering",
  "text-transform",
  "width",
  "text-indent",
  "padding-left",
  "padding-right",
  "border-width",
  "box-sizing"
];
function Vy(e8) {
  const t = window.getComputedStyle(e8), r = t.getPropertyValue("box-sizing"), n = Number.parseFloat(t.getPropertyValue("padding-bottom")) + Number.parseFloat(t.getPropertyValue("padding-top")), o = Number.parseFloat(t.getPropertyValue("border-bottom-width")) + Number.parseFloat(t.getPropertyValue("border-top-width"));
  return { contextStyle: My.map((i) => `${i}:${t.getPropertyValue(i)}`).join(";"), paddingSize: n, borderSize: o, boxSizing: r };
}
function ws(e8, t = 1, r) {
  var n;
  ft || (ft = document.createElement("textarea"), document.body.appendChild(ft));
  const { paddingSize: o, borderSize: a, boxSizing: i, contextStyle: s } = Vy(e8);
  ft.setAttribute("style", `${s};${Fy}`), ft.value = e8.value || e8.placeholder || "";
  let u = ft.scrollHeight;
  const l = {};
  i === "border-box" ? u = u + a : i === "content-box" && (u = u - o), ft.value = "";
  const f = ft.scrollHeight - o;
  if (ge(t)) {
    let c = f * t;
    i === "border-box" && (c = c + o + a), u = Math.max(c, u), l.minHeight = `${c}px`;
  }
  if (ge(r)) {
    let c = f * r;
    i === "border-box" && (c = c + o + a), u = Math.min(c, u);
  }
  return l.height = `${u}px`, (n = ft.parentNode) == null || n.removeChild(ft), ft = void 0, l;
}
var Ry = we({
  id: {
    type: String,
    default: void 0
  },
  size: Jr,
  disabled: Boolean,
  modelValue: {
    type: ie([
      String,
      Number,
      Object
    ]),
    default: ""
  },
  maxlength: {
    type: [String, Number]
  },
  minlength: {
    type: [String, Number]
  },
  type: {
    type: String,
    default: "text"
  },
  resize: {
    type: String,
    values: ["none", "both", "horizontal", "vertical"]
  },
  autosize: {
    type: ie([Boolean, Object]),
    default: false
  },
  autocomplete: {
    type: String,
    default: "off"
  },
  formatter: {
    type: Function
  },
  parser: {
    type: Function
  },
  placeholder: {
    type: String
  },
  form: {
    type: String
  },
  readonly: Boolean,
  clearable: Boolean,
  showPassword: Boolean,
  showWordLimit: Boolean,
  suffixIcon: {
    type: jr
  },
  prefixIcon: {
    type: jr
  },
  containerRole: {
    type: String,
    default: void 0
  },
  tabindex: {
    type: [String, Number],
    default: 0
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  inputStyle: {
    type: ie([Object, Array, String]),
    default: () => qm({})
  },
  autofocus: Boolean,
  rows: {
    type: Number,
    default: 2
  },
  ...Cr(["ariaLabel"])
});
var Ny = {
  [Pe]: (e8) => Qe(e8),
  input: (e8) => Qe(e8),
  change: (e8) => Qe(e8),
  focus: (e8) => e8 instanceof FocusEvent,
  blur: (e8) => e8 instanceof FocusEvent,
  clear: () => true,
  mouseleave: (e8) => e8 instanceof MouseEvent,
  mouseenter: (e8) => e8 instanceof MouseEvent,
  keydown: (e8) => e8 instanceof Event,
  compositionstart: (e8) => e8 instanceof CompositionEvent,
  compositionupdate: (e8) => e8 instanceof CompositionEvent,
  compositionend: (e8) => e8 instanceof CompositionEvent
};
var ky = defineComponent({
  name: "ElInput",
  inheritAttrs: false
});
var Ly = defineComponent({
  ...ky,
  props: Ry,
  emits: Ny,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, o = useAttrs(), a = useSlots(), i = computed(() => {
      const F = {};
      return n.containerRole === "combobox" && (F["aria-haspopup"] = o["aria-haspopup"], F["aria-owns"] = o["aria-owns"], F["aria-expanded"] = o["aria-expanded"]), F;
    }), s = computed(() => [
      n.type === "textarea" ? g.b() : m.b(),
      m.m(h2.value),
      m.is("disabled", v.value),
      m.is("exceed", j.value),
      {
        [m.b("group")]: a.prepend || a.append,
        [m.m("prefix")]: a.prefix || n.prefixIcon,
        [m.m("suffix")]: a.suffix || n.suffixIcon || n.clearable || n.showPassword,
        [m.bm("suffix", "password-clear")]: K.value && P.value,
        [m.b("hidden")]: n.type === "hidden"
      },
      o.class
    ]), u = computed(() => [
      m.e("wrapper"),
      m.is("focus", $.value)
    ]), l = Gm({
      excludeKeys: computed(() => Object.keys(i.value))
    }), { form: f, formItem: c } = In(), { inputId: d } = qa(n, {
      formItemContext: c
    }), h2 = nn(), v = So(), m = be("input"), g = be("textarea"), y = shallowRef(), b = shallowRef(), O = ref(false), I = ref(false), S = ref(), x = shallowRef(n.inputStyle), T = computed(() => y.value || b.value), { wrapperRef: V, isFocused: $, handleFocus: H, handleBlur: J } = mu(T, {
      beforeFocus() {
        return v.value;
      },
      afterBlur() {
        var F;
        n.validateEvent && ((F = c == null ? void 0 : c.validate) == null || F.call(c, "blur").catch((de) => Ce(de)));
      }
    }), R = computed(() => {
      var F;
      return (F = f == null ? void 0 : f.statusIcon) != null ? F : false;
    }), z = computed(() => (c == null ? void 0 : c.validateState) || ""), X = computed(() => z.value && ql[z.value]), _ = computed(() => I.value ? jm : Nm), A = computed(() => [
      o.style
    ]), k = computed(() => [
      n.inputStyle,
      x.value,
      { resize: n.resize }
    ]), Q = computed(() => zt(n.modelValue) ? "" : String(n.modelValue)), K = computed(() => n.clearable && !v.value && !n.readonly && !!Q.value && ($.value || O.value)), P = computed(() => n.showPassword && !v.value && !n.readonly && !!Q.value && (!!Q.value || $.value)), U = computed(() => n.showWordLimit && !!n.maxlength && (n.type === "text" || n.type === "textarea") && !v.value && !n.readonly && !n.showPassword), M = computed(() => Q.value.length), j = computed(() => !!U.value && M.value > Number(n.maxlength)), Y = computed(() => !!a.suffix || !!n.suffixIcon || K.value || n.showPassword || U.value || !!z.value && R.value), [oe, ae] = yy(y);
    Mt(b, (F) => {
      if (Ae(), !U.value || n.resize !== "both")
        return;
      const de = F[0], { width: tt } = de.contentRect;
      S.value = {
        right: `calc(100% - ${tt + 15 + 6}px)`
      };
    });
    const W = () => {
      const { type: F, autosize: de } = n;
      if (!(!Fe || F !== "textarea" || !b.value))
        if (de) {
          const tt = Ge(de) ? de.minRows : void 0, qt = Ge(de) ? de.maxRows : void 0, Kt = ws(b.value, tt, qt);
          x.value = {
            overflowY: "hidden",
            ...Kt
          }, nextTick(() => {
            b.value.offsetHeight, x.value = Kt;
          });
        } else
          x.value = {
            minHeight: ws(b.value).minHeight
          };
    }, Ae = /* @__PURE__ */ ((F) => {
      let de = false;
      return () => {
        var tt;
        if (de || !n.autosize)
          return;
        ((tt = b.value) == null ? void 0 : tt.offsetParent) === null || (F(), de = true);
      };
    })(W), _e = () => {
      const F = T.value, de = n.formatter ? n.formatter(Q.value) : Q.value;
      !F || F.value === de || (F.value = de);
    }, ue = async (F) => {
      oe();
      let { value: de } = F.target;
      if (n.formatter && (de = n.parser ? n.parser(de) : de), !Te.value) {
        if (de === Q.value) {
          _e();
          return;
        }
        r(Pe, de), r("input", de), await nextTick(), _e(), ae();
      }
    }, he = (F) => {
      r("change", F.target.value);
    }, {
      isComposing: Te,
      handleCompositionStart: Ue,
      handleCompositionUpdate: Ke,
      handleCompositionEnd: Ze
    } = hu({ emit: r, afterComposition: ue }), dr = () => {
      I.value = !I.value, Pt();
    }, Pt = async () => {
      var F;
      await nextTick(), (F = T.value) == null || F.focus();
    }, Tr = () => {
      var F;
      return (F = T.value) == null ? void 0 : F.blur();
    }, ut = (F) => {
      O.value = false, r("mouseleave", F);
    }, Ht = (F) => {
      O.value = true, r("mouseenter", F);
    }, Wt = (F) => {
      r("keydown", F);
    }, Pr = () => {
      var F;
      (F = T.value) == null || F.select();
    }, gt = () => {
      r(Pe, ""), r("change", ""), r("clear"), r("input", "");
    };
    return watch(() => n.modelValue, () => {
      var F;
      nextTick(() => W()), n.validateEvent && ((F = c == null ? void 0 : c.validate) == null || F.call(c, "change").catch((de) => Ce(de)));
    }), watch(Q, () => _e()), watch(() => n.type, async () => {
      await nextTick(), _e(), W();
    }), onMounted(() => {
      !n.formatter && n.parser && Ce("ElInput", "If you set the parser, you also need to set the formatter."), _e(), nextTick(W);
    }), t({
      input: y,
      textarea: b,
      ref: T,
      textareaStyle: k,
      autosize: toRef(n, "autosize"),
      isComposing: Te,
      focus: Pt,
      blur: Tr,
      select: Pr,
      clear: gt,
      resizeTextarea: W
    }), (F, de) => (openBlock(), createElementBlock("div", mergeProps(unref(i), {
      class: [
        unref(s),
        {
          [unref(m).bm("group", "append")]: F.$slots.append,
          [unref(m).bm("group", "prepend")]: F.$slots.prepend
        }
      ],
      style: unref(A),
      role: F.containerRole,
      onMouseenter: Ht,
      onMouseleave: ut
    }), [
      createCommentVNode(" input "),
      F.type !== "textarea" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
        createCommentVNode(" prepend slot "),
        F.$slots.prepend ? (openBlock(), createElementBlock("div", {
          key: 0,
          class: normalizeClass(unref(m).be("group", "prepend"))
        }, [
          renderSlot(F.$slots, "prepend")
        ], 2)) : createCommentVNode("v-if", true),
        createBaseVNode("div", {
          ref_key: "wrapperRef",
          ref: V,
          class: normalizeClass(unref(u))
        }, [
          createCommentVNode(" prefix slot "),
          F.$slots.prefix || F.prefixIcon ? (openBlock(), createElementBlock("span", {
            key: 0,
            class: normalizeClass(unref(m).e("prefix"))
          }, [
            createBaseVNode("span", {
              class: normalizeClass(unref(m).e("prefix-inner"))
            }, [
              renderSlot(F.$slots, "prefix"),
              F.prefixIcon ? (openBlock(), createBlock(unref(rt), {
                key: 0,
                class: normalizeClass(unref(m).e("icon"))
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(F.prefixIcon)))
                ]),
                _: 1
              }, 8, ["class"])) : createCommentVNode("v-if", true)
            ], 2)
          ], 2)) : createCommentVNode("v-if", true),
          createBaseVNode("input", mergeProps({
            id: unref(d),
            ref_key: "input",
            ref: y,
            class: unref(m).e("inner")
          }, unref(l), {
            minlength: F.minlength,
            maxlength: F.maxlength,
            type: F.showPassword ? I.value ? "text" : "password" : F.type,
            disabled: unref(v),
            readonly: F.readonly,
            autocomplete: F.autocomplete,
            tabindex: F.tabindex,
            "aria-label": F.ariaLabel,
            placeholder: F.placeholder,
            style: F.inputStyle,
            form: F.form,
            autofocus: F.autofocus,
            onCompositionstart: unref(Ue),
            onCompositionupdate: unref(Ke),
            onCompositionend: unref(Ze),
            onInput: ue,
            onChange: he,
            onKeydown: Wt
          }), null, 16, ["id", "minlength", "maxlength", "type", "disabled", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form", "autofocus", "onCompositionstart", "onCompositionupdate", "onCompositionend"]),
          createCommentVNode(" suffix slot "),
          unref(Y) ? (openBlock(), createElementBlock("span", {
            key: 1,
            class: normalizeClass(unref(m).e("suffix"))
          }, [
            createBaseVNode("span", {
              class: normalizeClass(unref(m).e("suffix-inner"))
            }, [
              !unref(K) || !unref(P) || !unref(U) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
                renderSlot(F.$slots, "suffix"),
                F.suffixIcon ? (openBlock(), createBlock(unref(rt), {
                  key: 0,
                  class: normalizeClass(unref(m).e("icon"))
                }, {
                  default: withCtx(() => [
                    (openBlock(), createBlock(resolveDynamicComponent(F.suffixIcon)))
                  ]),
                  _: 1
                }, 8, ["class"])) : createCommentVNode("v-if", true)
              ], 64)) : createCommentVNode("v-if", true),
              unref(K) ? (openBlock(), createBlock(unref(rt), {
                key: 1,
                class: normalizeClass([unref(m).e("icon"), unref(m).e("clear")]),
                onMousedown: withModifiers(unref(yn), ["prevent"]),
                onClick: gt
              }, {
                default: withCtx(() => [
                  createVNode(unref(Ma))
                ]),
                _: 1
              }, 8, ["class", "onMousedown"])) : createCommentVNode("v-if", true),
              unref(P) ? (openBlock(), createBlock(unref(rt), {
                key: 2,
                class: normalizeClass([unref(m).e("icon"), unref(m).e("password")]),
                onClick: dr
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(unref(_))))
                ]),
                _: 1
              }, 8, ["class"])) : createCommentVNode("v-if", true),
              unref(U) ? (openBlock(), createElementBlock("span", {
                key: 3,
                class: normalizeClass(unref(m).e("count"))
              }, [
                createBaseVNode("span", {
                  class: normalizeClass(unref(m).e("count-inner"))
                }, toDisplayString(unref(M)) + " / " + toDisplayString(F.maxlength), 3)
              ], 2)) : createCommentVNode("v-if", true),
              unref(z) && unref(X) && unref(R) ? (openBlock(), createBlock(unref(rt), {
                key: 4,
                class: normalizeClass([
                  unref(m).e("icon"),
                  unref(m).e("validateIcon"),
                  unref(m).is("loading", unref(z) === "validating")
                ])
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(unref(X))))
                ]),
                _: 1
              }, 8, ["class"])) : createCommentVNode("v-if", true)
            ], 2)
          ], 2)) : createCommentVNode("v-if", true)
        ], 2),
        createCommentVNode(" append slot "),
        F.$slots.append ? (openBlock(), createElementBlock("div", {
          key: 1,
          class: normalizeClass(unref(m).be("group", "append"))
        }, [
          renderSlot(F.$slots, "append")
        ], 2)) : createCommentVNode("v-if", true)
      ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
        createCommentVNode(" textarea "),
        createBaseVNode("textarea", mergeProps({
          id: unref(d),
          ref_key: "textarea",
          ref: b,
          class: [unref(g).e("inner"), unref(m).is("focus", unref($))]
        }, unref(l), {
          minlength: F.minlength,
          maxlength: F.maxlength,
          tabindex: F.tabindex,
          disabled: unref(v),
          readonly: F.readonly,
          autocomplete: F.autocomplete,
          style: unref(k),
          "aria-label": F.ariaLabel,
          placeholder: F.placeholder,
          form: F.form,
          autofocus: F.autofocus,
          rows: F.rows,
          onCompositionstart: unref(Ue),
          onCompositionupdate: unref(Ke),
          onCompositionend: unref(Ze),
          onInput: ue,
          onFocus: unref(H),
          onBlur: unref(J),
          onChange: he,
          onKeydown: Wt
        }), null, 16, ["id", "minlength", "maxlength", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form", "autofocus", "rows", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onFocus", "onBlur"]),
        unref(U) ? (openBlock(), createElementBlock("span", {
          key: 0,
          style: normalizeStyle(S.value),
          class: normalizeClass(unref(m).e("count"))
        }, toDisplayString(unref(M)) + " / " + toDisplayString(F.maxlength), 7)) : createCommentVNode("v-if", true)
      ], 64))
    ], 16, ["role"]));
  }
});
var zy = Se(Ly, [["__file", "input.vue"]]);
var By = lt(zy);
var Fr = 4;
var Dy = {
  vertical: {
    offset: "offsetHeight",
    scroll: "scrollTop",
    scrollSize: "scrollHeight",
    size: "height",
    key: "vertical",
    axis: "Y",
    client: "clientY",
    direction: "top"
  },
  horizontal: {
    offset: "offsetWidth",
    scroll: "scrollLeft",
    scrollSize: "scrollWidth",
    size: "width",
    key: "horizontal",
    axis: "X",
    client: "clientX",
    direction: "left"
  }
};
var Uy = ({
  move: e8,
  size: t,
  bar: r
}) => ({
  [r.size]: t,
  transform: `translate${r.axis}(${e8}%)`
});
var Ka = Symbol("scrollbarContextKey");
var jy = we({
  vertical: Boolean,
  size: String,
  move: Number,
  ratio: {
    type: Number,
    required: true
  },
  always: Boolean
});
var Hy = "Thumb";
var Wy = defineComponent({
  __name: "thumb",
  props: jy,
  setup(e8) {
    const t = e8, r = inject(Ka), n = be("scrollbar");
    r || Fa(Hy, "can not inject scrollbar context");
    const o = ref(), a = ref(), i = ref({}), s = ref(false);
    let u = false, l = false, f = Fe ? document.onselectstart : null;
    const c = computed(() => Dy[t.vertical ? "vertical" : "horizontal"]), d = computed(() => Uy({
      size: t.size,
      move: t.move,
      bar: c.value
    })), h2 = computed(() => o.value[c.value.offset] ** 2 / r.wrapElement[c.value.scrollSize] / t.ratio / a.value[c.value.offset]), v = (x) => {
      var T;
      if (x.stopPropagation(), x.ctrlKey || [1, 2].includes(x.button))
        return;
      (T = window.getSelection()) == null || T.removeAllRanges(), g(x);
      const V = x.currentTarget;
      V && (i.value[c.value.axis] = V[c.value.offset] - (x[c.value.client] - V.getBoundingClientRect()[c.value.direction]));
    }, m = (x) => {
      if (!a.value || !o.value || !r.wrapElement)
        return;
      const T = Math.abs(x.target.getBoundingClientRect()[c.value.direction] - x[c.value.client]), V = a.value[c.value.offset] / 2, $ = (T - V) * 100 * h2.value / o.value[c.value.offset];
      r.wrapElement[c.value.scroll] = $ * r.wrapElement[c.value.scrollSize] / 100;
    }, g = (x) => {
      x.stopImmediatePropagation(), u = true, document.addEventListener("mousemove", y), document.addEventListener("mouseup", b), f = document.onselectstart, document.onselectstart = () => false;
    }, y = (x) => {
      if (!o.value || !a.value || u === false)
        return;
      const T = i.value[c.value.axis];
      if (!T)
        return;
      const V = (o.value.getBoundingClientRect()[c.value.direction] - x[c.value.client]) * -1, $ = a.value[c.value.offset] - T, H = (V - $) * 100 * h2.value / o.value[c.value.offset];
      r.wrapElement[c.value.scroll] = H * r.wrapElement[c.value.scrollSize] / 100;
    }, b = () => {
      u = false, i.value[c.value.axis] = 0, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", b), S(), l && (s.value = false);
    }, O = () => {
      l = false, s.value = !!t.size;
    }, I = () => {
      l = true, s.value = u;
    };
    onBeforeUnmount(() => {
      S(), document.removeEventListener("mouseup", b);
    });
    const S = () => {
      document.onselectstart !== f && (document.onselectstart = f);
    };
    return je(toRef(r, "scrollbarElement"), "mousemove", O), je(toRef(r, "scrollbarElement"), "mouseleave", I), (x, T) => (openBlock(), createBlock(Transition, {
      name: unref(n).b("fade"),
      persisted: ""
    }, {
      default: withCtx(() => [
        withDirectives(createBaseVNode("div", {
          ref_key: "instance",
          ref: o,
          class: normalizeClass([unref(n).e("bar"), unref(n).is(unref(c).key)]),
          onMousedown: m
        }, [
          createBaseVNode("div", {
            ref_key: "thumb",
            ref: a,
            class: normalizeClass(unref(n).e("thumb")),
            style: normalizeStyle(unref(d)),
            onMousedown: v
          }, null, 38)
        ], 34), [
          [vShow, x.always || s.value]
        ])
      ]),
      _: 1
    }, 8, ["name"]));
  }
});
var Ss = Se(Wy, [["__file", "thumb.vue"]]);
var qy = we({
  always: {
    type: Boolean,
    default: true
  },
  minSize: {
    type: Number,
    required: true
  }
});
var Ky = defineComponent({
  __name: "bar",
  props: qy,
  setup(e8, { expose: t }) {
    const r = e8, n = inject(Ka), o = ref(0), a = ref(0), i = ref(""), s = ref(""), u = ref(1), l = ref(1);
    return t({
      handleScroll: (d) => {
        if (d) {
          const h2 = d.offsetHeight - Fr, v = d.offsetWidth - Fr;
          a.value = d.scrollTop * 100 / h2 * u.value, o.value = d.scrollLeft * 100 / v * l.value;
        }
      },
      update: () => {
        const d = n == null ? void 0 : n.wrapElement;
        if (!d)
          return;
        const h2 = d.offsetHeight - Fr, v = d.offsetWidth - Fr, m = h2 ** 2 / d.scrollHeight, g = v ** 2 / d.scrollWidth, y = Math.max(m, r.minSize), b = Math.max(g, r.minSize);
        u.value = m / (h2 - m) / (y / (h2 - y)), l.value = g / (v - g) / (b / (v - b)), s.value = y + Fr < h2 ? `${y}px` : "", i.value = b + Fr < v ? `${b}px` : "";
      }
    }), (d, h2) => (openBlock(), createElementBlock(Fragment, null, [
      createVNode(Ss, {
        move: o.value,
        ratio: l.value,
        size: i.value,
        always: d.always
      }, null, 8, ["move", "ratio", "size", "always"]),
      createVNode(Ss, {
        move: a.value,
        ratio: u.value,
        size: s.value,
        vertical: "",
        always: d.always
      }, null, 8, ["move", "ratio", "size", "always"])
    ], 64));
  }
});
var Zy = Se(Ky, [["__file", "bar.vue"]]);
var Gy = we({
  height: {
    type: [String, Number],
    default: ""
  },
  maxHeight: {
    type: [String, Number],
    default: ""
  },
  native: {
    type: Boolean,
    default: false
  },
  wrapStyle: {
    type: ie([String, Object, Array]),
    default: ""
  },
  wrapClass: {
    type: [String, Array],
    default: ""
  },
  viewClass: {
    type: [String, Array],
    default: ""
  },
  viewStyle: {
    type: [String, Array, Object],
    default: ""
  },
  noresize: Boolean,
  tag: {
    type: String,
    default: "div"
  },
  always: Boolean,
  minSize: {
    type: Number,
    default: 20
  },
  tabindex: {
    type: [String, Number],
    default: void 0
  },
  id: String,
  role: String,
  ...Cr(["ariaLabel", "ariaOrientation"])
});
var Jy = {
  scroll: ({
    scrollTop: e8,
    scrollLeft: t
  }) => [e8, t].every(ge)
};
var ia = "ElScrollbar";
var Yy = defineComponent({
  name: ia
});
var Xy = defineComponent({
  ...Yy,
  props: Gy,
  emits: Jy,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, o = be("scrollbar");
    let a, i, s = 0, u = 0;
    const l = ref(), f = ref(), c = ref(), d = ref(), h2 = computed(() => {
      const S = {};
      return n.height && (S.height = na(n.height)), n.maxHeight && (S.maxHeight = na(n.maxHeight)), [n.wrapStyle, S];
    }), v = computed(() => [
      n.wrapClass,
      o.e("wrap"),
      { [o.em("wrap", "hidden-default")]: !n.native }
    ]), m = computed(() => [o.e("view"), n.viewClass]), g = () => {
      var S;
      f.value && ((S = d.value) == null || S.handleScroll(f.value), s = f.value.scrollTop, u = f.value.scrollLeft, r("scroll", {
        scrollTop: f.value.scrollTop,
        scrollLeft: f.value.scrollLeft
      }));
    };
    function y(S, x) {
      Ge(S) ? f.value.scrollTo(S) : ge(S) && ge(x) && f.value.scrollTo(S, x);
    }
    const b = (S) => {
      if (!ge(S)) {
        Ce(ia, "value must be a number");
        return;
      }
      f.value.scrollTop = S;
    }, O = (S) => {
      if (!ge(S)) {
        Ce(ia, "value must be a number");
        return;
      }
      f.value.scrollLeft = S;
    }, I = () => {
      var S;
      (S = d.value) == null || S.update();
    };
    return watch(() => n.noresize, (S) => {
      S ? (a == null || a(), i == null || i()) : ({ stop: a } = Mt(c, I), i = je("resize", I));
    }, { immediate: true }), watch(() => [n.maxHeight, n.height], () => {
      n.native || nextTick(() => {
        var S;
        I(), f.value && ((S = d.value) == null || S.handleScroll(f.value));
      });
    }), provide(Ka, reactive({
      scrollbarElement: l,
      wrapElement: f
    })), onActivated(() => {
      f.value && (f.value.scrollTop = s, f.value.scrollLeft = u);
    }), onMounted(() => {
      n.native || nextTick(() => {
        I();
      });
    }), onUpdated(() => I()), t({
      wrapRef: f,
      update: I,
      scrollTo: y,
      setScrollTop: b,
      setScrollLeft: O,
      handleScroll: g
    }), (S, x) => (openBlock(), createElementBlock("div", {
      ref_key: "scrollbarRef",
      ref: l,
      class: normalizeClass(unref(o).b())
    }, [
      createBaseVNode("div", {
        ref_key: "wrapRef",
        ref: f,
        class: normalizeClass(unref(v)),
        style: normalizeStyle(unref(h2)),
        tabindex: S.tabindex,
        onScroll: g
      }, [
        (openBlock(), createBlock(resolveDynamicComponent(S.tag), {
          id: S.id,
          ref_key: "resizeRef",
          ref: c,
          class: normalizeClass(unref(m)),
          style: normalizeStyle(S.viewStyle),
          role: S.role,
          "aria-label": S.ariaLabel,
          "aria-orientation": S.ariaOrientation
        }, {
          default: withCtx(() => [
            renderSlot(S.$slots, "default")
          ]),
          _: 3
        }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"]))
      ], 46, ["tabindex"]),
      S.native ? createCommentVNode("v-if", true) : (openBlock(), createBlock(Zy, {
        key: 0,
        ref_key: "barRef",
        ref: d,
        always: S.always,
        "min-size": S.minSize
      }, null, 8, ["always", "min-size"]))
    ], 2));
  }
});
var Qy = Se(Xy, [["__file", "scrollbar.vue"]]);
var eg = lt(Qy);
var Za = Symbol("popper");
var bu = Symbol("popperContent");
var tg = [
  "dialog",
  "grid",
  "group",
  "listbox",
  "menu",
  "navigation",
  "tooltip",
  "tree"
];
var wu = we({
  role: {
    type: String,
    values: tg,
    default: "tooltip"
  }
});
var rg = defineComponent({
  name: "ElPopper",
  inheritAttrs: false
});
var ng = defineComponent({
  ...rg,
  props: wu,
  setup(e8, { expose: t }) {
    const r = e8, n = ref(), o = ref(), a = ref(), i = ref(), s = computed(() => r.role), u = {
      triggerRef: n,
      popperInstanceRef: o,
      contentRef: a,
      referenceRef: i,
      role: s
    };
    return t(u), provide(Za, u), (l, f) => renderSlot(l.$slots, "default");
  }
});
var og = Se(ng, [["__file", "popper.vue"]]);
var Su = we({
  arrowOffset: {
    type: Number,
    default: 5
  }
});
var ag = defineComponent({
  name: "ElPopperArrow",
  inheritAttrs: false
});
var ig = defineComponent({
  ...ag,
  props: Su,
  setup(e8, { expose: t }) {
    const r = e8, n = be("popper"), { arrowOffset: o, arrowRef: a, arrowStyle: i } = inject(bu, void 0);
    return watch(() => r.arrowOffset, (s) => {
      o.value = s;
    }), onBeforeUnmount(() => {
      a.value = void 0;
    }), t({
      arrowRef: a
    }), (s, u) => (openBlock(), createElementBlock("span", {
      ref_key: "arrowRef",
      ref: a,
      class: normalizeClass(unref(n).e("arrow")),
      style: normalizeStyle(unref(i)),
      "data-popper-arrow": ""
    }, null, 6));
  }
});
var sg = Se(ig, [["__file", "arrow.vue"]]);
var $o = "ElOnlyChild";
var lg = defineComponent({
  name: $o,
  setup(e8, {
    slots: t,
    attrs: r
  }) {
    var n;
    const o = inject(fu), a = hy((n = o == null ? void 0 : o.setForwardRef) != null ? n : yn);
    return () => {
      var i;
      const s = (i = t.default) == null ? void 0 : i.call(t, r);
      if (!s)
        return null;
      if (s.length > 1)
        return Ce($o, "requires exact only one valid child."), null;
      const u = Eu(s);
      return u ? withDirectives(cloneVNode(u, r), [[a]]) : (Ce($o, "no valid child node found"), null);
    };
  }
});
function Eu(e8) {
  if (!e8)
    return null;
  const t = e8;
  for (const r of t) {
    if (Ge(r))
      switch (r.type) {
        case Comment:
          continue;
        case Text:
        case "svg":
          return Es(r);
        case Fragment:
          return Eu(r.children);
        default:
          return r;
      }
    return Es(r);
  }
  return null;
}
function Es(e8) {
  const t = be("only-child");
  return createVNode("span", {
    class: t.e("content")
  }, [e8]);
}
var Ou = we({
  virtualRef: {
    type: ie(Object)
  },
  virtualTriggering: Boolean,
  onMouseenter: {
    type: ie(Function)
  },
  onMouseleave: {
    type: ie(Function)
  },
  onClick: {
    type: ie(Function)
  },
  onKeydown: {
    type: ie(Function)
  },
  onFocus: {
    type: ie(Function)
  },
  onBlur: {
    type: ie(Function)
  },
  onContextmenu: {
    type: ie(Function)
  },
  id: String,
  open: Boolean
});
var ug = defineComponent({
  name: "ElPopperTrigger",
  inheritAttrs: false
});
var fg = defineComponent({
  ...ug,
  props: Ou,
  setup(e8, { expose: t }) {
    const r = e8, { role: n, triggerRef: o } = inject(Za, void 0);
    my(o);
    const a = computed(() => s.value ? r.id : void 0), i = computed(() => {
      if (n && n.value === "tooltip")
        return r.open && r.id ? r.id : void 0;
    }), s = computed(() => {
      if (n && n.value !== "tooltip")
        return n.value;
    }), u = computed(() => s.value ? `${r.open}` : void 0);
    let l;
    const f = [
      "onMouseenter",
      "onMouseleave",
      "onClick",
      "onKeydown",
      "onFocus",
      "onBlur",
      "onContextmenu"
    ];
    return onMounted(() => {
      watch(() => r.virtualRef, (c) => {
        c && (o.value = Nt(c));
      }, {
        immediate: true
      }), watch(o, (c, d) => {
        l == null || l(), l = void 0, yr(c) && (f.forEach((h2) => {
          var v;
          const m = r[h2];
          m && (c.addEventListener(h2.slice(2).toLowerCase(), m), (v = d == null ? void 0 : d.removeEventListener) == null || v.call(d, h2.slice(2).toLowerCase(), m));
        }), l = watch([a, i, s, u], (h2) => {
          [
            "aria-controls",
            "aria-describedby",
            "aria-haspopup",
            "aria-expanded"
          ].forEach((v, m) => {
            zt(h2[m]) ? c.removeAttribute(v) : c.setAttribute(v, h2[m]);
          });
        }, { immediate: true })), yr(d) && [
          "aria-controls",
          "aria-describedby",
          "aria-haspopup",
          "aria-expanded"
        ].forEach((h2) => d.removeAttribute(h2));
      }, {
        immediate: true
      });
    }), onBeforeUnmount(() => {
      if (l == null || l(), l = void 0, o.value && yr(o.value)) {
        const c = o.value;
        f.forEach((d) => {
          const h2 = r[d];
          h2 && c.removeEventListener(d.slice(2).toLowerCase(), h2);
        }), o.value = void 0;
      }
    }), t({
      triggerRef: o
    }), (c, d) => c.virtualTriggering ? createCommentVNode("v-if", true) : (openBlock(), createBlock(unref(lg), mergeProps({ key: 0 }, c.$attrs, {
      "aria-controls": unref(a),
      "aria-describedby": unref(i),
      "aria-expanded": unref(u),
      "aria-haspopup": unref(s)
    }), {
      default: withCtx(() => [
        renderSlot(c.$slots, "default")
      ]),
      _: 3
    }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"]));
  }
});
var cg = Se(fg, [["__file", "trigger.vue"]]);
var Fo = "focus-trap.focus-after-trapped";
var Mo = "focus-trap.focus-after-released";
var dg = "focus-trap.focusout-prevented";
var Os = {
  cancelable: true,
  bubbles: false
};
var pg = {
  cancelable: true,
  bubbles: false
};
var As = "focusAfterTrapped";
var _s = "focusAfterReleased";
var vg = Symbol("elFocusTrap");
var Ga = ref();
var Eo = ref(0);
var Ja = ref(0);
var Rn = 0;
var Au = (e8) => {
  const t = [], r = document.createTreeWalker(e8, NodeFilter.SHOW_ELEMENT, {
    acceptNode: (n) => {
      const o = n.tagName === "INPUT" && n.type === "hidden";
      return n.disabled || n.hidden || o ? NodeFilter.FILTER_SKIP : n.tabIndex >= 0 || n === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
    }
  });
  for (; r.nextNode(); )
    t.push(r.currentNode);
  return t;
};
var Is = (e8, t) => {
  for (const r of e8)
    if (!mg(r, t))
      return r;
};
var mg = (e8, t) => {
  if (false)
    return false;
  if (getComputedStyle(e8).visibility === "hidden")
    return true;
  for (; e8; ) {
    if (t && e8 === t)
      return false;
    if (getComputedStyle(e8).display === "none")
      return true;
    e8 = e8.parentElement;
  }
  return false;
};
var hg = (e8) => {
  const t = Au(e8), r = Is(t, e8), n = Is(t.reverse(), e8);
  return [r, n];
};
var yg = (e8) => e8 instanceof HTMLInputElement && "select" in e8;
var Yt = (e8, t) => {
  if (e8 && e8.focus) {
    const r = document.activeElement;
    e8.focus({ preventScroll: true }), Ja.value = window.performance.now(), e8 !== r && yg(e8) && t && e8.select();
  }
};
function Cs(e8, t) {
  const r = [...e8], n = e8.indexOf(t);
  return n !== -1 && r.splice(n, 1), r;
}
var gg = () => {
  let e8 = [];
  return {
    push: (n) => {
      const o = e8[0];
      o && n !== o && o.pause(), e8 = Cs(e8, n), e8.unshift(n);
    },
    remove: (n) => {
      var o, a;
      e8 = Cs(e8, n), (a = (o = e8[0]) == null ? void 0 : o.resume) == null || a.call(o);
    }
  };
};
var bg = (e8, t = false) => {
  const r = document.activeElement;
  for (const n of e8)
    if (Yt(n, t), document.activeElement !== r)
      return;
};
var xs = gg();
var wg = () => Eo.value > Ja.value;
var Nn = () => {
  Ga.value = "pointer", Eo.value = window.performance.now();
};
var Ts = () => {
  Ga.value = "keyboard", Eo.value = window.performance.now();
};
var Sg = () => (onMounted(() => {
  Rn === 0 && (document.addEventListener("mousedown", Nn), document.addEventListener("touchstart", Nn), document.addEventListener("keydown", Ts)), Rn++;
}), onBeforeUnmount(() => {
  Rn--, Rn <= 0 && (document.removeEventListener("mousedown", Nn), document.removeEventListener("touchstart", Nn), document.removeEventListener("keydown", Ts));
}), {
  focusReason: Ga,
  lastUserFocusTimestamp: Eo,
  lastAutomatedFocusTimestamp: Ja
});
var kn = (e8) => new CustomEvent(dg, {
  ...pg,
  detail: e8
});
var Eg = defineComponent({
  name: "ElFocusTrap",
  inheritAttrs: false,
  props: {
    loop: Boolean,
    trapped: Boolean,
    focusTrapEl: Object,
    focusStartEl: {
      type: [Object, String],
      default: "first"
    }
  },
  emits: [
    As,
    _s,
    "focusin",
    "focusout",
    "focusout-prevented",
    "release-requested"
  ],
  setup(e8, { emit: t }) {
    const r = ref();
    let n, o;
    const { focusReason: a } = Sg();
    fy((v) => {
      e8.trapped && !i.paused && t("release-requested", v);
    });
    const i = {
      paused: false,
      pause() {
        this.paused = true;
      },
      resume() {
        this.paused = false;
      }
    }, s = (v) => {
      if (!e8.loop && !e8.trapped || i.paused)
        return;
      const { key: m, altKey: g, ctrlKey: y, metaKey: b, currentTarget: O, shiftKey: I } = v, { loop: S } = e8, x = m === Hr.tab && !g && !y && !b, T = document.activeElement;
      if (x && T) {
        const V = O, [$, H] = hg(V);
        if ($ && H) {
          if (!I && T === H) {
            const R = kn({
              focusReason: a.value
            });
            t("focusout-prevented", R), R.defaultPrevented || (v.preventDefault(), S && Yt($, true));
          } else if (I && [$, V].includes(T)) {
            const R = kn({
              focusReason: a.value
            });
            t("focusout-prevented", R), R.defaultPrevented || (v.preventDefault(), S && Yt(H, true));
          }
        } else if (T === V) {
          const R = kn({
            focusReason: a.value
          });
          t("focusout-prevented", R), R.defaultPrevented || v.preventDefault();
        }
      }
    };
    provide(vg, {
      focusTrapRef: r,
      onKeydown: s
    }), watch(() => e8.focusTrapEl, (v) => {
      v && (r.value = v);
    }, { immediate: true }), watch([r], ([v], [m]) => {
      v && (v.addEventListener("keydown", s), v.addEventListener("focusin", f), v.addEventListener("focusout", c)), m && (m.removeEventListener("keydown", s), m.removeEventListener("focusin", f), m.removeEventListener("focusout", c));
    });
    const u = (v) => {
      t(As, v);
    }, l = (v) => t(_s, v), f = (v) => {
      const m = unref(r);
      if (!m)
        return;
      const g = v.target, y = v.relatedTarget, b = g && m.contains(g);
      e8.trapped || y && m.contains(y) || (n = y), b && t("focusin", v), !i.paused && e8.trapped && (b ? o = g : Yt(o, true));
    }, c = (v) => {
      const m = unref(r);
      if (!(i.paused || !m))
        if (e8.trapped) {
          const g = v.relatedTarget;
          !zt(g) && !m.contains(g) && setTimeout(() => {
            if (!i.paused && e8.trapped) {
              const y = kn({
                focusReason: a.value
              });
              t("focusout-prevented", y), y.defaultPrevented || Yt(o, true);
            }
          }, 0);
        } else {
          const g = v.target;
          g && m.contains(g) || t("focusout", v);
        }
    };
    async function d() {
      await nextTick();
      const v = unref(r);
      if (v) {
        xs.push(i);
        const m = v.contains(document.activeElement) ? n : document.activeElement;
        if (n = m, !v.contains(m)) {
          const y = new Event(Fo, Os);
          v.addEventListener(Fo, u), v.dispatchEvent(y), y.defaultPrevented || nextTick(() => {
            let b = e8.focusStartEl;
            Qe(b) || (Yt(b), document.activeElement !== b && (b = "first")), b === "first" && bg(Au(v), true), (document.activeElement === m || b === "container") && Yt(v);
          });
        }
      }
    }
    function h2() {
      const v = unref(r);
      if (v) {
        v.removeEventListener(Fo, u);
        const m = new CustomEvent(Mo, {
          ...Os,
          detail: {
            focusReason: a.value
          }
        });
        v.addEventListener(Mo, l), v.dispatchEvent(m), !m.defaultPrevented && (a.value == "keyboard" || !wg() || v.contains(document.activeElement)) && Yt(n ?? document.body), v.removeEventListener(Mo, l), xs.remove(i);
      }
    }
    return onMounted(() => {
      e8.trapped && d(), watch(() => e8.trapped, (v) => {
        v ? d() : h2();
      });
    }), onBeforeUnmount(() => {
      e8.trapped && h2(), r.value && (r.value.removeEventListener("keydown", s), r.value.removeEventListener("focusin", f), r.value.removeEventListener("focusout", c), r.value = void 0);
    }), {
      onKeydown: s
    };
  }
});
function Og(e8, t, r, n, o, a) {
  return renderSlot(e8.$slots, "default", { handleKeydown: e8.onKeydown });
}
var Ag = Se(Eg, [["render", Og], ["__file", "focus-trap.vue"]]);
var _g = ["fixed", "absolute"];
var Ig = we({
  boundariesPadding: {
    type: Number,
    default: 0
  },
  fallbackPlacements: {
    type: ie(Array),
    default: void 0
  },
  gpuAcceleration: {
    type: Boolean,
    default: true
  },
  offset: {
    type: Number,
    default: 12
  },
  placement: {
    type: String,
    values: rn,
    default: "bottom"
  },
  popperOptions: {
    type: ie(Object),
    default: () => ({})
  },
  strategy: {
    type: String,
    values: _g,
    default: "absolute"
  }
});
var _u = we({
  ...Ig,
  id: String,
  style: {
    type: ie([String, Array, Object])
  },
  className: {
    type: ie([String, Array, Object])
  },
  effect: {
    type: ie(String),
    default: "dark"
  },
  visible: Boolean,
  enterable: {
    type: Boolean,
    default: true
  },
  pure: Boolean,
  focusOnShow: {
    type: Boolean,
    default: false
  },
  trapping: {
    type: Boolean,
    default: false
  },
  popperClass: {
    type: ie([String, Array, Object])
  },
  popperStyle: {
    type: ie([String, Array, Object])
  },
  referenceEl: {
    type: ie(Object)
  },
  triggerTargetEl: {
    type: ie(Object)
  },
  stopPopperMouseEvent: {
    type: Boolean,
    default: true
  },
  virtualTriggering: Boolean,
  zIndex: Number,
  ...Cr(["ariaLabel"])
});
var Cg = {
  mouseenter: (e8) => e8 instanceof MouseEvent,
  mouseleave: (e8) => e8 instanceof MouseEvent,
  focus: () => true,
  blur: () => true,
  close: () => true
};
var xg = (e8, t = []) => {
  const { placement: r, strategy: n, popperOptions: o } = e8, a = {
    placement: r,
    strategy: n,
    ...o,
    modifiers: [...Pg(e8), ...t]
  };
  return $g(a, o == null ? void 0 : o.modifiers), a;
};
var Tg = (e8) => {
  if (Fe)
    return Nt(e8);
};
function Pg(e8) {
  const { offset: t, gpuAcceleration: r, fallbackPlacements: n } = e8;
  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: n
      }
    },
    {
      name: "computeStyles",
      options: {
        gpuAcceleration: r
      }
    }
  ];
}
function $g(e8, t) {
  t && (e8.modifiers = [...e8.modifiers, ...t ?? []]);
}
var Fg = 0;
var Mg = (e8) => {
  const { popperInstanceRef: t, contentRef: r, triggerRef: n, role: o } = inject(Za, void 0), a = ref(), i = ref(), s = computed(() => ({
    name: "eventListeners",
    enabled: !!e8.visible
  })), u = computed(() => {
    var y;
    const b = unref(a), O = (y = unref(i)) != null ? y : Fg;
    return {
      name: "arrow",
      enabled: !bm(b),
      options: {
        element: b,
        padding: O
      }
    };
  }), l = computed(() => ({
    onFirstUpdate: () => {
      v();
    },
    ...xg(e8, [
      unref(u),
      unref(s)
    ])
  })), f = computed(() => Tg(e8.referenceEl) || unref(n)), { attributes: c, state: d, styles: h2, update: v, forceUpdate: m, instanceRef: g } = sy(f, r, l);
  return watch(g, (y) => t.value = y), onMounted(() => {
    watch(() => {
      var y;
      return (y = unref(f)) == null ? void 0 : y.getBoundingClientRect();
    }, () => {
      v();
    });
  }), {
    attributes: c,
    arrowRef: a,
    contentRef: r,
    instanceRef: g,
    state: d,
    styles: h2,
    role: o,
    forceUpdate: m,
    update: v
  };
};
var Vg = (e8, {
  attributes: t,
  styles: r,
  role: n
}) => {
  const { nextZIndex: o } = pu(), a = be("popper"), i = computed(() => unref(t).popper), s = ref(ge(e8.zIndex) ? e8.zIndex : o()), u = computed(() => [
    a.b(),
    a.is("pure", e8.pure),
    a.is(e8.effect),
    e8.popperClass
  ]), l = computed(() => [
    { zIndex: unref(s) },
    unref(r).popper,
    e8.popperStyle || {}
  ]), f = computed(() => n.value === "dialog" ? "false" : void 0), c = computed(() => unref(r).arrow || {});
  return {
    ariaModal: f,
    arrowStyle: c,
    contentAttrs: i,
    contentClass: u,
    contentStyle: l,
    contentZIndex: s,
    updateZIndex: () => {
      s.value = ge(e8.zIndex) ? e8.zIndex : o();
    }
  };
};
var Rg = (e8, t) => {
  const r = ref(false), n = ref();
  return {
    focusStartRef: n,
    trapped: r,
    onFocusAfterReleased: (l) => {
      var f;
      ((f = l.detail) == null ? void 0 : f.focusReason) !== "pointer" && (n.value = "first", t("blur"));
    },
    onFocusAfterTrapped: () => {
      t("focus");
    },
    onFocusInTrap: (l) => {
      e8.visible && !r.value && (l.target && (n.value = l.target), r.value = true);
    },
    onFocusoutPrevented: (l) => {
      e8.trapping || (l.detail.focusReason === "pointer" && l.preventDefault(), r.value = false);
    },
    onReleaseRequested: () => {
      r.value = false, t("close");
    }
  };
};
var Ng = defineComponent({
  name: "ElPopperContent"
});
var kg = defineComponent({
  ...Ng,
  props: _u,
  emits: Cg,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, {
      focusStartRef: o,
      trapped: a,
      onFocusAfterReleased: i,
      onFocusAfterTrapped: s,
      onFocusInTrap: u,
      onFocusoutPrevented: l,
      onReleaseRequested: f
    } = Rg(n, r), { attributes: c, arrowRef: d, contentRef: h2, styles: v, instanceRef: m, role: g, update: y } = Mg(n), {
      ariaModal: b,
      arrowStyle: O,
      contentAttrs: I,
      contentClass: S,
      contentStyle: x,
      updateZIndex: T
    } = Vg(n, {
      styles: v,
      attributes: c,
      role: g
    }), V = inject(ro, void 0), $ = ref();
    provide(bu, {
      arrowStyle: O,
      arrowRef: d,
      arrowOffset: $
    }), V && provide(ro, {
      ...V,
      addInputId: yn,
      removeInputId: yn
    });
    let H;
    const J = (z = true) => {
      y(), z && T();
    }, R = () => {
      J(false), n.visible && n.focusOnShow ? a.value = true : n.visible === false && (a.value = false);
    };
    return onMounted(() => {
      watch(() => n.triggerTargetEl, (z, X) => {
        H == null || H(), H = void 0;
        const _ = unref(z || h2.value), A = unref(X || h2.value);
        yr(_) && (H = watch([g, () => n.ariaLabel, b, () => n.id], (k) => {
          ["role", "aria-label", "aria-modal", "id"].forEach((Q, K) => {
            zt(k[K]) ? _.removeAttribute(Q) : _.setAttribute(Q, k[K]);
          });
        }, { immediate: true })), A !== _ && yr(A) && ["role", "aria-label", "aria-modal", "id"].forEach((k) => {
          A.removeAttribute(k);
        });
      }, { immediate: true }), watch(() => n.visible, R, { immediate: true });
    }), onBeforeUnmount(() => {
      H == null || H(), H = void 0;
    }), t({
      popperContentRef: h2,
      popperInstanceRef: m,
      updatePopper: J,
      contentStyle: x
    }), (z, X) => (openBlock(), createElementBlock("div", mergeProps({
      ref_key: "contentRef",
      ref: h2
    }, unref(I), {
      style: unref(x),
      class: unref(S),
      tabindex: "-1",
      onMouseenter: (_) => z.$emit("mouseenter", _),
      onMouseleave: (_) => z.$emit("mouseleave", _)
    }), [
      createVNode(unref(Ag), {
        trapped: unref(a),
        "trap-on-focus-in": true,
        "focus-trap-el": unref(h2),
        "focus-start-el": unref(o),
        onFocusAfterTrapped: unref(s),
        onFocusAfterReleased: unref(i),
        onFocusin: unref(u),
        onFocusoutPrevented: unref(l),
        onReleaseRequested: unref(f)
      }, {
        default: withCtx(() => [
          renderSlot(z.$slots, "default")
        ]),
        _: 3
      }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
    ], 16, ["onMouseenter", "onMouseleave"]));
  }
});
var Lg = Se(kg, [["__file", "content.vue"]]);
var zg = lt(og);
var Ya = Symbol("elTooltip");
var Xa = we({
  ...py,
  ..._u,
  appendTo: {
    type: ie([String, Object])
  },
  content: {
    type: String,
    default: ""
  },
  rawContent: Boolean,
  persistent: Boolean,
  visible: {
    type: ie(Boolean),
    default: null
  },
  transition: String,
  teleported: {
    type: Boolean,
    default: true
  },
  disabled: Boolean,
  ...Cr(["ariaLabel"])
});
var Iu = we({
  ...Ou,
  disabled: Boolean,
  trigger: {
    type: ie([String, Array]),
    default: "hover"
  },
  triggerKeys: {
    type: ie(Array),
    default: () => [Hr.enter, Hr.space]
  }
});
var {
  useModelToggleProps: Bg,
  useModelToggleEmits: Dg,
  useModelToggle: Ug
} = oh("visible");
var jg = we({
  ...wu,
  ...Bg,
  ...Xa,
  ...Iu,
  ...Su,
  showArrow: {
    type: Boolean,
    default: true
  }
});
var Hg = [
  ...Dg,
  "before-show",
  "before-hide",
  "show",
  "hide",
  "open",
  "close"
];
var Wg = (e8, t) => Ot(e8) ? e8.includes(t) : e8 === t;
var Mr = (e8, t, r) => (n) => {
  Wg(unref(e8), t) && r(n);
};
var qg = defineComponent({
  name: "ElTooltipTrigger"
});
var Kg = defineComponent({
  ...qg,
  props: Iu,
  setup(e8, { expose: t }) {
    const r = e8, n = be("tooltip"), { controlled: o, id: a, open: i, onOpen: s, onClose: u, onToggle: l } = inject(Ya, void 0), f = ref(null), c = () => {
      if (unref(o) || r.disabled)
        return true;
    }, d = toRef(r, "trigger"), h2 = Ft(c, Mr(d, "hover", s)), v = Ft(c, Mr(d, "hover", u)), m = Ft(c, Mr(d, "click", (I) => {
      I.button === 0 && l(I);
    })), g = Ft(c, Mr(d, "focus", s)), y = Ft(c, Mr(d, "focus", u)), b = Ft(c, Mr(d, "contextmenu", (I) => {
      I.preventDefault(), l(I);
    })), O = Ft(c, (I) => {
      const { code: S } = I;
      r.triggerKeys.includes(S) && (I.preventDefault(), l(I));
    });
    return t({
      triggerRef: f
    }), (I, S) => (openBlock(), createBlock(unref(cg), {
      id: unref(a),
      "virtual-ref": I.virtualRef,
      open: unref(i),
      "virtual-triggering": I.virtualTriggering,
      class: normalizeClass(unref(n).e("trigger")),
      onBlur: unref(y),
      onClick: unref(m),
      onContextmenu: unref(b),
      onFocus: unref(g),
      onMouseenter: unref(h2),
      onMouseleave: unref(v),
      onKeydown: unref(O)
    }, {
      default: withCtx(() => [
        renderSlot(I.$slots, "default")
      ]),
      _: 3
    }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"]));
  }
});
var Zg = Se(Kg, [["__file", "trigger.vue"]]);
var Gg = we({
  to: {
    type: ie([String, Object]),
    required: true
  },
  disabled: Boolean
});
var Jg = defineComponent({
  __name: "teleport",
  props: Gg,
  setup(e8) {
    return (t, r) => t.disabled ? renderSlot(t.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport, {
      key: 1,
      to: t.to
    }, [
      renderSlot(t.$slots, "default")
    ], 8, ["to"]));
  }
});
var Yg = Se(Jg, [["__file", "teleport.vue"]]);
var Xg = lt(Yg);
var Qg = defineComponent({
  name: "ElTooltipContent",
  inheritAttrs: false
});
var e0 = defineComponent({
  ...Qg,
  props: Xa,
  setup(e8, { expose: t }) {
    const r = e8, { selector: n } = uu(), o = be("tooltip"), a = ref(null);
    let i;
    const {
      controlled: s,
      id: u,
      open: l,
      trigger: f,
      onClose: c,
      onOpen: d,
      onShow: h2,
      onHide: v,
      onBeforeShow: m,
      onBeforeHide: g
    } = inject(Ya, void 0), y = computed(() => r.transition || `${o.namespace.value}-fade-in-linear`), b = computed(() => false ? true : r.persistent);
    onBeforeUnmount(() => {
      i == null || i();
    });
    const O = computed(() => unref(b) ? true : unref(l)), I = computed(() => r.disabled ? false : unref(l)), S = computed(() => r.appendTo || n.value), x = computed(() => {
      var A;
      return (A = r.style) != null ? A : {};
    }), T = ref(true), V = () => {
      v(), T.value = true;
    }, $ = () => {
      if (unref(s))
        return true;
    }, H = Ft($, () => {
      r.enterable && unref(f) === "hover" && d();
    }), J = Ft($, () => {
      unref(f) === "hover" && c();
    }), R = () => {
      var A, k;
      (k = (A = a.value) == null ? void 0 : A.updatePopper) == null || k.call(A), m == null || m();
    }, z = () => {
      g == null || g();
    }, X = () => {
      h2(), i = dc(computed(() => {
        var A;
        return (A = a.value) == null ? void 0 : A.popperContentRef;
      }), () => {
        if (unref(s))
          return;
        unref(f) !== "hover" && c();
      });
    }, _ = () => {
      r.virtualTriggering || c();
    };
    return watch(() => unref(l), (A) => {
      A ? T.value = false : i == null || i();
    }, {
      flush: "post"
    }), watch(() => r.content, () => {
      var A, k;
      (k = (A = a.value) == null ? void 0 : A.updatePopper) == null || k.call(A);
    }), t({
      contentRef: a
    }), (A, k) => (openBlock(), createBlock(unref(Xg), {
      disabled: !A.teleported,
      to: unref(S)
    }, {
      default: withCtx(() => [
        createVNode(Transition, {
          name: unref(y),
          onAfterLeave: V,
          onBeforeEnter: R,
          onAfterEnter: X,
          onBeforeLeave: z
        }, {
          default: withCtx(() => [
            unref(O) ? withDirectives((openBlock(), createBlock(unref(Lg), mergeProps({
              key: 0,
              id: unref(u),
              ref_key: "contentRef",
              ref: a
            }, A.$attrs, {
              "aria-label": A.ariaLabel,
              "aria-hidden": T.value,
              "boundaries-padding": A.boundariesPadding,
              "fallback-placements": A.fallbackPlacements,
              "gpu-acceleration": A.gpuAcceleration,
              offset: A.offset,
              placement: A.placement,
              "popper-options": A.popperOptions,
              strategy: A.strategy,
              effect: A.effect,
              enterable: A.enterable,
              pure: A.pure,
              "popper-class": A.popperClass,
              "popper-style": [A.popperStyle, unref(x)],
              "reference-el": A.referenceEl,
              "trigger-target-el": A.triggerTargetEl,
              visible: unref(I),
              "z-index": A.zIndex,
              onMouseenter: unref(H),
              onMouseleave: unref(J),
              onBlur: _,
              onClose: unref(c)
            }), {
              default: withCtx(() => [
                renderSlot(A.$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"])), [
              [vShow, unref(I)]
            ]) : createCommentVNode("v-if", true)
          ]),
          _: 3
        }, 8, ["name"])
      ]),
      _: 3
    }, 8, ["disabled", "to"]));
  }
});
var t0 = Se(e0, [["__file", "content.vue"]]);
var r0 = defineComponent({
  name: "ElTooltip"
});
var n0 = defineComponent({
  ...r0,
  props: jg,
  emits: Hg,
  setup(e8, { expose: t, emit: r }) {
    const n = e8;
    dy();
    const o = wo(), a = ref(), i = ref(), s = () => {
      var y;
      const b = unref(a);
      b && ((y = b.popperInstanceRef) == null || y.update());
    }, u = ref(false), l = ref(), { show: f, hide: c, hasUpdateHandler: d } = Ug({
      indicator: u,
      toggleReason: l
    }), { onOpen: h2, onClose: v } = vy({
      showAfter: toRef(n, "showAfter"),
      hideAfter: toRef(n, "hideAfter"),
      autoClose: toRef(n, "autoClose"),
      open: f,
      close: c
    }), m = computed(() => Bl(n.visible) && !d.value);
    provide(Ya, {
      controlled: m,
      id: o,
      open: readonly(u),
      trigger: toRef(n, "trigger"),
      onOpen: (y) => {
        h2(y);
      },
      onClose: (y) => {
        v(y);
      },
      onToggle: (y) => {
        unref(u) ? v(y) : h2(y);
      },
      onShow: () => {
        r("show", l.value);
      },
      onHide: () => {
        r("hide", l.value);
      },
      onBeforeShow: () => {
        r("before-show", l.value);
      },
      onBeforeHide: () => {
        r("before-hide", l.value);
      },
      updatePopper: s
    }), watch(() => n.disabled, (y) => {
      y && u.value && (u.value = false);
    });
    const g = (y) => {
      var b, O;
      const I = (O = (b = i.value) == null ? void 0 : b.contentRef) == null ? void 0 : O.popperContentRef, S = (y == null ? void 0 : y.relatedTarget) || document.activeElement;
      return I && I.contains(S);
    };
    return onDeactivated(() => u.value && c()), t({
      popperRef: a,
      contentRef: i,
      isFocusInsideContent: g,
      updatePopper: s,
      onOpen: h2,
      onClose: v,
      hide: c
    }), (y, b) => (openBlock(), createBlock(unref(zg), {
      ref_key: "popperRef",
      ref: a,
      role: y.role
    }, {
      default: withCtx(() => [
        createVNode(Zg, {
          disabled: y.disabled,
          trigger: y.trigger,
          "trigger-keys": y.triggerKeys,
          "virtual-ref": y.virtualRef,
          "virtual-triggering": y.virtualTriggering
        }, {
          default: withCtx(() => [
            y.$slots.default ? renderSlot(y.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true)
          ]),
          _: 3
        }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]),
        createVNode(t0, {
          ref_key: "contentRef",
          ref: i,
          "aria-label": y.ariaLabel,
          "boundaries-padding": y.boundariesPadding,
          content: y.content,
          disabled: y.disabled,
          effect: y.effect,
          enterable: y.enterable,
          "fallback-placements": y.fallbackPlacements,
          "hide-after": y.hideAfter,
          "gpu-acceleration": y.gpuAcceleration,
          offset: y.offset,
          persistent: y.persistent,
          "popper-class": y.popperClass,
          "popper-style": y.popperStyle,
          placement: y.placement,
          "popper-options": y.popperOptions,
          pure: y.pure,
          "raw-content": y.rawContent,
          "reference-el": y.referenceEl,
          "trigger-target-el": y.triggerTargetEl,
          "show-after": y.showAfter,
          strategy: y.strategy,
          teleported: y.teleported,
          transition: y.transition,
          "virtual-triggering": y.virtualTriggering,
          "z-index": y.zIndex,
          "append-to": y.appendTo
        }, {
          default: withCtx(() => [
            renderSlot(y.$slots, "content", {}, () => [
              y.rawContent ? (openBlock(), createElementBlock("span", {
                key: 0,
                innerHTML: y.content
              }, null, 8, ["innerHTML"])) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(y.content), 1))
            ]),
            y.showArrow ? (openBlock(), createBlock(unref(sg), {
              key: 0,
              "arrow-offset": y.arrowOffset
            }, null, 8, ["arrow-offset"])) : createCommentVNode("v-if", true)
          ]),
          _: 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 o0 = Se(n0, [["__file", "tooltip.vue"]]);
var Cu = lt(o0);
var xu = Symbol("buttonGroupContextKey");
var a0 = (e8, t) => {
  Jm({
    from: "type.text",
    replacement: "link",
    version: "3.0.0",
    scope: "props",
    ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
  }, computed(() => e8.type === "text"));
  const r = inject(xu, void 0), n = Ha("button"), { form: o } = In(), a = nn(computed(() => r == null ? void 0 : r.size)), i = So(), s = ref(), u = useSlots(), l = computed(() => e8.type || (r == null ? void 0 : r.type) || ""), f = computed(() => {
    var v, m, g;
    return (g = (m = e8.autoInsertSpace) != null ? m : (v = n.value) == null ? void 0 : v.autoInsertSpace) != null ? g : false;
  }), c = computed(() => e8.tag === "button" ? {
    ariaDisabled: i.value || e8.loading,
    disabled: i.value || e8.loading,
    autofocus: e8.autofocus,
    type: e8.nativeType
  } : {}), d = computed(() => {
    var v;
    const m = (v = u.default) == null ? void 0 : v.call(u);
    if (f.value && (m == null ? void 0 : m.length) === 1) {
      const g = m[0];
      if ((g == null ? void 0 : g.type) === Text) {
        const y = g.children;
        return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(y.trim());
      }
    }
    return false;
  });
  return {
    _disabled: i,
    _size: a,
    _type: l,
    _ref: s,
    _props: c,
    shouldAddSpace: d,
    handleClick: (v) => {
      if (i.value || e8.loading) {
        v.stopPropagation();
        return;
      }
      e8.nativeType === "reset" && (o == null || o.resetFields()), t("click", v);
    }
  };
};
var i0 = [
  "default",
  "primary",
  "success",
  "warning",
  "info",
  "danger",
  "text",
  ""
];
var s0 = ["button", "submit", "reset"];
var sa = we({
  size: Jr,
  disabled: Boolean,
  type: {
    type: String,
    values: i0,
    default: ""
  },
  icon: {
    type: jr
  },
  nativeType: {
    type: String,
    values: s0,
    default: "button"
  },
  loading: Boolean,
  loadingIcon: {
    type: jr,
    default: () => Hl
  },
  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: ie([String, Object]),
    default: "button"
  }
});
var l0 = {
  click: (e8) => e8 instanceof MouseEvent
};
function Le(e8, t) {
  u0(e8) && (e8 = "100%");
  var r = f0(e8);
  return e8 = t === 360 ? e8 : Math.min(t, Math.max(0, parseFloat(e8))), r && (e8 = parseInt(String(e8 * t), 10) / 100), Math.abs(e8 - t) < 1e-6 ? 1 : (t === 360 ? e8 = (e8 < 0 ? e8 % t + t : e8 % t) / parseFloat(String(t)) : e8 = e8 % t / parseFloat(String(t)), e8);
}
function Ln(e8) {
  return Math.min(1, Math.max(0, e8));
}
function u0(e8) {
  return typeof e8 == "string" && e8.indexOf(".") !== -1 && parseFloat(e8) === 1;
}
function f0(e8) {
  return typeof e8 == "string" && e8.indexOf("%") !== -1;
}
function Tu(e8) {
  return e8 = parseFloat(e8), (isNaN(e8) || e8 < 0 || e8 > 1) && (e8 = 1), e8;
}
function zn(e8) {
  return e8 <= 1 ? "".concat(Number(e8) * 100, "%") : e8;
}
function hr(e8) {
  return e8.length === 1 ? "0" + e8 : String(e8);
}
function c0(e8, t, r) {
  return {
    r: Le(e8, 255) * 255,
    g: Le(t, 255) * 255,
    b: Le(r, 255) * 255
  };
}
function Ps(e8, t, r) {
  e8 = Le(e8, 255), t = Le(t, 255), r = Le(r, 255);
  var n = Math.max(e8, t, r), o = Math.min(e8, t, r), a = 0, i = 0, s = (n + o) / 2;
  if (n === o)
    i = 0, a = 0;
  else {
    var u = n - o;
    switch (i = s > 0.5 ? u / (2 - n - o) : u / (n + o), n) {
      case e8:
        a = (t - r) / u + (t < r ? 6 : 0);
        break;
      case t:
        a = (r - e8) / u + 2;
        break;
      case r:
        a = (e8 - t) / u + 4;
        break;
    }
    a /= 6;
  }
  return { h: a, s: i, l: s };
}
function Vo(e8, t, r) {
  return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e8 + (t - e8) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e8 + (t - e8) * (2 / 3 - r) * 6 : e8;
}
function d0(e8, t, r) {
  var n, o, a;
  if (e8 = Le(e8, 360), t = Le(t, 100), r = Le(r, 100), t === 0)
    o = r, a = r, n = r;
  else {
    var i = r < 0.5 ? r * (1 + t) : r + t - r * t, s = 2 * r - i;
    n = Vo(s, i, e8 + 1 / 3), o = Vo(s, i, e8), a = Vo(s, i, e8 - 1 / 3);
  }
  return { r: n * 255, g: o * 255, b: a * 255 };
}
function $s(e8, t, r) {
  e8 = Le(e8, 255), t = Le(t, 255), r = Le(r, 255);
  var n = Math.max(e8, t, r), o = Math.min(e8, t, r), a = 0, i = n, s = n - o, u = n === 0 ? 0 : s / n;
  if (n === o)
    a = 0;
  else {
    switch (n) {
      case e8:
        a = (t - r) / s + (t < r ? 6 : 0);
        break;
      case t:
        a = (r - e8) / s + 2;
        break;
      case r:
        a = (e8 - t) / s + 4;
        break;
    }
    a /= 6;
  }
  return { h: a, s: u, v: i };
}
function p0(e8, t, r) {
  e8 = Le(e8, 360) * 6, t = Le(t, 100), r = Le(r, 100);
  var n = Math.floor(e8), o = e8 - n, a = r * (1 - t), i = r * (1 - o * t), s = r * (1 - (1 - o) * t), u = n % 6, l = [r, i, a, a, s, r][u], f = [s, r, r, i, a, a][u], c = [a, a, s, r, r, i][u];
  return { r: l * 255, g: f * 255, b: c * 255 };
}
function Fs(e8, t, r, n) {
  var o = [
    hr(Math.round(e8).toString(16)),
    hr(Math.round(t).toString(16)),
    hr(Math.round(r).toString(16))
  ];
  return n && 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 v0(e8, t, r, n, o) {
  var a = [
    hr(Math.round(e8).toString(16)),
    hr(Math.round(t).toString(16)),
    hr(Math.round(r).toString(16)),
    hr(m0(n))
  ];
  return o && a[0].startsWith(a[0].charAt(1)) && a[1].startsWith(a[1].charAt(1)) && a[2].startsWith(a[2].charAt(1)) && a[3].startsWith(a[3].charAt(1)) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
}
function m0(e8) {
  return Math.round(parseFloat(e8) * 255).toString(16);
}
function Ms(e8) {
  return Xe(e8) / 255;
}
function Xe(e8) {
  return parseInt(e8, 16);
}
function h0(e8) {
  return {
    r: e8 >> 16,
    g: (e8 & 65280) >> 8,
    b: e8 & 255
  };
}
var la = {
  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 y0(e8) {
  var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, o = null, a = null, i = false, s = false;
  return typeof e8 == "string" && (e8 = w0(e8)), typeof e8 == "object" && ($t(e8.r) && $t(e8.g) && $t(e8.b) ? (t = c0(e8.r, e8.g, e8.b), i = true, s = String(e8.r).substr(-1) === "%" ? "prgb" : "rgb") : $t(e8.h) && $t(e8.s) && $t(e8.v) ? (n = zn(e8.s), o = zn(e8.v), t = p0(e8.h, n, o), i = true, s = "hsv") : $t(e8.h) && $t(e8.s) && $t(e8.l) && (n = zn(e8.s), a = zn(e8.l), t = d0(e8.h, n, a), i = true, s = "hsl"), Object.prototype.hasOwnProperty.call(e8, "a") && (r = e8.a)), r = Tu(r), {
    ok: i,
    format: e8.format || s,
    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: r
  };
}
var g0 = "[-\\+]?\\d+%?";
var b0 = "[-\\+]?\\d*\\.\\d+%?";
var nr = "(?:".concat(b0, ")|(?:").concat(g0, ")");
var Ro = "[\\s|\\(]+(".concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")\\s*\\)?");
var No = "[\\s|\\(]+(".concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")\\s*\\)?");
var ct = {
  CSS_UNIT: new RegExp(nr),
  rgb: new RegExp("rgb" + Ro),
  rgba: new RegExp("rgba" + No),
  hsl: new RegExp("hsl" + Ro),
  hsla: new RegExp("hsla" + No),
  hsv: new RegExp("hsv" + Ro),
  hsva: new RegExp("hsva" + No),
  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 w0(e8) {
  if (e8 = e8.trim().toLowerCase(), e8.length === 0)
    return false;
  var t = false;
  if (la[e8])
    e8 = la[e8], t = true;
  else if (e8 === "transparent")
    return { r: 0, g: 0, b: 0, a: 0, format: "name" };
  var r = ct.rgb.exec(e8);
  return r ? { r: r[1], g: r[2], b: r[3] } : (r = ct.rgba.exec(e8), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ct.hsl.exec(e8), r ? { h: r[1], s: r[2], l: r[3] } : (r = ct.hsla.exec(e8), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ct.hsv.exec(e8), r ? { h: r[1], s: r[2], v: r[3] } : (r = ct.hsva.exec(e8), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ct.hex8.exec(e8), r ? {
    r: Xe(r[1]),
    g: Xe(r[2]),
    b: Xe(r[3]),
    a: Ms(r[4]),
    format: t ? "name" : "hex8"
  } : (r = ct.hex6.exec(e8), r ? {
    r: Xe(r[1]),
    g: Xe(r[2]),
    b: Xe(r[3]),
    format: t ? "name" : "hex"
  } : (r = ct.hex4.exec(e8), r ? {
    r: Xe(r[1] + r[1]),
    g: Xe(r[2] + r[2]),
    b: Xe(r[3] + r[3]),
    a: Ms(r[4] + r[4]),
    format: t ? "name" : "hex8"
  } : (r = ct.hex3.exec(e8), r ? {
    r: Xe(r[1] + r[1]),
    g: Xe(r[2] + r[2]),
    b: Xe(r[3] + r[3]),
    format: t ? "name" : "hex"
  } : false)))))))));
}
function $t(e8) {
  return !!ct.CSS_UNIT.exec(String(e8));
}
var S0 = (
  /** @class */
  function() {
    function e8(t, r) {
      t === void 0 && (t = ""), r === void 0 && (r = {});
      var n;
      if (t instanceof e8)
        return t;
      typeof t == "number" && (t = h0(t)), this.originalInput = t;
      var o = y0(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 = (n = r.format) !== null && n !== void 0 ? n : o.format, this.gradientType = r.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 e8.prototype.isDark = function() {
      return this.getBrightness() < 128;
    }, e8.prototype.isLight = function() {
      return !this.isDark();
    }, e8.prototype.getBrightness = function() {
      var t = this.toRgb();
      return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
    }, e8.prototype.getLuminance = function() {
      var t = this.toRgb(), r, n, o, a = t.r / 255, i = t.g / 255, s = t.b / 255;
      return a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? n = i / 12.92 : n = Math.pow((i + 0.055) / 1.055, 2.4), s <= 0.03928 ? o = s / 12.92 : o = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * n + 0.0722 * o;
    }, e8.prototype.getAlpha = function() {
      return this.a;
    }, e8.prototype.setAlpha = function(t) {
      return this.a = Tu(t), this.roundA = Math.round(100 * this.a) / 100, this;
    }, e8.prototype.isMonochrome = function() {
      var t = this.toHsl().s;
      return t === 0;
    }, e8.prototype.toHsv = function() {
      var t = $s(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
    }, e8.prototype.toHsvString = function() {
      var t = $s(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
      return this.a === 1 ? "hsv(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsva(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
    }, e8.prototype.toHsl = function() {
      var t = Ps(this.r, this.g, this.b);
      return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
    }, e8.prototype.toHslString = function() {
      var t = Ps(this.r, this.g, this.b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
      return this.a === 1 ? "hsl(".concat(r, ", ").concat(n, "%, ").concat(o, "%)") : "hsla(".concat(r, ", ").concat(n, "%, ").concat(o, "%, ").concat(this.roundA, ")");
    }, e8.prototype.toHex = function(t) {
      return t === void 0 && (t = false), Fs(this.r, this.g, this.b, t);
    }, e8.prototype.toHexString = function(t) {
      return t === void 0 && (t = false), "#" + this.toHex(t);
    }, e8.prototype.toHex8 = function(t) {
      return t === void 0 && (t = false), v0(this.r, this.g, this.b, this.a, t);
    }, e8.prototype.toHex8String = function(t) {
      return t === void 0 && (t = false), "#" + this.toHex8(t);
    }, e8.prototype.toHexShortString = function(t) {
      return t === void 0 && (t = false), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
    }, e8.prototype.toRgb = function() {
      return {
        r: Math.round(this.r),
        g: Math.round(this.g),
        b: Math.round(this.b),
        a: this.a
      };
    }, e8.prototype.toRgbString = function() {
      var t = Math.round(this.r), r = Math.round(this.g), n = Math.round(this.b);
      return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(n, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(n, ", ").concat(this.roundA, ")");
    }, e8.prototype.toPercentageRgb = function() {
      var t = function(r) {
        return "".concat(Math.round(Le(r, 255) * 100), "%");
      };
      return {
        r: t(this.r),
        g: t(this.g),
        b: t(this.b),
        a: this.a
      };
    }, e8.prototype.toPercentageRgbString = function() {
      var t = function(r) {
        return Math.round(Le(r, 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, ")");
    }, e8.prototype.toName = function() {
      if (this.a === 0)
        return "transparent";
      if (this.a < 1)
        return false;
      for (var t = "#" + Fs(this.r, this.g, this.b, false), r = 0, n = Object.entries(la); r < n.length; r++) {
        var o = n[r], a = o[0], i = o[1];
        if (t === i)
          return a;
      }
      return false;
    }, e8.prototype.toString = function(t) {
      var r = !!t;
      t = t ?? this.format;
      var n = false, o = this.a < 1 && this.a >= 0, a = !r && o && (t.startsWith("hex") || t === "name");
      return a ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(true)), t === "hex4" && (n = this.toHex8String(true)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
    }, e8.prototype.toNumber = function() {
      return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
    }, e8.prototype.clone = function() {
      return new e8(this.toString());
    }, e8.prototype.lighten = function(t) {
      t === void 0 && (t = 10);
      var r = this.toHsl();
      return r.l += t / 100, r.l = Ln(r.l), new e8(r);
    }, e8.prototype.brighten = function(t) {
      t === void 0 && (t = 10);
      var r = this.toRgb();
      return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new e8(r);
    }, e8.prototype.darken = function(t) {
      t === void 0 && (t = 10);
      var r = this.toHsl();
      return r.l -= t / 100, r.l = Ln(r.l), new e8(r);
    }, e8.prototype.tint = function(t) {
      return t === void 0 && (t = 10), this.mix("white", t);
    }, e8.prototype.shade = function(t) {
      return t === void 0 && (t = 10), this.mix("black", t);
    }, e8.prototype.desaturate = function(t) {
      t === void 0 && (t = 10);
      var r = this.toHsl();
      return r.s -= t / 100, r.s = Ln(r.s), new e8(r);
    }, e8.prototype.saturate = function(t) {
      t === void 0 && (t = 10);
      var r = this.toHsl();
      return r.s += t / 100, r.s = Ln(r.s), new e8(r);
    }, e8.prototype.greyscale = function() {
      return this.desaturate(100);
    }, e8.prototype.spin = function(t) {
      var r = this.toHsl(), n = (r.h + t) % 360;
      return r.h = n < 0 ? 360 + n : n, new e8(r);
    }, e8.prototype.mix = function(t, r) {
      r === void 0 && (r = 50);
      var n = this.toRgb(), o = new e8(t).toRgb(), a = r / 100, i = {
        r: (o.r - n.r) * a + n.r,
        g: (o.g - n.g) * a + n.g,
        b: (o.b - n.b) * a + n.b,
        a: (o.a - n.a) * a + n.a
      };
      return new e8(i);
    }, e8.prototype.analogous = function(t, r) {
      t === void 0 && (t = 6), r === void 0 && (r = 30);
      var n = this.toHsl(), o = 360 / r, a = [this];
      for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
        n.h = (n.h + o) % 360, a.push(new e8(n));
      return a;
    }, e8.prototype.complement = function() {
      var t = this.toHsl();
      return t.h = (t.h + 180) % 360, new e8(t);
    }, e8.prototype.monochromatic = function(t) {
      t === void 0 && (t = 6);
      for (var r = this.toHsv(), n = r.h, o = r.s, a = r.v, i = [], s = 1 / t; t--; )
        i.push(new e8({ h: n, s: o, v: a })), a = (a + s) % 1;
      return i;
    }, e8.prototype.splitcomplement = function() {
      var t = this.toHsl(), r = t.h;
      return [
        this,
        new e8({ h: (r + 72) % 360, s: t.s, l: t.l }),
        new e8({ h: (r + 216) % 360, s: t.s, l: t.l })
      ];
    }, e8.prototype.onBackground = function(t) {
      var r = this.toRgb(), n = new e8(t).toRgb(), o = r.a + n.a * (1 - r.a);
      return new e8({
        r: (r.r * r.a + n.r * n.a * (1 - r.a)) / o,
        g: (r.g * r.a + n.g * n.a * (1 - r.a)) / o,
        b: (r.b * r.a + n.b * n.a * (1 - r.a)) / o,
        a: o
      });
    }, e8.prototype.triad = function() {
      return this.polyad(3);
    }, e8.prototype.tetrad = function() {
      return this.polyad(4);
    }, e8.prototype.polyad = function(t) {
      for (var r = this.toHsl(), n = r.h, o = [this], a = 360 / t, i = 1; i < t; i++)
        o.push(new e8({ h: (n + i * a) % 360, s: r.s, l: r.l }));
      return o;
    }, e8.prototype.equals = function(t) {
      return this.toRgbString() === new e8(t).toRgbString();
    }, e8;
  }()
);
function Gt(e8, t = 20) {
  return e8.mix("#141414", t).toString();
}
function E0(e8) {
  const t = So(), r = be("button");
  return computed(() => {
    let n = {}, o = e8.color;
    if (o) {
      const a = o.match(/var\((.*?)\)/);
      a && (o = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));
      const i = new S0(o), s = e8.dark ? i.tint(20).toString() : Gt(i, 20);
      if (e8.plain)
        n = r.cssVarBlock({
          "bg-color": e8.dark ? Gt(i, 90) : i.tint(90).toString(),
          "text-color": o,
          "border-color": e8.dark ? Gt(i, 50) : i.tint(50).toString(),
          "hover-text-color": `var(${r.cssVarName("color-white")})`,
          "hover-bg-color": o,
          "hover-border-color": o,
          "active-bg-color": s,
          "active-text-color": `var(${r.cssVarName("color-white")})`,
          "active-border-color": s
        }), t.value && (n[r.cssVarBlockName("disabled-bg-color")] = e8.dark ? Gt(i, 90) : i.tint(90).toString(), n[r.cssVarBlockName("disabled-text-color")] = e8.dark ? Gt(i, 50) : i.tint(50).toString(), n[r.cssVarBlockName("disabled-border-color")] = e8.dark ? Gt(i, 80) : i.tint(80).toString());
      else {
        const u = e8.dark ? Gt(i, 30) : i.tint(30).toString(), l = i.isDark() ? `var(${r.cssVarName("color-white")})` : `var(${r.cssVarName("color-black")})`;
        if (n = r.cssVarBlock({
          "bg-color": o,
          "text-color": l,
          "border-color": o,
          "hover-bg-color": u,
          "hover-text-color": l,
          "hover-border-color": u,
          "active-bg-color": s,
          "active-border-color": s
        }), t.value) {
          const f = e8.dark ? Gt(i, 50) : i.tint(50).toString();
          n[r.cssVarBlockName("disabled-bg-color")] = f, n[r.cssVarBlockName("disabled-text-color")] = e8.dark ? "rgba(255, 255, 255, 0.5)" : `var(${r.cssVarName("color-white")})`, n[r.cssVarBlockName("disabled-border-color")] = f;
        }
      }
    }
    return n;
  });
}
var O0 = defineComponent({
  name: "ElButton"
});
var A0 = defineComponent({
  ...O0,
  props: sa,
  emits: l0,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, o = E0(n), a = be("button"), { _ref: i, _size: s, _type: u, _disabled: l, _props: f, shouldAddSpace: c, handleClick: d } = a0(n, r), h2 = computed(() => [
      a.b(),
      a.m(u.value),
      a.m(s.value),
      a.is("disabled", l.value),
      a.is("loading", n.loading),
      a.is("plain", n.plain),
      a.is("round", n.round),
      a.is("circle", n.circle),
      a.is("text", n.text),
      a.is("link", n.link),
      a.is("has-bg", n.bg)
    ]);
    return t({
      ref: i,
      size: s,
      type: u,
      disabled: l,
      shouldAddSpace: c
    }), (v, m) => (openBlock(), createBlock(resolveDynamicComponent(v.tag), mergeProps({
      ref_key: "_ref",
      ref: i
    }, unref(f), {
      class: unref(h2),
      style: unref(o),
      onClick: unref(d)
    }), {
      default: withCtx(() => [
        v.loading ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
          v.$slots.loading ? renderSlot(v.$slots, "loading", { key: 0 }) : (openBlock(), createBlock(unref(rt), {
            key: 1,
            class: normalizeClass(unref(a).is("loading"))
          }, {
            default: withCtx(() => [
              (openBlock(), createBlock(resolveDynamicComponent(v.loadingIcon)))
            ]),
            _: 1
          }, 8, ["class"]))
        ], 64)) : v.icon || v.$slots.icon ? (openBlock(), createBlock(unref(rt), { key: 1 }, {
          default: withCtx(() => [
            v.icon ? (openBlock(), createBlock(resolveDynamicComponent(v.icon), { key: 0 })) : renderSlot(v.$slots, "icon", { key: 1 })
          ]),
          _: 3
        })) : createCommentVNode("v-if", true),
        v.$slots.default ? (openBlock(), createElementBlock("span", {
          key: 2,
          class: normalizeClass({ [unref(a).em("text", "expand")]: unref(c) })
        }, [
          renderSlot(v.$slots, "default")
        ], 2)) : createCommentVNode("v-if", true)
      ]),
      _: 3
    }, 16, ["class", "style", "onClick"]));
  }
});
var _0 = Se(A0, [["__file", "button.vue"]]);
var I0 = {
  size: sa.size,
  type: sa.type
};
var C0 = defineComponent({
  name: "ElButtonGroup"
});
var x0 = defineComponent({
  ...C0,
  props: I0,
  setup(e8) {
    const t = e8;
    provide(xu, reactive({
      size: toRef(t, "size"),
      type: toRef(t, "type")
    }));
    const r = be("button");
    return (n, o) => (openBlock(), createElementBlock("div", {
      class: normalizeClass(unref(r).b("group"))
    }, [
      renderSlot(n.$slots, "default")
    ], 2));
  }
});
var Pu = Se(x0, [["__file", "button-group.vue"]]);
var $u = lt(_0, {
  ButtonGroup: Pu
});
Va(Pu);
var qn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function T0(e8) {
  if (e8.__esModule) return e8;
  var t = e8.default;
  if (typeof t == "function") {
    var r = function n() {
      return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
    };
    r.prototype = t.prototype;
  } else r = {};
  return Object.defineProperty(r, "__esModule", { value: true }), Object.keys(e8).forEach(function(n) {
    var o = Object.getOwnPropertyDescriptor(e8, n);
    Object.defineProperty(r, n, o.get ? o : {
      enumerable: true,
      get: function() {
        return e8[n];
      }
    });
  }), r;
}
var Xt = /* @__PURE__ */ new Map();
if (Fe) {
  let e8;
  document.addEventListener("mousedown", (t) => e8 = t), document.addEventListener("mouseup", (t) => {
    if (e8) {
      for (const r of Xt.values())
        for (const { documentHandler: n } of r)
          n(t, e8);
      e8 = void 0;
    }
  });
}
function Vs(e8, t) {
  let r = [];
  return Array.isArray(t.arg) ? r = t.arg : yr(t.arg) && r.push(t.arg), function(n, o) {
    const a = t.instance.popperRef, i = n.target, s = o == null ? void 0 : o.target, u = !t || !t.instance, l = !i || !s, f = e8.contains(i) || e8.contains(s), c = e8 === i, d = r.length && r.some((v) => v == null ? void 0 : v.contains(i)) || r.length && r.includes(s), h2 = a && (a.contains(i) || a.contains(s));
    u || l || f || c || d || h2 || t.value(n, o);
  };
}
var P0 = {
  beforeMount(e8, t) {
    Xt.has(e8) || Xt.set(e8, []), Xt.get(e8).push({
      documentHandler: Vs(e8, t),
      bindingFn: t.value
    });
  },
  updated(e8, t) {
    Xt.has(e8) || Xt.set(e8, []);
    const r = Xt.get(e8), n = r.findIndex((a) => a.bindingFn === t.oldValue), o = {
      documentHandler: Vs(e8, t),
      bindingFn: t.value
    };
    n >= 0 ? r.splice(n, 1, o) : r.push(o);
  },
  unmounted(e8) {
    Xt.delete(e8);
  }
};
var $0 = 100;
var F0 = 600;
var Rs = {
  beforeMount(e8, t) {
    const r = t.value, { interval: n = $0, delay: o = F0 } = Be(r) ? {} : r;
    let a, i;
    const s = () => Be(r) ? r() : r.handler(), u = () => {
      i && (clearTimeout(i), i = void 0), a && (clearInterval(a), a = void 0);
    };
    e8.addEventListener("mousedown", (l) => {
      l.button === 0 && (u(), s(), document.addEventListener("mouseup", () => u(), {
        once: true
      }), i = setTimeout(() => {
        a = setInterval(() => {
          s();
        }, n);
      }, o));
    });
  }
};
var ua = we({
  type: {
    type: String,
    values: ["primary", "success", "info", "warning", "danger"],
    default: "primary"
  },
  closable: Boolean,
  disableTransitions: Boolean,
  hit: Boolean,
  color: String,
  size: {
    type: String,
    values: Kl
  },
  effect: {
    type: String,
    values: ["dark", "light", "plain"],
    default: "light"
  },
  round: Boolean
});
var M0 = {
  close: (e8) => e8 instanceof MouseEvent,
  click: (e8) => e8 instanceof MouseEvent
};
var V0 = defineComponent({
  name: "ElTag"
});
var R0 = defineComponent({
  ...V0,
  props: ua,
  emits: M0,
  setup(e8, { emit: t }) {
    const r = e8, n = nn(), o = be("tag"), a = computed(() => {
      const { type: l, hit: f, effect: c, closable: d, round: h2 } = r;
      return [
        o.b(),
        o.is("closable", d),
        o.m(l || "primary"),
        o.m(n.value),
        o.m(c),
        o.is("hit", f),
        o.is("round", h2)
      ];
    }), i = (l) => {
      t("close", l);
    }, s = (l) => {
      t("click", l);
    }, u = (l) => {
      l.component.subTree.component.bum = null;
    };
    return (l, f) => l.disableTransitions ? (openBlock(), createElementBlock("span", {
      key: 0,
      class: normalizeClass(unref(a)),
      style: normalizeStyle({ backgroundColor: l.color }),
      onClick: s
    }, [
      createBaseVNode("span", {
        class: normalizeClass(unref(o).e("content"))
      }, [
        renderSlot(l.$slots, "default")
      ], 2),
      l.closable ? (openBlock(), createBlock(unref(rt), {
        key: 0,
        class: normalizeClass(unref(o).e("close")),
        onClick: withModifiers(i, ["stop"])
      }, {
        default: withCtx(() => [
          createVNode(unref(os))
        ]),
        _: 1
      }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
    ], 6)) : (openBlock(), createBlock(Transition, {
      key: 1,
      name: `${unref(o).namespace.value}-zoom-in-center`,
      appear: "",
      onVnodeMounted: u
    }, {
      default: withCtx(() => [
        createBaseVNode("span", {
          class: normalizeClass(unref(a)),
          style: normalizeStyle({ backgroundColor: l.color }),
          onClick: s
        }, [
          createBaseVNode("span", {
            class: normalizeClass(unref(o).e("content"))
          }, [
            renderSlot(l.$slots, "default")
          ], 2),
          l.closable ? (openBlock(), createBlock(unref(rt), {
            key: 0,
            class: normalizeClass(unref(o).e("close")),
            onClick: withModifiers(i, ["stop"])
          }, {
            default: withCtx(() => [
              createVNode(unref(os))
            ]),
            _: 1
          }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
        ], 6)
      ]),
      _: 3
    }, 8, ["name"]));
  }
});
var N0 = Se(R0, [["__file", "tag.vue"]]);
var k0 = lt(N0);
var L0 = we({
  direction: {
    type: String,
    values: ["horizontal", "vertical"],
    default: "horizontal"
  },
  contentPosition: {
    type: String,
    values: ["left", "center", "right"],
    default: "center"
  },
  borderStyle: {
    type: ie(String),
    default: "solid"
  }
});
var z0 = defineComponent({
  name: "ElDivider"
});
var B0 = defineComponent({
  ...z0,
  props: L0,
  setup(e8) {
    const t = e8, r = be("divider"), n = computed(() => r.cssVar({
      "border-style": t.borderStyle
    }));
    return (o, a) => (openBlock(), createElementBlock("div", {
      class: normalizeClass([unref(r).b(), unref(r).m(o.direction)]),
      style: normalizeStyle(unref(n)),
      role: "separator"
    }, [
      o.$slots.default && o.direction !== "vertical" ? (openBlock(), createElementBlock("div", {
        key: 0,
        class: normalizeClass([unref(r).e("text"), unref(r).is(o.contentPosition)])
      }, [
        renderSlot(o.$slots, "default")
      ], 2)) : createCommentVNode("v-if", true)
    ], 6));
  }
});
var D0 = Se(B0, [["__file", "divider.vue"]]);
var Fu = lt(D0);
var U0 = we({
  id: {
    type: String,
    default: void 0
  },
  step: {
    type: Number,
    default: 1
  },
  stepStrictly: Boolean,
  max: {
    type: Number,
    default: Number.POSITIVE_INFINITY
  },
  min: {
    type: Number,
    default: Number.NEGATIVE_INFINITY
  },
  modelValue: Number,
  readonly: Boolean,
  disabled: Boolean,
  size: Jr,
  controls: {
    type: Boolean,
    default: true
  },
  controlsPosition: {
    type: String,
    default: "",
    values: ["", "right"]
  },
  valueOnClear: {
    type: [String, Number, null],
    validator: (e8) => e8 === null || ge(e8) || ["min", "max"].includes(e8),
    default: null
  },
  name: String,
  placeholder: String,
  precision: {
    type: Number,
    validator: (e8) => e8 >= 0 && e8 === Number.parseInt(`${e8}`, 10)
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  ...Cr(["ariaLabel"])
});
var j0 = {
  [tn]: (e8, t) => t !== e8,
  blur: (e8) => e8 instanceof FocusEvent,
  focus: (e8) => e8 instanceof FocusEvent,
  [gr]: (e8) => ge(e8) || zt(e8),
  [Pe]: (e8) => ge(e8) || zt(e8)
};
var H0 = defineComponent({
  name: "ElInputNumber"
});
var W0 = defineComponent({
  ...H0,
  props: U0,
  emits: j0,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, { t: o } = go(), a = be("input-number"), i = ref(), s = reactive({
      currentValue: n.modelValue,
      userInput: null
    }), { formItem: u } = In(), l = computed(() => ge(n.modelValue) && n.modelValue <= n.min), f = computed(() => ge(n.modelValue) && n.modelValue >= n.max), c = computed(() => {
      const _ = y(n.step);
      return kt(n.precision) ? Math.max(y(n.modelValue), _) : (_ > n.precision && Ce("InputNumber", "precision should not be less than the decimal places of step"), n.precision);
    }), d = computed(() => n.controls && n.controlsPosition === "right"), h2 = nn(), v = So(), m = computed(() => {
      if (s.userInput !== null)
        return s.userInput;
      let _ = s.currentValue;
      if (zt(_))
        return "";
      if (ge(_)) {
        if (Number.isNaN(_))
          return "";
        kt(n.precision) || (_ = _.toFixed(n.precision));
      }
      return _;
    }), g = (_, A) => {
      if (kt(A) && (A = c.value), A === 0)
        return Math.round(_);
      let k = String(_);
      const Q = k.indexOf(".");
      if (Q === -1 || !k.replace(".", "").split("")[Q + A])
        return _;
      const U = k.length;
      return k.charAt(U - 1) === "5" && (k = `${k.slice(0, Math.max(0, U - 1))}6`), Number.parseFloat(Number(k).toFixed(A));
    }, y = (_) => {
      if (zt(_))
        return 0;
      const A = _.toString(), k = A.indexOf(".");
      let Q = 0;
      return k !== -1 && (Q = A.length - k - 1), Q;
    }, b = (_, A = 1) => ge(_) ? g(_ + n.step * A) : s.currentValue, O = () => {
      if (n.readonly || v.value || f.value)
        return;
      const _ = Number(m.value) || 0, A = b(_);
      x(A), r(gr, s.currentValue), z();
    }, I = () => {
      if (n.readonly || v.value || l.value)
        return;
      const _ = Number(m.value) || 0, A = b(_, -1);
      x(A), r(gr, s.currentValue), z();
    }, S = (_, A) => {
      const { max: k, min: Q, step: K, precision: P, stepStrictly: U, valueOnClear: M } = n;
      k < Q && Fa("InputNumber", "min should not be greater than max.");
      let j = Number(_);
      if (zt(_) || Number.isNaN(j))
        return null;
      if (_ === "") {
        if (M === null)
          return null;
        j = Qe(M) ? { min: Q, max: k }[M] : M;
      }
      return U && (j = g(Math.round(j / K) * K, P), j !== _ && A && r(Pe, j)), kt(P) || (j = g(j, P)), (j > k || j < Q) && (j = j > k ? k : Q, A && r(Pe, j)), j;
    }, x = (_, A = true) => {
      var k;
      const Q = s.currentValue, K = S(_);
      if (!A) {
        r(Pe, K);
        return;
      }
      Q === K && _ || (s.userInput = null, r(Pe, K), Q !== K && r(tn, K, Q), n.validateEvent && ((k = u == null ? void 0 : u.validate) == null || k.call(u, "change").catch((P) => Ce(P))), s.currentValue = K);
    }, T = (_) => {
      s.userInput = _;
      const A = _ === "" ? null : Number(_);
      r(gr, A), x(A, false);
    }, V = (_) => {
      const A = _ !== "" ? Number(_) : "";
      (ge(A) && !Number.isNaN(A) || _ === "") && x(A), z(), s.userInput = null;
    }, $ = () => {
      var _, A;
      (A = (_ = i.value) == null ? void 0 : _.focus) == null || A.call(_);
    }, H = () => {
      var _, A;
      (A = (_ = i.value) == null ? void 0 : _.blur) == null || A.call(_);
    }, J = (_) => {
      r("focus", _);
    }, R = (_) => {
      var A;
      s.userInput = null, r("blur", _), n.validateEvent && ((A = u == null ? void 0 : u.validate) == null || A.call(u, "blur").catch((k) => Ce(k)));
    }, z = () => {
      s.currentValue !== n.modelValue && (s.currentValue = n.modelValue);
    }, X = (_) => {
      document.activeElement === _.target && _.preventDefault();
    };
    return watch(() => n.modelValue, (_, A) => {
      const k = S(_, true);
      s.userInput === null && k !== A && (s.currentValue = k);
    }, { immediate: true }), onMounted(() => {
      var _;
      const { min: A, max: k, modelValue: Q } = n, K = (_ = i.value) == null ? void 0 : _.input;
      if (K.setAttribute("role", "spinbutton"), Number.isFinite(k) ? K.setAttribute("aria-valuemax", String(k)) : K.removeAttribute("aria-valuemax"), Number.isFinite(A) ? K.setAttribute("aria-valuemin", String(A)) : K.removeAttribute("aria-valuemin"), K.setAttribute("aria-valuenow", s.currentValue || s.currentValue === 0 ? String(s.currentValue) : ""), K.setAttribute("aria-disabled", String(v.value)), !ge(Q) && Q != null) {
        let P = Number(Q);
        Number.isNaN(P) && (P = null), r(Pe, P);
      }
      K.addEventListener("wheel", X, { passive: false });
    }), onUpdated(() => {
      var _, A;
      const k = (_ = i.value) == null ? void 0 : _.input;
      k == null || k.setAttribute("aria-valuenow", `${(A = s.currentValue) != null ? A : ""}`);
    }), t({
      focus: $,
      blur: H
    }), (_, A) => (openBlock(), createElementBlock("div", {
      class: normalizeClass([
        unref(a).b(),
        unref(a).m(unref(h2)),
        unref(a).is("disabled", unref(v)),
        unref(a).is("without-controls", !_.controls),
        unref(a).is("controls-right", unref(d))
      ]),
      onDragstart: withModifiers(() => {
      }, ["prevent"])
    }, [
      _.controls ? withDirectives((openBlock(), createElementBlock("span", {
        key: 0,
        role: "button",
        "aria-label": unref(o)("el.inputNumber.decrease"),
        class: normalizeClass([unref(a).e("decrease"), unref(a).is("disabled", unref(l))]),
        onKeydown: withKeys(I, ["enter"])
      }, [
        renderSlot(_.$slots, "decrease-icon", {}, () => [
          createVNode(unref(rt), null, {
            default: withCtx(() => [
              unref(d) ? (openBlock(), createBlock(unref(jl), { key: 0 })) : (openBlock(), createBlock(unref(zm), { key: 1 }))
            ]),
            _: 1
          })
        ])
      ], 42, ["aria-label", "onKeydown"])), [
        [unref(Rs), I]
      ]) : createCommentVNode("v-if", true),
      _.controls ? withDirectives((openBlock(), createElementBlock("span", {
        key: 1,
        role: "button",
        "aria-label": unref(o)("el.inputNumber.increase"),
        class: normalizeClass([unref(a).e("increase"), unref(a).is("disabled", unref(f))]),
        onKeydown: withKeys(O, ["enter"])
      }, [
        renderSlot(_.$slots, "increase-icon", {}, () => [
          createVNode(unref(rt), null, {
            default: withCtx(() => [
              unref(d) ? (openBlock(), createBlock(unref(Pm), { key: 0 })) : (openBlock(), createBlock(unref(Dm), { key: 1 }))
            ]),
            _: 1
          })
        ])
      ], 42, ["aria-label", "onKeydown"])), [
        [unref(Rs), O]
      ]) : createCommentVNode("v-if", true),
      createVNode(unref(By), {
        id: _.id,
        ref_key: "input",
        ref: i,
        type: "number",
        step: _.step,
        "model-value": unref(m),
        placeholder: _.placeholder,
        readonly: _.readonly,
        disabled: unref(v),
        size: unref(h2),
        max: _.max,
        min: _.min,
        name: _.name,
        "aria-label": _.ariaLabel,
        "validate-event": false,
        onKeydown: [
          withKeys(withModifiers(O, ["prevent"]), ["up"]),
          withKeys(withModifiers(I, ["prevent"]), ["down"])
        ],
        onBlur: R,
        onFocus: J,
        onInput: T,
        onChange: V
      }, createSlots({ _: 2 }, [
        _.$slots.prefix ? {
          name: "prefix",
          fn: withCtx(() => [
            renderSlot(_.$slots, "prefix")
          ])
        } : void 0,
        _.$slots.suffix ? {
          name: "suffix",
          fn: withCtx(() => [
            renderSlot(_.$slots, "suffix")
          ])
        } : void 0
      ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"])
    ], 42, ["onDragstart"]));
  }
});
var q0 = Se(W0, [["__file", "input-number.vue"]]);
var Qa = lt(q0);
var Mu = Symbol("ElSelectGroup");
var Oo = Symbol("ElSelect");
function K0(e8, t) {
  const r = inject(Oo), n = inject(Mu, { disabled: false }), o = computed(() => f(rr(r.props.modelValue), e8.value)), a = computed(() => {
    var h2;
    if (r.props.multiple) {
      const v = rr((h2 = r.props.modelValue) != null ? h2 : []);
      return !o.value && v.length >= r.props.multipleLimit && r.props.multipleLimit > 0;
    } else
      return false;
  }), i = computed(() => e8.label || (Ge(e8.value) ? "" : e8.value)), s = computed(() => e8.value || e8.label || ""), u = computed(() => e8.disabled || t.groupDisabled || a.value), l = getCurrentInstance(), f = (h2 = [], v) => {
    if (Ge(e8.value)) {
      const m = r.props.valueKey;
      return h2 && h2.some((g) => toRaw(Rt(g, m)) === Rt(v, m));
    } else
      return h2 && h2.includes(v);
  }, c = () => {
    !e8.disabled && !n.disabled && (r.states.hoveringIndex = r.optionsArray.indexOf(l.proxy));
  }, d = (h2) => {
    const v = new RegExp(_m(h2), "i");
    t.visible = v.test(i.value) || e8.created;
  };
  return watch(() => i.value, () => {
    !e8.created && !r.props.remote && r.setSelected();
  }), watch(() => e8.value, (h2, v) => {
    const { remote: m, valueKey: g } = r.props;
    if (h2 !== v && (r.onOptionDestroy(v, l.proxy), r.onOptionCreate(l.proxy)), !e8.created && !m) {
      if (g && Ge(h2) && Ge(v) && h2[g] === v[g])
        return;
      r.setSelected();
    }
  }), watch(() => n.disabled, () => {
    t.groupDisabled = n.disabled;
  }, { immediate: true }), {
    select: r,
    currentLabel: i,
    currentValue: s,
    itemSelected: o,
    isDisabled: u,
    hoverItem: c,
    updateOption: d
  };
}
var Z0 = defineComponent({
  name: "ElOption",
  componentName: "ElOption",
  props: {
    value: {
      required: true,
      type: [String, Number, Boolean, Object]
    },
    label: [String, Number],
    created: Boolean,
    disabled: Boolean
  },
  setup(e8) {
    const t = be("select"), r = wo(), n = computed(() => [
      t.be("dropdown", "item"),
      t.is("disabled", unref(s)),
      t.is("selected", unref(i)),
      t.is("hovering", unref(d))
    ]), o = reactive({
      index: -1,
      groupDisabled: false,
      visible: true,
      hover: false
    }), {
      currentLabel: a,
      itemSelected: i,
      isDisabled: s,
      select: u,
      hoverItem: l,
      updateOption: f
    } = K0(e8, o), { visible: c, hover: d } = toRefs(o), h2 = getCurrentInstance().proxy;
    u.onOptionCreate(h2), onBeforeUnmount(() => {
      const m = h2.value, { selected: g } = u.states, b = (u.props.multiple ? g : [g]).some((O) => O.value === h2.value);
      nextTick(() => {
        u.states.cachedOptions.get(m) === h2 && !b && u.states.cachedOptions.delete(m);
      }), u.onOptionDestroy(m, h2);
    });
    function v() {
      s.value || u.handleOptionSelect(h2);
    }
    return {
      ns: t,
      id: r,
      containerKls: n,
      currentLabel: a,
      itemSelected: i,
      isDisabled: s,
      select: u,
      hoverItem: l,
      updateOption: f,
      visible: c,
      hover: d,
      selectOptionClick: v,
      states: o
    };
  }
});
function G0(e8, t, r, n, o, a) {
  return withDirectives((openBlock(), createElementBlock("li", {
    id: e8.id,
    class: normalizeClass(e8.containerKls),
    role: "option",
    "aria-disabled": e8.isDisabled || void 0,
    "aria-selected": e8.itemSelected,
    onMouseenter: e8.hoverItem,
    onClick: withModifiers(e8.selectOptionClick, ["stop"])
  }, [
    renderSlot(e8.$slots, "default", {}, () => [
      createBaseVNode("span", null, toDisplayString(e8.currentLabel), 1)
    ])
  ], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [
    [vShow, e8.visible]
  ]);
}
var ei = Se(Z0, [["render", G0], ["__file", "option.vue"]]);
var J0 = defineComponent({
  name: "ElSelectDropdown",
  componentName: "ElSelectDropdown",
  setup() {
    const e8 = inject(Oo), t = be("select"), r = computed(() => e8.props.popperClass), n = computed(() => e8.props.multiple), o = computed(() => e8.props.fitInputWidth), a = ref("");
    function i() {
      var s;
      a.value = `${(s = e8.selectRef) == null ? void 0 : s.offsetWidth}px`;
    }
    return onMounted(() => {
      i(), Mt(e8.selectRef, i);
    }), {
      ns: t,
      minWidth: a,
      popperClass: r,
      isMultiple: n,
      isFitInputWidth: o
    };
  }
});
function Y0(e8, t, r, n, o, a) {
  return openBlock(), createElementBlock("div", {
    class: normalizeClass([e8.ns.b("dropdown"), e8.ns.is("multiple", e8.isMultiple), e8.popperClass]),
    style: normalizeStyle({ [e8.isFitInputWidth ? "width" : "minWidth"]: e8.minWidth })
  }, [
    e8.$slots.header ? (openBlock(), createElementBlock("div", {
      key: 0,
      class: normalizeClass(e8.ns.be("dropdown", "header"))
    }, [
      renderSlot(e8.$slots, "header")
    ], 2)) : createCommentVNode("v-if", true),
    renderSlot(e8.$slots, "default"),
    e8.$slots.footer ? (openBlock(), createElementBlock("div", {
      key: 1,
      class: normalizeClass(e8.ns.be("dropdown", "footer"))
    }, [
      renderSlot(e8.$slots, "footer")
    ], 2)) : createCommentVNode("v-if", true)
  ], 6);
}
var X0 = Se(J0, [["render", Y0], ["__file", "select-dropdown.vue"]]);
var Q0 = 11;
var eb = (e8, t) => {
  const { t: r } = go(), n = wo(), o = be("select"), a = be("input"), i = reactive({
    inputValue: "",
    options: /* @__PURE__ */ new Map(),
    cachedOptions: /* @__PURE__ */ new Map(),
    disabledOptions: /* @__PURE__ */ new Map(),
    optionValues: [],
    selected: [],
    selectionWidth: 0,
    calculatorWidth: 0,
    collapseItemWidth: 0,
    selectedLabel: "",
    hoveringIndex: -1,
    previousQuery: null,
    inputHovering: false,
    menuVisibleOnFocus: false,
    isBeforeHide: false
  }), s = ref(null), u = ref(null), l = ref(null), f = ref(null), c = ref(null), d = ref(null), h2 = ref(null), v = ref(null), m = ref(null), g = ref(null), y = ref(null), b = ref(null), {
    isComposing: O,
    handleCompositionStart: I,
    handleCompositionUpdate: S,
    handleCompositionEnd: x
  } = hu({
    afterComposition: (E) => tt(E)
  }), { wrapperRef: T, isFocused: V } = mu(c, {
    beforeFocus() {
      return A.value;
    },
    afterFocus() {
      e8.automaticDropdown && !$.value && ($.value = true, i.menuVisibleOnFocus = true);
    },
    beforeBlur(E) {
      var B, se;
      return ((B = l.value) == null ? void 0 : B.isFocusInsideContent(E)) || ((se = f.value) == null ? void 0 : se.isFocusInsideContent(E));
    },
    afterBlur() {
      $.value = false, i.menuVisibleOnFocus = false;
    }
  }), $ = ref(false), H = ref(), { form: J, formItem: R } = In(), { inputId: z } = qa(e8, {
    formItemContext: R
  }), { valueOnClear: X, isEmptyValue: _ } = Oy(e8), A = computed(() => e8.disabled || (J == null ? void 0 : J.disabled)), k = computed(() => Ot(e8.modelValue) ? e8.modelValue.length > 0 : !_(e8.modelValue)), Q = computed(() => e8.clearable && !A.value && i.inputHovering && k.value), K = computed(() => e8.remote && e8.filterable && !e8.remoteShowSuffix ? "" : e8.suffixIcon), P = computed(() => o.is("reverse", K.value && $.value)), U = computed(() => (R == null ? void 0 : R.validateState) || ""), M = computed(() => ql[U.value]), j = computed(() => e8.remote ? 300 : 0), Y = computed(() => e8.loading ? e8.loadingText || r("el.select.loading") : e8.remote && !i.inputValue && i.options.size === 0 ? false : e8.filterable && i.inputValue && i.options.size > 0 && oe.value === 0 ? e8.noMatchText || r("el.select.noMatch") : i.options.size === 0 ? e8.noDataText || r("el.select.noData") : null), oe = computed(() => ae.value.filter((E) => E.visible).length), ae = computed(() => {
    const E = Array.from(i.options.values()), B = [];
    return i.optionValues.forEach((se) => {
      const me = E.findIndex((Zt) => Zt.value === se);
      me > -1 && B.push(E[me]);
    }), B.length >= E.length ? B : E;
  }), W = computed(() => Array.from(i.cachedOptions.values())), Ee = computed(() => {
    const E = ae.value.filter((B) => !B.created).some((B) => B.currentLabel === i.inputValue);
    return e8.filterable && e8.allowCreate && i.inputValue !== "" && !E;
  }), Ae = () => {
    e8.filterable && Be(e8.filterMethod) || e8.filterable && e8.remote && Be(e8.remoteMethod) || ae.value.forEach((E) => {
      var B;
      (B = E.updateOption) == null || B.call(E, i.inputValue);
    });
  }, _e = nn(), ue = computed(() => ["small"].includes(_e.value) ? "small" : "default"), he = computed({
    get() {
      return $.value && Y.value !== false;
    },
    set(E) {
      $.value = E;
    }
  }), Te = computed(() => {
    if (e8.multiple && !kt(e8.modelValue))
      return rr(e8.modelValue).length === 0 && !i.inputValue;
    const E = Ot(e8.modelValue) ? e8.modelValue[0] : e8.modelValue;
    return e8.filterable || kt(E) ? !i.inputValue : true;
  }), Ue = computed(() => {
    var E;
    const B = (E = e8.placeholder) != null ? E : r("el.select.placeholder");
    return e8.multiple || !k.value ? B : i.selectedLabel;
  }), Ke = computed(() => Go ? null : "mouseenter");
  watch(() => e8.modelValue, (E, B) => {
    e8.multiple && e8.filterable && !e8.reserveKeyword && (i.inputValue = "", Ze("")), Pt(), !ra(E, B) && e8.validateEvent && (R == null || R.validate("change").catch((se) => Ce(se)));
  }, {
    flush: "post",
    deep: true
  }), watch(() => $.value, (E) => {
    E ? Ze(i.inputValue) : (i.inputValue = "", i.previousQuery = null, i.isBeforeHide = true), t("visible-change", E);
  }), watch(() => i.options.entries(), () => {
    var E;
    if (!Fe)
      return;
    const B = ((E = s.value) == null ? void 0 : E.querySelectorAll("input")) || [];
    (!e8.filterable && !e8.defaultFirstOption && !kt(e8.modelValue) || !Array.from(B).includes(document.activeElement)) && Pt(), e8.defaultFirstOption && (e8.filterable || e8.remote) && oe.value && dr();
  }, {
    flush: "post"
  }), watch(() => i.hoveringIndex, (E) => {
    ge(E) && E > -1 ? H.value = ae.value[E] || {} : H.value = {}, ae.value.forEach((B) => {
      B.hover = H.value === B;
    });
  }), watchEffect(() => {
    i.isBeforeHide || Ae();
  });
  const Ze = (E) => {
    i.previousQuery === E || O.value || (i.previousQuery = E, e8.filterable && Be(e8.filterMethod) ? e8.filterMethod(E) : e8.filterable && e8.remote && Be(e8.remoteMethod) && e8.remoteMethod(E), e8.defaultFirstOption && (e8.filterable || e8.remote) && oe.value ? nextTick(dr) : nextTick(ut));
  }, dr = () => {
    const E = ae.value.filter((me) => me.visible && !me.disabled && !me.states.groupDisabled), B = E.find((me) => me.created), se = E[0];
    i.hoveringIndex = hi(ae.value, B || se);
  }, Pt = () => {
    if (e8.multiple)
      i.selectedLabel = "";
    else {
      const B = Ot(e8.modelValue) ? e8.modelValue[0] : e8.modelValue, se = Tr(B);
      i.selectedLabel = se.currentLabel, i.selected = [se];
      return;
    }
    const E = [];
    kt(e8.modelValue) || rr(e8.modelValue).forEach((B) => {
      E.push(Tr(B));
    }), i.selected = E;
  }, Tr = (E) => {
    let B;
    const se = Io(E).toLowerCase() === "object", me = Io(E).toLowerCase() === "null", Zt = Io(E).toLowerCase() === "undefined";
    for (let pr = i.cachedOptions.size - 1; pr >= 0; pr--) {
      const bt = W.value[pr];
      if (se ? Rt(bt.value, e8.valueKey) === Rt(E, e8.valueKey) : bt.value === E) {
        B = {
          value: E,
          currentLabel: bt.currentLabel,
          get isDisabled() {
            return bt.isDisabled;
          }
        };
        break;
      }
    }
    if (B)
      return B;
    const $r = se ? E.label : !me && !Zt ? E : "";
    return {
      value: E,
      currentLabel: $r
    };
  }, ut = () => {
    i.hoveringIndex = ae.value.findIndex((E) => i.selected.some((B) => _o(B) === _o(E)));
  }, Ht = () => {
    i.selectionWidth = u.value.getBoundingClientRect().width;
  }, Wt = () => {
    i.calculatorWidth = d.value.getBoundingClientRect().width;
  }, Pr = () => {
    i.collapseItemWidth = y.value.getBoundingClientRect().width;
  }, gt = () => {
    var E, B;
    (B = (E = l.value) == null ? void 0 : E.updatePopper) == null || B.call(E);
  }, F = () => {
    var E, B;
    (B = (E = f.value) == null ? void 0 : E.updatePopper) == null || B.call(E);
  }, de = () => {
    i.inputValue.length > 0 && !$.value && ($.value = true), Ze(i.inputValue);
  }, tt = (E) => {
    if (i.inputValue = E.target.value, e8.remote)
      qt();
    else
      return de();
  }, qt = ta(() => {
    de();
  }, j.value), Kt = (E) => {
    ra(e8.modelValue, E) || t(tn, E);
  }, Af = (E) => gm(E, (B) => !i.disabledOptions.has(B)), _f = (E) => {
    if (e8.multiple && E.code !== Hr.delete && E.target.value.length <= 0) {
      const B = rr(e8.modelValue).slice(), se = Af(B);
      if (se < 0)
        return;
      const me = B[se];
      B.splice(se, 1), t(Pe, B), Kt(B), t("remove-tag", me);
    }
  }, If = (E, B) => {
    const se = i.selected.indexOf(B);
    if (se > -1 && !A.value) {
      const me = rr(e8.modelValue).slice();
      me.splice(se, 1), t(Pe, me), Kt(me), t("remove-tag", B.value);
    }
    E.stopPropagation(), $n();
  }, vi = (E) => {
    E.stopPropagation();
    const B = e8.multiple ? [] : X.value;
    if (e8.multiple)
      for (const se of i.selected)
        se.isDisabled && B.push(se.value);
    t(Pe, B), Kt(B), i.hoveringIndex = -1, $.value = false, t("clear"), $n();
  }, mi = (E) => {
    var B;
    if (e8.multiple) {
      const se = rr((B = e8.modelValue) != null ? B : []).slice(), me = hi(se, E.value);
      me > -1 ? se.splice(me, 1) : (e8.multipleLimit <= 0 || se.length < e8.multipleLimit) && se.push(E.value), t(Pe, se), Kt(se), E.created && Ze(""), e8.filterable && !e8.reserveKeyword && (i.inputValue = "");
    } else
      t(Pe, E.value), Kt(E.value), $.value = false;
    $n(), !$.value && nextTick(() => {
      Pn(E);
    });
  }, hi = (E = [], B) => {
    if (!Ge(B))
      return E.indexOf(B);
    const se = e8.valueKey;
    let me = -1;
    return E.some((Zt, $r) => toRaw(Rt(Zt, se)) === Rt(B, se) ? (me = $r, true) : false), me;
  }, Pn = (E) => {
    var B, se, me, Zt, $r;
    const Fn = Ot(E) ? E[0] : E;
    let pr = null;
    if (Fn != null && Fn.value) {
      const bt = ae.value.filter((wi) => wi.value === Fn.value);
      bt.length > 0 && (pr = bt[0].$el);
    }
    if (l.value && pr) {
      const bt = (Zt = (me = (se = (B = l.value) == null ? void 0 : B.popperRef) == null ? void 0 : se.contentRef) == null ? void 0 : me.querySelector) == null ? void 0 : Zt.call(me, `.${o.be("dropdown", "wrap")}`);
      bt && Cm(bt, pr);
    }
    ($r = b.value) == null || $r.handleScroll();
  }, Cf = (E) => {
    i.options.set(E.value, E), i.cachedOptions.set(E.value, E), E.disabled && i.disabledOptions.set(E.value, E);
  }, xf = (E, B) => {
    i.options.get(E) === B && i.options.delete(E);
  }, Tf = computed(() => {
    var E, B;
    return (B = (E = l.value) == null ? void 0 : E.popperRef) == null ? void 0 : B.contentRef;
  }), Pf = () => {
    i.isBeforeHide = false, nextTick(() => Pn(i.selected));
  }, $n = () => {
    var E;
    (E = c.value) == null || E.focus();
  }, yi = () => {
    var E;
    (E = c.value) == null || E.blur();
  }, $f = (E) => {
    vi(E);
  }, Ff = () => {
    $.value = false, V.value && yi();
  }, Mf = () => {
    i.inputValue.length > 0 ? i.inputValue = "" : $.value = false;
  }, gi = () => {
    A.value || (Go && (i.inputHovering = true), i.menuVisibleOnFocus ? i.menuVisibleOnFocus = false : $.value = !$.value);
  }, Vf = () => {
    $.value ? ae.value[i.hoveringIndex] && mi(ae.value[i.hoveringIndex]) : gi();
  }, _o = (E) => Ge(E.value) ? Rt(E.value, e8.valueKey) : E.value, Rf = computed(() => ae.value.filter((E) => E.visible).every((E) => E.disabled)), Nf = computed(() => e8.multiple ? e8.collapseTags ? i.selected.slice(0, e8.maxCollapseTags) : i.selected : []), kf = computed(() => e8.multiple ? e8.collapseTags ? i.selected.slice(e8.maxCollapseTags) : [] : []), bi = (E) => {
    if (!$.value) {
      $.value = true;
      return;
    }
    if (!(i.options.size === 0 || i.filteredOptionsCount === 0 || O.value) && !Rf.value) {
      E === "next" ? (i.hoveringIndex++, i.hoveringIndex === i.options.size && (i.hoveringIndex = 0)) : E === "prev" && (i.hoveringIndex--, i.hoveringIndex < 0 && (i.hoveringIndex = i.options.size - 1));
      const B = ae.value[i.hoveringIndex];
      (B.disabled === true || B.states.groupDisabled === true || !B.visible) && bi(E), nextTick(() => Pn(H.value));
    }
  }, Lf = () => {
    if (!u.value)
      return 0;
    const E = window.getComputedStyle(u.value);
    return Number.parseFloat(E.gap || "6px");
  }, zf = computed(() => {
    const E = Lf();
    return { maxWidth: `${y.value && e8.maxCollapseTags === 1 ? i.selectionWidth - i.collapseItemWidth - E : i.selectionWidth}px` };
  }), Bf = computed(() => ({ maxWidth: `${i.selectionWidth}px` })), Df = computed(() => ({
    width: `${Math.max(i.calculatorWidth, Q0)}px`
  }));
  return Mt(u, Ht), Mt(d, Wt), Mt(m, gt), Mt(T, gt), Mt(g, F), Mt(y, Pr), onMounted(() => {
    Pt();
  }), {
    inputId: z,
    contentId: n,
    nsSelect: o,
    nsInput: a,
    states: i,
    isFocused: V,
    expanded: $,
    optionsArray: ae,
    hoverOption: H,
    selectSize: _e,
    filteredOptionsCount: oe,
    resetCalculatorWidth: Wt,
    updateTooltip: gt,
    updateTagTooltip: F,
    debouncedOnInputChange: qt,
    onInput: tt,
    deletePrevTag: _f,
    deleteTag: If,
    deleteSelected: vi,
    handleOptionSelect: mi,
    scrollToOption: Pn,
    hasModelValue: k,
    shouldShowPlaceholder: Te,
    currentPlaceholder: Ue,
    mouseEnterEventName: Ke,
    showClose: Q,
    iconComponent: K,
    iconReverse: P,
    validateState: U,
    validateIcon: M,
    showNewOption: Ee,
    updateOptions: Ae,
    collapseTagSize: ue,
    setSelected: Pt,
    selectDisabled: A,
    emptyText: Y,
    handleCompositionStart: I,
    handleCompositionUpdate: S,
    handleCompositionEnd: x,
    onOptionCreate: Cf,
    onOptionDestroy: xf,
    handleMenuEnter: Pf,
    focus: $n,
    blur: yi,
    handleClearClick: $f,
    handleClickOutside: Ff,
    handleEsc: Mf,
    toggleMenu: gi,
    selectOption: Vf,
    getValueKey: _o,
    navigateOptions: bi,
    dropdownMenuVisible: he,
    showTagList: Nf,
    collapseTagList: kf,
    tagStyle: zf,
    collapseTagStyle: Bf,
    inputStyle: Df,
    popperRef: Tf,
    inputRef: c,
    tooltipRef: l,
    tagTooltipRef: f,
    calculatorRef: d,
    prefixRef: h2,
    suffixRef: v,
    selectRef: s,
    wrapperRef: T,
    selectionRef: u,
    scrollbarRef: b,
    menuRef: m,
    tagMenuRef: g,
    collapseItemRef: y
  };
};
var tb = defineComponent({
  name: "ElOptions",
  setup(e8, { slots: t }) {
    const r = inject(Oo);
    let n = [];
    return () => {
      var o, a;
      const i = (o = t.default) == null ? void 0 : o.call(t), s = [];
      function u(l) {
        Ot(l) && l.forEach((f) => {
          var c, d, h2, v;
          const m = (c = (f == null ? void 0 : f.type) || {}) == null ? void 0 : c.name;
          m === "ElOptionGroup" ? u(!Qe(f.children) && !Ot(f.children) && Be((d = f.children) == null ? void 0 : d.default) ? (h2 = f.children) == null ? void 0 : h2.default() : f.children) : m === "ElOption" ? s.push((v = f.props) == null ? void 0 : v.value) : Ot(f.children) && u(f.children);
        });
      }
      return i.length && u((a = i[0]) == null ? void 0 : a.children), ra(s, n) || (n = s, r && (r.states.optionValues = s)), i;
    };
  }
});
var rb = we({
  name: String,
  id: String,
  modelValue: {
    type: [Array, String, Number, Boolean, Object],
    default: void 0
  },
  autocomplete: {
    type: String,
    default: "off"
  },
  automaticDropdown: Boolean,
  size: Jr,
  effect: {
    type: ie(String),
    default: "light"
  },
  disabled: Boolean,
  clearable: Boolean,
  filterable: Boolean,
  allowCreate: Boolean,
  loading: Boolean,
  popperClass: {
    type: String,
    default: ""
  },
  popperOptions: {
    type: ie(Object),
    default: () => ({})
  },
  remote: Boolean,
  loadingText: String,
  noMatchText: String,
  noDataText: String,
  remoteMethod: Function,
  filterMethod: Function,
  multiple: Boolean,
  multipleLimit: {
    type: Number,
    default: 0
  },
  placeholder: {
    type: String
  },
  defaultFirstOption: Boolean,
  reserveKeyword: {
    type: Boolean,
    default: true
  },
  valueKey: {
    type: String,
    default: "value"
  },
  collapseTags: Boolean,
  collapseTagsTooltip: Boolean,
  maxCollapseTags: {
    type: Number,
    default: 1
  },
  teleported: Xa.teleported,
  persistent: {
    type: Boolean,
    default: true
  },
  clearIcon: {
    type: jr,
    default: Ma
  },
  fitInputWidth: Boolean,
  suffixIcon: {
    type: jr,
    default: jl
  },
  tagType: { ...ua.type, default: "info" },
  tagEffect: { ...ua.effect, default: "light" },
  validateEvent: {
    type: Boolean,
    default: true
  },
  remoteShowSuffix: Boolean,
  placement: {
    type: ie(String),
    values: rn,
    default: "bottom-start"
  },
  fallbackPlacements: {
    type: ie(Array),
    default: ["bottom-start", "top-start", "right", "left"]
  },
  appendTo: String,
  ...Ey,
  ...Cr(["ariaLabel"])
});
var Ns = "ElSelect";
var nb = defineComponent({
  name: Ns,
  componentName: Ns,
  components: {
    ElSelectMenu: X0,
    ElOption: ei,
    ElOptions: tb,
    ElTag: k0,
    ElScrollbar: eg,
    ElTooltip: Cu,
    ElIcon: rt
  },
  directives: { ClickOutside: P0 },
  props: rb,
  emits: [
    Pe,
    tn,
    "remove-tag",
    "clear",
    "visible-change",
    "focus",
    "blur"
  ],
  setup(e8, { emit: t }) {
    const r = computed(() => {
      const { modelValue: a, multiple: i } = e8, s = i ? [] : void 0;
      return Ot(a) ? i ? a : s : i ? s : a;
    }), n = reactive({
      ...toRefs(e8),
      modelValue: r
    }), o = eb(n, t);
    return provide(Oo, reactive({
      props: n,
      states: o.states,
      optionsArray: o.optionsArray,
      handleOptionSelect: o.handleOptionSelect,
      onOptionCreate: o.onOptionCreate,
      onOptionDestroy: o.onOptionDestroy,
      selectRef: o.selectRef,
      setSelected: o.setSelected
    })), {
      ...o,
      modelValue: r
    };
  }
});
function ob(e8, t, r, n, o, a) {
  const i = resolveComponent("el-tag"), s = resolveComponent("el-tooltip"), u = resolveComponent("el-icon"), l = resolveComponent("el-option"), f = resolveComponent("el-options"), c = resolveComponent("el-scrollbar"), d = resolveComponent("el-select-menu"), h2 = resolveDirective("click-outside");
  return withDirectives((openBlock(), createElementBlock("div", {
    ref: "selectRef",
    class: normalizeClass([e8.nsSelect.b(), e8.nsSelect.m(e8.selectSize)]),
    [toHandlerKey(e8.mouseEnterEventName)]: (v) => e8.states.inputHovering = true,
    onMouseleave: (v) => e8.states.inputHovering = false
  }, [
    createVNode(s, {
      ref: "tooltipRef",
      visible: e8.dropdownMenuVisible,
      placement: e8.placement,
      teleported: e8.teleported,
      "popper-class": [e8.nsSelect.e("popper"), e8.popperClass],
      "popper-options": e8.popperOptions,
      "fallback-placements": e8.fallbackPlacements,
      effect: e8.effect,
      pure: "",
      trigger: "click",
      transition: `${e8.nsSelect.namespace.value}-zoom-in-top`,
      "stop-popper-mouse-event": false,
      "gpu-acceleration": false,
      persistent: e8.persistent,
      "append-to": e8.appendTo,
      onBeforeShow: e8.handleMenuEnter,
      onHide: (v) => e8.states.isBeforeHide = false
    }, {
      default: withCtx(() => {
        var v;
        return [
          createBaseVNode("div", {
            ref: "wrapperRef",
            class: normalizeClass([
              e8.nsSelect.e("wrapper"),
              e8.nsSelect.is("focused", e8.isFocused),
              e8.nsSelect.is("hovering", e8.states.inputHovering),
              e8.nsSelect.is("filterable", e8.filterable),
              e8.nsSelect.is("disabled", e8.selectDisabled)
            ]),
            onClick: withModifiers(e8.toggleMenu, ["prevent"])
          }, [
            e8.$slots.prefix ? (openBlock(), createElementBlock("div", {
              key: 0,
              ref: "prefixRef",
              class: normalizeClass(e8.nsSelect.e("prefix"))
            }, [
              renderSlot(e8.$slots, "prefix")
            ], 2)) : createCommentVNode("v-if", true),
            createBaseVNode("div", {
              ref: "selectionRef",
              class: normalizeClass([
                e8.nsSelect.e("selection"),
                e8.nsSelect.is("near", e8.multiple && !e8.$slots.prefix && !!e8.states.selected.length)
              ])
            }, [
              e8.multiple ? renderSlot(e8.$slots, "tag", { key: 0 }, () => [
                (openBlock(true), createElementBlock(Fragment, null, renderList(e8.showTagList, (m) => (openBlock(), createElementBlock("div", {
                  key: e8.getValueKey(m),
                  class: normalizeClass(e8.nsSelect.e("selected-item"))
                }, [
                  createVNode(i, {
                    closable: !e8.selectDisabled && !m.isDisabled,
                    size: e8.collapseTagSize,
                    type: e8.tagType,
                    effect: e8.tagEffect,
                    "disable-transitions": "",
                    style: normalizeStyle(e8.tagStyle),
                    onClose: (g) => e8.deleteTag(g, m)
                  }, {
                    default: withCtx(() => [
                      createBaseVNode("span", {
                        class: normalizeClass(e8.nsSelect.e("tags-text"))
                      }, [
                        renderSlot(e8.$slots, "label", {
                          label: m.currentLabel,
                          value: m.value
                        }, () => [
                          createTextVNode(toDisplayString(m.currentLabel), 1)
                        ])
                      ], 2)
                    ]),
                    _: 2
                  }, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
                ], 2))), 128)),
                e8.collapseTags && e8.states.selected.length > e8.maxCollapseTags ? (openBlock(), createBlock(s, {
                  key: 0,
                  ref: "tagTooltipRef",
                  disabled: e8.dropdownMenuVisible || !e8.collapseTagsTooltip,
                  "fallback-placements": ["bottom", "top", "right", "left"],
                  effect: e8.effect,
                  placement: "bottom",
                  teleported: e8.teleported
                }, {
                  default: withCtx(() => [
                    createBaseVNode("div", {
                      ref: "collapseItemRef",
                      class: normalizeClass(e8.nsSelect.e("selected-item"))
                    }, [
                      createVNode(i, {
                        closable: false,
                        size: e8.collapseTagSize,
                        type: e8.tagType,
                        effect: e8.tagEffect,
                        "disable-transitions": "",
                        style: normalizeStyle(e8.collapseTagStyle)
                      }, {
                        default: withCtx(() => [
                          createBaseVNode("span", {
                            class: normalizeClass(e8.nsSelect.e("tags-text"))
                          }, " + " + toDisplayString(e8.states.selected.length - e8.maxCollapseTags), 3)
                        ]),
                        _: 1
                      }, 8, ["size", "type", "effect", "style"])
                    ], 2)
                  ]),
                  content: withCtx(() => [
                    createBaseVNode("div", {
                      ref: "tagMenuRef",
                      class: normalizeClass(e8.nsSelect.e("selection"))
                    }, [
                      (openBlock(true), createElementBlock(Fragment, null, renderList(e8.collapseTagList, (m) => (openBlock(), createElementBlock("div", {
                        key: e8.getValueKey(m),
                        class: normalizeClass(e8.nsSelect.e("selected-item"))
                      }, [
                        createVNode(i, {
                          class: "in-tooltip",
                          closable: !e8.selectDisabled && !m.isDisabled,
                          size: e8.collapseTagSize,
                          type: e8.tagType,
                          effect: e8.tagEffect,
                          "disable-transitions": "",
                          onClose: (g) => e8.deleteTag(g, m)
                        }, {
                          default: withCtx(() => [
                            createBaseVNode("span", {
                              class: normalizeClass(e8.nsSelect.e("tags-text"))
                            }, [
                              renderSlot(e8.$slots, "label", {
                                label: m.currentLabel,
                                value: m.value
                              }, () => [
                                createTextVNode(toDisplayString(m.currentLabel), 1)
                              ])
                            ], 2)
                          ]),
                          _: 2
                        }, 1032, ["closable", "size", "type", "effect", "onClose"])
                      ], 2))), 128))
                    ], 2)
                  ]),
                  _: 3
                }, 8, ["disabled", "effect", "teleported"])) : createCommentVNode("v-if", true)
              ]) : createCommentVNode("v-if", true),
              e8.selectDisabled ? createCommentVNode("v-if", true) : (openBlock(), createElementBlock("div", {
                key: 1,
                class: normalizeClass([
                  e8.nsSelect.e("selected-item"),
                  e8.nsSelect.e("input-wrapper"),
                  e8.nsSelect.is("hidden", !e8.filterable)
                ])
              }, [
                withDirectives(createBaseVNode("input", {
                  id: e8.inputId,
                  ref: "inputRef",
                  "onUpdate:modelValue": (m) => e8.states.inputValue = m,
                  type: "text",
                  name: e8.name,
                  class: normalizeClass([e8.nsSelect.e("input"), e8.nsSelect.is(e8.selectSize)]),
                  disabled: e8.selectDisabled,
                  autocomplete: e8.autocomplete,
                  style: normalizeStyle(e8.inputStyle),
                  role: "combobox",
                  readonly: !e8.filterable,
                  spellcheck: "false",
                  "aria-activedescendant": ((v = e8.hoverOption) == null ? void 0 : v.id) || "",
                  "aria-controls": e8.contentId,
                  "aria-expanded": e8.dropdownMenuVisible,
                  "aria-label": e8.ariaLabel,
                  "aria-autocomplete": "none",
                  "aria-haspopup": "listbox",
                  onKeydown: [
                    withKeys(withModifiers((m) => e8.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
                    withKeys(withModifiers((m) => e8.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
                    withKeys(withModifiers(e8.handleEsc, ["stop", "prevent"]), ["esc"]),
                    withKeys(withModifiers(e8.selectOption, ["stop", "prevent"]), ["enter"]),
                    withKeys(withModifiers(e8.deletePrevTag, ["stop"]), ["delete"])
                  ],
                  onCompositionstart: e8.handleCompositionStart,
                  onCompositionupdate: e8.handleCompositionUpdate,
                  onCompositionend: e8.handleCompositionEnd,
                  onInput: e8.onInput,
                  onClick: withModifiers(e8.toggleMenu, ["stop"])
                }, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
                  [vModelText, e8.states.inputValue]
                ]),
                e8.filterable ? (openBlock(), createElementBlock("span", {
                  key: 0,
                  ref: "calculatorRef",
                  "aria-hidden": "true",
                  class: normalizeClass(e8.nsSelect.e("input-calculator")),
                  textContent: toDisplayString(e8.states.inputValue)
                }, null, 10, ["textContent"])) : createCommentVNode("v-if", true)
              ], 2)),
              e8.shouldShowPlaceholder ? (openBlock(), createElementBlock("div", {
                key: 2,
                class: normalizeClass([
                  e8.nsSelect.e("selected-item"),
                  e8.nsSelect.e("placeholder"),
                  e8.nsSelect.is("transparent", !e8.hasModelValue || e8.expanded && !e8.states.inputValue)
                ])
              }, [
                e8.hasModelValue ? renderSlot(e8.$slots, "label", {
                  key: 0,
                  label: e8.currentPlaceholder,
                  value: e8.modelValue
                }, () => [
                  createBaseVNode("span", null, toDisplayString(e8.currentPlaceholder), 1)
                ]) : (openBlock(), createElementBlock("span", { key: 1 }, toDisplayString(e8.currentPlaceholder), 1))
              ], 2)) : createCommentVNode("v-if", true)
            ], 2),
            createBaseVNode("div", {
              ref: "suffixRef",
              class: normalizeClass(e8.nsSelect.e("suffix"))
            }, [
              e8.iconComponent && !e8.showClose ? (openBlock(), createBlock(u, {
                key: 0,
                class: normalizeClass([e8.nsSelect.e("caret"), e8.nsSelect.e("icon"), e8.iconReverse])
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(e8.iconComponent)))
                ]),
                _: 1
              }, 8, ["class"])) : createCommentVNode("v-if", true),
              e8.showClose && e8.clearIcon ? (openBlock(), createBlock(u, {
                key: 1,
                class: normalizeClass([
                  e8.nsSelect.e("caret"),
                  e8.nsSelect.e("icon"),
                  e8.nsSelect.e("clear")
                ]),
                onClick: e8.handleClearClick
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(e8.clearIcon)))
                ]),
                _: 1
              }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true),
              e8.validateState && e8.validateIcon ? (openBlock(), createBlock(u, {
                key: 2,
                class: normalizeClass([e8.nsInput.e("icon"), e8.nsInput.e("validateIcon")])
              }, {
                default: withCtx(() => [
                  (openBlock(), createBlock(resolveDynamicComponent(e8.validateIcon)))
                ]),
                _: 1
              }, 8, ["class"])) : createCommentVNode("v-if", true)
            ], 2)
          ], 10, ["onClick"])
        ];
      }),
      content: withCtx(() => [
        createVNode(d, { ref: "menuRef" }, {
          default: withCtx(() => [
            e8.$slots.header ? (openBlock(), createElementBlock("div", {
              key: 0,
              class: normalizeClass(e8.nsSelect.be("dropdown", "header")),
              onClick: withModifiers(() => {
              }, ["stop"])
            }, [
              renderSlot(e8.$slots, "header")
            ], 10, ["onClick"])) : createCommentVNode("v-if", true),
            withDirectives(createVNode(c, {
              id: e8.contentId,
              ref: "scrollbarRef",
              tag: "ul",
              "wrap-class": e8.nsSelect.be("dropdown", "wrap"),
              "view-class": e8.nsSelect.be("dropdown", "list"),
              class: normalizeClass([e8.nsSelect.is("empty", e8.filteredOptionsCount === 0)]),
              role: "listbox",
              "aria-label": e8.ariaLabel,
              "aria-orientation": "vertical"
            }, {
              default: withCtx(() => [
                e8.showNewOption ? (openBlock(), createBlock(l, {
                  key: 0,
                  value: e8.states.inputValue,
                  created: true
                }, null, 8, ["value"])) : createCommentVNode("v-if", true),
                createVNode(f, null, {
                  default: withCtx(() => [
                    renderSlot(e8.$slots, "default")
                  ]),
                  _: 3
                })
              ]),
              _: 3
            }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
              [vShow, e8.states.options.size > 0 && !e8.loading]
            ]),
            e8.$slots.loading && e8.loading ? (openBlock(), createElementBlock("div", {
              key: 1,
              class: normalizeClass(e8.nsSelect.be("dropdown", "loading"))
            }, [
              renderSlot(e8.$slots, "loading")
            ], 2)) : e8.loading || e8.filteredOptionsCount === 0 ? (openBlock(), createElementBlock("div", {
              key: 2,
              class: normalizeClass(e8.nsSelect.be("dropdown", "empty"))
            }, [
              renderSlot(e8.$slots, "empty", {}, () => [
                createBaseVNode("span", null, toDisplayString(e8.emptyText), 1)
              ])
            ], 2)) : createCommentVNode("v-if", true),
            e8.$slots.footer ? (openBlock(), createElementBlock("div", {
              key: 3,
              class: normalizeClass(e8.nsSelect.be("dropdown", "footer")),
              onClick: withModifiers(() => {
              }, ["stop"])
            }, [
              renderSlot(e8.$slots, "footer")
            ], 10, ["onClick"])) : createCommentVNode("v-if", true)
          ]),
          _: 3
        }, 512)
      ]),
      _: 3
    }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "onBeforeShow", "onHide"])
  ], 16, ["onMouseleave"])), [
    [h2, e8.handleClickOutside, e8.popperRef]
  ]);
}
var ab = Se(nb, [["render", ob], ["__file", "select.vue"]]);
var ib = defineComponent({
  name: "ElOptionGroup",
  componentName: "ElOptionGroup",
  props: {
    label: String,
    disabled: Boolean
  },
  setup(e8) {
    const t = be("select"), r = ref(null), n = getCurrentInstance(), o = ref([]);
    provide(Mu, reactive({
      ...toRefs(e8)
    }));
    const a = computed(() => o.value.some((l) => l.visible === true)), i = (l) => {
      var f, c;
      return ((f = l.type) == null ? void 0 : f.name) === "ElOption" && !!((c = l.component) != null && c.proxy);
    }, s = (l) => {
      const f = rr(l), c = [];
      return f.forEach((d) => {
        var h2, v;
        i(d) ? c.push(d.component.proxy) : (h2 = d.children) != null && h2.length ? c.push(...s(d.children)) : (v = d.component) != null && v.subTree && c.push(...s(d.component.subTree));
      }), c;
    }, u = () => {
      o.value = s(n.subTree);
    };
    return onMounted(() => {
      u();
    }), bc(r, u, {
      attributes: true,
      subtree: true,
      childList: true
    }), {
      groupRef: r,
      visible: a,
      ns: t
    };
  }
});
function sb(e8, t, r, n, o, a) {
  return withDirectives((openBlock(), createElementBlock("ul", {
    ref: "groupRef",
    class: normalizeClass(e8.ns.be("group", "wrap"))
  }, [
    createBaseVNode("li", {
      class: normalizeClass(e8.ns.be("group", "title"))
    }, toDisplayString(e8.label), 3),
    createBaseVNode("li", null, [
      createBaseVNode("ul", {
        class: normalizeClass(e8.ns.b("group"))
      }, [
        renderSlot(e8.$slots, "default")
      ], 2)
    ])
  ], 2)), [
    [vShow, e8.visible]
  ]);
}
var Vu = Se(ib, [["render", sb], ["__file", "option-group.vue"]]);
var Ru = lt(ab, {
  Option: ei,
  OptionGroup: Vu
});
var Nu = Va(ei);
Va(Vu);
var ku = Symbol("sliderContextKey");
var lb = we({
  modelValue: {
    type: ie([Number, Array]),
    default: 0
  },
  id: {
    type: String,
    default: void 0
  },
  min: {
    type: Number,
    default: 0
  },
  max: {
    type: Number,
    default: 100
  },
  step: {
    type: Number,
    default: 1
  },
  showInput: Boolean,
  showInputControls: {
    type: Boolean,
    default: true
  },
  size: Jr,
  inputSize: Jr,
  showStops: Boolean,
  showTooltip: {
    type: Boolean,
    default: true
  },
  formatTooltip: {
    type: ie(Function),
    default: void 0
  },
  disabled: Boolean,
  range: Boolean,
  vertical: Boolean,
  height: String,
  debounce: {
    type: Number,
    default: 300
  },
  rangeStartLabel: {
    type: String,
    default: void 0
  },
  rangeEndLabel: {
    type: String,
    default: void 0
  },
  formatValueText: {
    type: ie(Function),
    default: void 0
  },
  tooltipClass: {
    type: String,
    default: void 0
  },
  placement: {
    type: String,
    values: rn,
    default: "top"
  },
  marks: {
    type: ie(Object)
  },
  validateEvent: {
    type: Boolean,
    default: true
  },
  ...Cr(["ariaLabel"])
});
var ko = (e8) => ge(e8) || Ot(e8) && e8.every(ge);
var ub = {
  [Pe]: ko,
  [gr]: ko,
  [tn]: ko
};
var fb = (e8, t, r) => {
  const n = ref();
  return onMounted(async () => {
    e8.range ? (Array.isArray(e8.modelValue) ? (t.firstValue = Math.max(e8.min, e8.modelValue[0]), t.secondValue = Math.min(e8.max, e8.modelValue[1])) : (t.firstValue = e8.min, t.secondValue = e8.max), t.oldValue = [t.firstValue, t.secondValue]) : (typeof e8.modelValue != "number" || Number.isNaN(e8.modelValue) ? t.firstValue = e8.min : t.firstValue = Math.min(e8.max, Math.max(e8.min, e8.modelValue)), t.oldValue = t.firstValue), je(window, "resize", r), await nextTick(), r();
  }), {
    sliderWrapper: n
  };
};
var cb = (e8) => computed(() => e8.marks ? Object.keys(e8.marks).map(Number.parseFloat).sort((r, n) => r - n).filter((r) => r <= e8.max && r >= e8.min).map((r) => ({
  point: r,
  position: (r - e8.min) * 100 / (e8.max - e8.min),
  mark: e8.marks[r]
})) : []);
var db = (e8, t, r) => {
  const { form: n, formItem: o } = In(), a = shallowRef(), i = ref(), s = ref(), u = {
    firstButton: i,
    secondButton: s
  }, l = computed(() => e8.disabled || (n == null ? void 0 : n.disabled) || false), f = computed(() => Math.min(t.firstValue, t.secondValue)), c = computed(() => Math.max(t.firstValue, t.secondValue)), d = computed(() => e8.range ? `${100 * (c.value - f.value) / (e8.max - e8.min)}%` : `${100 * (t.firstValue - e8.min) / (e8.max - e8.min)}%`), h2 = computed(() => e8.range ? `${100 * (f.value - e8.min) / (e8.max - e8.min)}%` : "0%"), v = computed(() => e8.vertical ? { height: e8.height } : {}), m = computed(() => e8.vertical ? {
    height: d.value,
    bottom: h2.value
  } : {
    width: d.value,
    left: h2.value
  }), g = () => {
    a.value && (t.sliderSize = a.value[`client${e8.vertical ? "Height" : "Width"}`]);
  }, y = (R) => {
    const z = e8.min + R * (e8.max - e8.min) / 100;
    if (!e8.range)
      return i;
    let X;
    return Math.abs(f.value - z) < Math.abs(c.value - z) ? X = t.firstValue < t.secondValue ? "firstButton" : "secondButton" : X = t.firstValue > t.secondValue ? "firstButton" : "secondButton", u[X];
  }, b = (R) => {
    const z = y(R);
    return z.value.setPosition(R), z;
  }, O = (R) => {
    t.firstValue = R ?? e8.min, S(e8.range ? [f.value, c.value] : R ?? e8.min);
  }, I = (R) => {
    t.secondValue = R, e8.range && S([f.value, c.value]);
  }, S = (R) => {
    r(Pe, R), r(gr, R);
  }, x = async () => {
    await nextTick(), r(tn, e8.range ? [f.value, c.value] : e8.modelValue);
  }, T = (R) => {
    var z, X, _, A, k, Q;
    if (l.value || t.dragging)
      return;
    g();
    let K = 0;
    if (e8.vertical) {
      const P = (_ = (X = (z = R.touches) == null ? void 0 : z.item(0)) == null ? void 0 : X.clientY) != null ? _ : R.clientY;
      K = (a.value.getBoundingClientRect().bottom - P) / t.sliderSize * 100;
    } else {
      const P = (Q = (k = (A = R.touches) == null ? void 0 : A.item(0)) == null ? void 0 : k.clientX) != null ? Q : R.clientX, U = a.value.getBoundingClientRect().left;
      K = (P - U) / t.sliderSize * 100;
    }
    if (!(K < 0 || K > 100))
      return b(K);
  };
  return {
    elFormItem: o,
    slider: a,
    firstButton: i,
    secondButton: s,
    sliderDisabled: l,
    minValue: f,
    maxValue: c,
    runwayStyle: v,
    barStyle: m,
    resetSize: g,
    setPosition: b,
    emitChange: x,
    onSliderWrapperPrevent: (R) => {
      var z, X;
      ((z = u.firstButton.value) != null && z.dragging || (X = u.secondButton.value) != null && X.dragging) && R.preventDefault();
    },
    onSliderClick: (R) => {
      T(R) && x();
    },
    onSliderDown: async (R) => {
      const z = T(R);
      z && (await nextTick(), z.value.onButtonDown(R));
    },
    onSliderMarkerDown: (R) => {
      l.value || t.dragging || b(R);
    },
    setFirstValue: O,
    setSecondValue: I
  };
};
var { left: pb, down: vb, right: mb, up: hb, home: yb, end: gb, pageUp: bb, pageDown: wb } = Hr;
var Sb = (e8, t, r) => {
  const n = ref(), o = ref(false), a = computed(() => t.value instanceof Function), i = computed(() => a.value && t.value(e8.modelValue) || e8.modelValue), s = ta(() => {
    r.value && (o.value = true);
  }, 50), u = ta(() => {
    r.value && (o.value = false);
  }, 50);
  return {
    tooltip: n,
    tooltipVisible: o,
    formatValue: i,
    displayTooltip: s,
    hideTooltip: u
  };
};
var Eb = (e8, t, r) => {
  const {
    disabled: n,
    min: o,
    max: a,
    step: i,
    showTooltip: s,
    precision: u,
    sliderSize: l,
    formatTooltip: f,
    emitChange: c,
    resetSize: d,
    updateDragging: h2
  } = inject(ku), { tooltip: v, tooltipVisible: m, formatValue: g, displayTooltip: y, hideTooltip: b } = Sb(e8, f, s), O = ref(), I = computed(() => `${(e8.modelValue - o.value) / (a.value - o.value) * 100}%`), S = computed(() => e8.vertical ? { bottom: I.value } : { left: I.value }), x = () => {
    t.hovering = true, y();
  }, T = () => {
    t.hovering = false, t.dragging || b();
  }, V = (M) => {
    n.value || (M.preventDefault(), Q(M), window.addEventListener("mousemove", K), window.addEventListener("touchmove", K), window.addEventListener("mouseup", P), window.addEventListener("touchend", P), window.addEventListener("contextmenu", P), O.value.focus());
  }, $ = (M) => {
    n.value || (t.newPosition = Number.parseFloat(I.value) + M / (a.value - o.value) * 100, U(t.newPosition), c());
  }, H = () => {
    $(-i.value);
  }, J = () => {
    $(i.value);
  }, R = () => {
    $(-i.value * 4);
  }, z = () => {
    $(i.value * 4);
  }, X = () => {
    n.value || (U(0), c());
  }, _ = () => {
    n.value || (U(100), c());
  }, A = (M) => {
    let j = true;
    [pb, vb].includes(M.key) ? H() : [mb, hb].includes(M.key) ? J() : M.key === yb ? X() : M.key === gb ? _() : M.key === wb ? R() : M.key === bb ? z() : j = false, j && M.preventDefault();
  }, k = (M) => {
    let j, Y;
    return M.type.startsWith("touch") ? (Y = M.touches[0].clientY, j = M.touches[0].clientX) : (Y = M.clientY, j = M.clientX), {
      clientX: j,
      clientY: Y
    };
  }, Q = (M) => {
    t.dragging = true, t.isClick = true;
    const { clientX: j, clientY: Y } = k(M);
    e8.vertical ? t.startY = Y : t.startX = j, t.startPosition = Number.parseFloat(I.value), t.newPosition = t.startPosition;
  }, K = (M) => {
    if (t.dragging) {
      t.isClick = false, y(), d();
      let j;
      const { clientX: Y, clientY: oe } = k(M);
      e8.vertical ? (t.currentY = oe, j = (t.startY - t.currentY) / l.value * 100) : (t.currentX = Y, j = (t.currentX - t.startX) / l.value * 100), t.newPosition = t.startPosition + j, U(t.newPosition);
    }
  }, P = () => {
    t.dragging && (setTimeout(() => {
      t.dragging = false, t.hovering || b(), t.isClick || U(t.newPosition), c();
    }, 0), window.removeEventListener("mousemove", K), window.removeEventListener("touchmove", K), window.removeEventListener("mouseup", P), window.removeEventListener("touchend", P), window.removeEventListener("contextmenu", P));
  }, U = async (M) => {
    if (M === null || Number.isNaN(+M))
      return;
    M < 0 ? M = 0 : M > 100 && (M = 100);
    const j = 100 / ((a.value - o.value) / i.value);
    let oe = Math.round(M / j) * j * (a.value - o.value) * 0.01 + o.value;
    oe = Number.parseFloat(oe.toFixed(u.value)), oe !== e8.modelValue && r(Pe, oe), !t.dragging && e8.modelValue !== t.oldValue && (t.oldValue = e8.modelValue), await nextTick(), t.dragging && y(), v.value.updatePopper();
  };
  return watch(() => t.dragging, (M) => {
    h2(M);
  }), je(O, "touchstart", V, { passive: false }), {
    disabled: n,
    button: O,
    tooltip: v,
    tooltipVisible: m,
    showTooltip: s,
    wrapperStyle: S,
    formatValue: g,
    handleMouseEnter: x,
    handleMouseLeave: T,
    onButtonDown: V,
    onKeyDown: A,
    setPosition: U
  };
};
var Ob = (e8, t, r, n) => ({
  stops: computed(() => {
    if (!e8.showStops || e8.min > e8.max)
      return [];
    if (e8.step === 0)
      return Ce("ElSlider", "step should not be 0."), [];
    const i = (e8.max - e8.min) / e8.step, s = 100 * e8.step / (e8.max - e8.min), u = Array.from({ length: i - 1 }).map((l, f) => (f + 1) * s);
    return e8.range ? u.filter((l) => l < 100 * (r.value - e8.min) / (e8.max - e8.min) || l > 100 * (n.value - e8.min) / (e8.max - e8.min)) : u.filter((l) => l > 100 * (t.firstValue - e8.min) / (e8.max - e8.min));
  }),
  getStopStyle: (i) => e8.vertical ? { bottom: `${i}%` } : { left: `${i}%` }
});
var Ab = (e8, t, r, n, o, a) => {
  const i = (l) => {
    o(Pe, l), o(gr, l);
  }, s = () => e8.range ? ![r.value, n.value].every((l, f) => l === t.oldValue[f]) : e8.modelValue !== t.oldValue, u = () => {
    var l, f;
    e8.min > e8.max && Fa("Slider", "min should not be greater than max.");
    const c = e8.modelValue;
    e8.range && Array.isArray(c) ? c[1] < e8.min ? i([e8.min, e8.min]) : c[0] > e8.max ? i([e8.max, e8.max]) : c[0] < e8.min ? i([e8.min, c[1]]) : c[1] > e8.max ? i([c[0], e8.max]) : (t.firstValue = c[0], t.secondValue = c[1], s() && (e8.validateEvent && ((l = a == null ? void 0 : a.validate) == null || l.call(a, "change").catch((d) => Ce(d))), t.oldValue = c.slice())) : !e8.range && typeof c == "number" && !Number.isNaN(c) && (c < e8.min ? i(e8.min) : c > e8.max ? i(e8.max) : (t.firstValue = c, s() && (e8.validateEvent && ((f = a == null ? void 0 : a.validate) == null || f.call(a, "change").catch((d) => Ce(d))), t.oldValue = c)));
  };
  u(), watch(() => t.dragging, (l) => {
    l || u();
  }), watch(() => e8.modelValue, (l, f) => {
    t.dragging || Array.isArray(l) && Array.isArray(f) && l.every((c, d) => c === f[d]) && t.firstValue === l[0] && t.secondValue === l[1] || u();
  }, {
    deep: true
  }), watch(() => [e8.min, e8.max], () => {
    u();
  });
};
var _b = we({
  modelValue: {
    type: Number,
    default: 0
  },
  vertical: Boolean,
  tooltipClass: String,
  placement: {
    type: String,
    values: rn,
    default: "top"
  }
});
var Ib = {
  [Pe]: (e8) => ge(e8)
};
var Cb = defineComponent({
  name: "ElSliderButton"
});
var xb = defineComponent({
  ...Cb,
  props: _b,
  emits: Ib,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, o = be("slider"), a = reactive({
      hovering: false,
      dragging: false,
      isClick: false,
      startX: 0,
      currentX: 0,
      startY: 0,
      currentY: 0,
      startPosition: 0,
      newPosition: 0,
      oldValue: n.modelValue
    }), {
      disabled: i,
      button: s,
      tooltip: u,
      showTooltip: l,
      tooltipVisible: f,
      wrapperStyle: c,
      formatValue: d,
      handleMouseEnter: h2,
      handleMouseLeave: v,
      onButtonDown: m,
      onKeyDown: g,
      setPosition: y
    } = Eb(n, a, r), { hovering: b, dragging: O } = toRefs(a);
    return t({
      onButtonDown: m,
      onKeyDown: g,
      setPosition: y,
      hovering: b,
      dragging: O
    }), (I, S) => (openBlock(), createElementBlock("div", {
      ref_key: "button",
      ref: s,
      class: normalizeClass([unref(o).e("button-wrapper"), { hover: unref(b), dragging: unref(O) }]),
      style: normalizeStyle(unref(c)),
      tabindex: unref(i) ? -1 : 0,
      onMouseenter: unref(h2),
      onMouseleave: unref(v),
      onMousedown: unref(m),
      onFocus: unref(h2),
      onBlur: unref(v),
      onKeydown: unref(g)
    }, [
      createVNode(unref(Cu), {
        ref_key: "tooltip",
        ref: u,
        visible: unref(f),
        placement: I.placement,
        "fallback-placements": ["top", "bottom", "right", "left"],
        "stop-popper-mouse-event": false,
        "popper-class": I.tooltipClass,
        disabled: !unref(l),
        persistent: ""
      }, {
        content: withCtx(() => [
          createBaseVNode("span", null, toDisplayString(unref(d)), 1)
        ]),
        default: withCtx(() => [
          createBaseVNode("div", {
            class: normalizeClass([unref(o).e("button"), { hover: unref(b), dragging: unref(O) }])
          }, null, 2)
        ]),
        _: 1
      }, 8, ["visible", "placement", "popper-class", "disabled"])
    ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"]));
  }
});
var ks = Se(xb, [["__file", "button.vue"]]);
var Tb = we({
  mark: {
    type: ie([String, Object]),
    default: void 0
  }
});
var Pb = defineComponent({
  name: "ElSliderMarker",
  props: Tb,
  setup(e8) {
    const t = be("slider"), r = computed(() => Qe(e8.mark) ? e8.mark : e8.mark.label), n = computed(() => Qe(e8.mark) ? void 0 : e8.mark.style);
    return () => h("div", {
      class: t.e("marks-text"),
      style: n.value
    }, r.value);
  }
});
var $b = defineComponent({
  name: "ElSlider"
});
var Fb = defineComponent({
  ...$b,
  props: lb,
  emits: ub,
  setup(e8, { expose: t, emit: r }) {
    const n = e8, o = be("slider"), { t: a } = go(), i = reactive({
      firstValue: 0,
      secondValue: 0,
      oldValue: 0,
      dragging: false,
      sliderSize: 1
    }), {
      elFormItem: s,
      slider: u,
      firstButton: l,
      secondButton: f,
      sliderDisabled: c,
      minValue: d,
      maxValue: h2,
      runwayStyle: v,
      barStyle: m,
      resetSize: g,
      emitChange: y,
      onSliderWrapperPrevent: b,
      onSliderClick: O,
      onSliderDown: I,
      onSliderMarkerDown: S,
      setFirstValue: x,
      setSecondValue: T
    } = db(n, i, r), { stops: V, getStopStyle: $ } = Ob(n, i, d, h2), { inputId: H, isLabeledByFormItem: J } = qa(n, {
      formItemContext: s
    }), R = nn(), z = computed(() => n.inputSize || R.value), X = computed(() => n.ariaLabel || a("el.slider.defaultLabel", {
      min: n.min,
      max: n.max
    })), _ = computed(() => n.range ? n.rangeStartLabel || a("el.slider.defaultRangeStartLabel") : X.value), A = computed(() => n.formatValueText ? n.formatValueText(j.value) : `${j.value}`), k = computed(() => n.rangeEndLabel || a("el.slider.defaultRangeEndLabel")), Q = computed(() => n.formatValueText ? n.formatValueText(Y.value) : `${Y.value}`), K = computed(() => [
      o.b(),
      o.m(R.value),
      o.is("vertical", n.vertical),
      { [o.m("with-input")]: n.showInput }
    ]), P = cb(n);
    Ab(n, i, d, h2, r, s);
    const U = computed(() => {
      const W = [n.min, n.max, n.step].map((Ee) => {
        const Ae = `${Ee}`.split(".")[1];
        return Ae ? Ae.length : 0;
      });
      return Math.max.apply(null, W);
    }), { sliderWrapper: M } = fb(n, i, g), { firstValue: j, secondValue: Y, sliderSize: oe } = toRefs(i), ae = (W) => {
      i.dragging = W;
    };
    return je(M, "touchstart", b, {
      passive: false
    }), je(M, "touchmove", b, {
      passive: false
    }), provide(ku, {
      ...toRefs(n),
      sliderSize: oe,
      disabled: c,
      precision: U,
      emitChange: y,
      resetSize: g,
      updateDragging: ae
    }), t({
      onSliderClick: O
    }), (W, Ee) => {
      var Ae, _e;
      return openBlock(), createElementBlock("div", {
        id: W.range ? unref(H) : void 0,
        ref_key: "sliderWrapper",
        ref: M,
        class: normalizeClass(unref(K)),
        role: W.range ? "group" : void 0,
        "aria-label": W.range && !unref(J) ? unref(X) : void 0,
        "aria-labelledby": W.range && unref(J) ? (Ae = unref(s)) == null ? void 0 : Ae.labelId : void 0
      }, [
        createBaseVNode("div", {
          ref_key: "slider",
          ref: u,
          class: normalizeClass([
            unref(o).e("runway"),
            { "show-input": W.showInput && !W.range },
            unref(o).is("disabled", unref(c))
          ]),
          style: normalizeStyle(unref(v)),
          onMousedown: unref(I),
          onTouchstartPassive: unref(I)
        }, [
          createBaseVNode("div", {
            class: normalizeClass(unref(o).e("bar")),
            style: normalizeStyle(unref(m))
          }, null, 6),
          createVNode(ks, {
            id: W.range ? void 0 : unref(H),
            ref_key: "firstButton",
            ref: l,
            "model-value": unref(j),
            vertical: W.vertical,
            "tooltip-class": W.tooltipClass,
            placement: W.placement,
            role: "slider",
            "aria-label": W.range || !unref(J) ? unref(_) : void 0,
            "aria-labelledby": !W.range && unref(J) ? (_e = unref(s)) == null ? void 0 : _e.labelId : void 0,
            "aria-valuemin": W.min,
            "aria-valuemax": W.range ? unref(Y) : W.max,
            "aria-valuenow": unref(j),
            "aria-valuetext": unref(A),
            "aria-orientation": W.vertical ? "vertical" : "horizontal",
            "aria-disabled": unref(c),
            "onUpdate:modelValue": unref(x)
          }, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
          W.range ? (openBlock(), createBlock(ks, {
            key: 0,
            ref_key: "secondButton",
            ref: f,
            "model-value": unref(Y),
            vertical: W.vertical,
            "tooltip-class": W.tooltipClass,
            placement: W.placement,
            role: "slider",
            "aria-label": unref(k),
            "aria-valuemin": unref(j),
            "aria-valuemax": W.max,
            "aria-valuenow": unref(Y),
            "aria-valuetext": unref(Q),
            "aria-orientation": W.vertical ? "vertical" : "horizontal",
            "aria-disabled": unref(c),
            "onUpdate:modelValue": unref(T)
          }, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
          W.showStops ? (openBlock(), createElementBlock("div", { key: 1 }, [
            (openBlock(true), createElementBlock(Fragment, null, renderList(unref(V), (ue, he) => (openBlock(), createElementBlock("div", {
              key: he,
              class: normalizeClass(unref(o).e("stop")),
              style: normalizeStyle(unref($)(ue))
            }, null, 6))), 128))
          ])) : createCommentVNode("v-if", true),
          unref(P).length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
            createBaseVNode("div", null, [
              (openBlock(true), createElementBlock(Fragment, null, renderList(unref(P), (ue, he) => (openBlock(), createElementBlock("div", {
                key: he,
                style: normalizeStyle(unref($)(ue.position)),
                class: normalizeClass([unref(o).e("stop"), unref(o).e("marks-stop")])
              }, null, 6))), 128))
            ]),
            createBaseVNode("div", {
              class: normalizeClass(unref(o).e("marks"))
            }, [
              (openBlock(true), createElementBlock(Fragment, null, renderList(unref(P), (ue, he) => (openBlock(), createBlock(unref(Pb), {
                key: he,
                mark: ue.mark,
                style: normalizeStyle(unref($)(ue.position)),
                onMousedown: withModifiers((Te) => unref(S)(ue.position), ["stop"])
              }, null, 8, ["mark", "style", "onMousedown"]))), 128))
            ], 2)
          ], 64)) : createCommentVNode("v-if", true)
        ], 46, ["onMousedown", "onTouchstartPassive"]),
        W.showInput && !W.range ? (openBlock(), createBlock(unref(Qa), {
          key: 0,
          ref: "input",
          "model-value": unref(j),
          class: normalizeClass(unref(o).e("input")),
          step: W.step,
          disabled: unref(c),
          controls: W.showInputControls,
          min: W.min,
          max: W.max,
          precision: unref(U),
          debounce: W.debounce,
          size: unref(z),
          "onUpdate:modelValue": unref(x),
          onChange: unref(y)
        }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : createCommentVNode("v-if", true)
      ], 10, ["id", "role", "aria-label", "aria-labelledby"]);
    };
  }
});
var Mb = Se(Fb, [["__file", "slider.vue"]]);
var Lu = lt(Mb);
function Vb(e8) {
  let t;
  const r = ref(false), n = reactive({
    ...e8,
    originalPosition: "",
    originalOverflow: "",
    visible: false
  });
  function o(d) {
    n.text = d;
  }
  function a() {
    const d = n.parent, h2 = c.ns;
    if (!d.vLoadingAddClassList) {
      let v = d.getAttribute("loading-number");
      v = Number.parseInt(v) - 1, v ? d.setAttribute("loading-number", v.toString()) : (Qn(d, h2.bm("parent", "relative")), d.removeAttribute("loading-number")), Qn(d, h2.bm("parent", "hidden"));
    }
    i(), f.unmount();
  }
  function i() {
    var d, h2;
    (h2 = (d = c.$el) == null ? void 0 : d.parentNode) == null || h2.removeChild(c.$el);
  }
  function s() {
    var d;
    e8.beforeClose && !e8.beforeClose() || (r.value = true, clearTimeout(t), t = setTimeout(u, 400), n.visible = false, (d = e8.closed) == null || d.call(e8));
  }
  function u() {
    if (!r.value)
      return;
    const d = n.parent;
    r.value = false, d.vLoadingAddClassList = void 0, a();
  }
  const l = defineComponent({
    name: "ElLoading",
    setup(d, { expose: h2 }) {
      const { ns: v, zIndex: m } = _y("loading");
      return h2({
        ns: v,
        zIndex: m
      }), () => {
        const g = n.spinner || n.svg, y = h("svg", {
          class: "circular",
          viewBox: n.svgViewBox ? n.svgViewBox : "0 0 50 50",
          ...g ? { innerHTML: g } : {}
        }, [
          h("circle", {
            class: "path",
            cx: "25",
            cy: "25",
            r: "20",
            fill: "none"
          })
        ]), b = n.text ? h("p", { class: v.b("text") }, [n.text]) : void 0;
        return h(Transition, {
          name: v.b("fade"),
          onAfterLeave: u
        }, {
          default: withCtx(() => [
            withDirectives(createVNode("div", {
              style: {
                backgroundColor: n.background || ""
              },
              class: [
                v.b("mask"),
                n.customClass,
                n.fullscreen ? "is-fullscreen" : ""
              ]
            }, [
              h("div", {
                class: v.b("spinner")
              }, [y, b])
            ]), [[vShow, n.visible]])
          ])
        });
      };
    }
  }), f = createApp(l), c = f.mount(document.createElement("div"));
  return {
    ...toRefs(n),
    setText: o,
    removeElLoadingChild: i,
    close: s,
    handleAfterLeave: u,
    vm: c,
    get $el() {
      return c.$el;
    }
  };
}
var Bn;
var fa = function(e8 = {}) {
  if (!Fe)
    return;
  const t = Rb(e8);
  if (t.fullscreen && Bn)
    return Bn;
  const r = Vb({
    ...t,
    closed: () => {
      var o;
      (o = t.closed) == null || o.call(t), t.fullscreen && (Bn = void 0);
    }
  });
  Nb(t, t.parent, r), Ls(t, t.parent, r), t.parent.vLoadingAddClassList = () => Ls(t, t.parent, r);
  let n = t.parent.getAttribute("loading-number");
  return n ? n = `${Number.parseInt(n) + 1}` : n = "1", t.parent.setAttribute("loading-number", n), t.parent.appendChild(r.$el), nextTick(() => r.visible.value = t.visible), t.fullscreen && (Bn = r), r;
};
var Rb = (e8) => {
  var t, r, n, o;
  let a;
  return Qe(e8.target) ? a = (t = document.querySelector(e8.target)) != null ? t : document.body : a = e8.target || document.body, {
    parent: a === document.body || e8.body ? document.body : a,
    background: e8.background || "",
    svg: e8.svg || "",
    svgViewBox: e8.svgViewBox || "",
    spinner: e8.spinner || false,
    text: e8.text || "",
    fullscreen: a === document.body && ((r = e8.fullscreen) != null ? r : true),
    lock: (n = e8.lock) != null ? n : false,
    customClass: e8.customClass || "",
    visible: (o = e8.visible) != null ? o : true,
    beforeClose: e8.beforeClose,
    closed: e8.closed,
    target: a
  };
};
var Nb = async (e8, t, r) => {
  const { nextZIndex: n } = r.vm.zIndex || r.vm._.exposed.zIndex, o = {};
  if (e8.fullscreen)
    r.originalPosition.value = ln(document.body, "position"), r.originalOverflow.value = ln(document.body, "overflow"), o.zIndex = n();
  else if (e8.parent === document.body) {
    r.originalPosition.value = ln(document.body, "position"), await nextTick();
    for (const a of ["top", "left"]) {
      const i = a === "top" ? "scrollTop" : "scrollLeft";
      o[a] = `${e8.target.getBoundingClientRect()[a] + document.body[i] + document.documentElement[i] - Number.parseInt(ln(document.body, `margin-${a}`), 10)}px`;
    }
    for (const a of ["height", "width"])
      o[a] = `${e8.target.getBoundingClientRect()[a]}px`;
  } else
    r.originalPosition.value = ln(t, "position");
  for (const [a, i] of Object.entries(o))
    r.$el.style[a] = i;
};
var Ls = (e8, t, r) => {
  const n = r.vm.ns || r.vm._.exposed.ns;
  ["absolute", "fixed", "sticky"].includes(r.originalPosition.value) ? Qn(t, n.bm("parent", "relative")) : ns(t, n.bm("parent", "relative")), e8.fullscreen && e8.lock ? ns(t, n.bm("parent", "hidden")) : Qn(t, n.bm("parent", "hidden"));
};
var Kn = Symbol("ElLoading");
var zs = (e8, t) => {
  var r, n, o, a;
  const i = t.instance, s = (d) => Ge(t.value) ? t.value[d] : void 0, u = (d) => {
    const h2 = Qe(d) && (i == null ? void 0 : i[d]) || d;
    return h2 && ref(h2);
  }, l = (d) => u(s(d) || e8.getAttribute(`element-loading-${Fc(d)}`)), f = (r = s("fullscreen")) != null ? r : t.modifiers.fullscreen, c = {
    text: l("text"),
    svg: l("svg"),
    svgViewBox: l("svgViewBox"),
    spinner: l("spinner"),
    background: l("background"),
    customClass: l("customClass"),
    fullscreen: f,
    target: (n = s("target")) != null ? n : f ? void 0 : e8,
    body: (o = s("body")) != null ? o : t.modifiers.body,
    lock: (a = s("lock")) != null ? a : t.modifiers.lock
  };
  e8[Kn] = {
    options: c,
    instance: fa(c)
  };
};
var kb = (e8, t) => {
  for (const r of Object.keys(t))
    isRef(t[r]) && (t[r].value = e8[r]);
};
var ca = {
  mounted(e8, t) {
    t.value && zs(e8, t);
  },
  updated(e8, t) {
    const r = e8[Kn];
    t.oldValue !== t.value && (t.value && !t.oldValue ? zs(e8, t) : t.value && t.oldValue ? Ge(t.value) && kb(t.value, r.options) : r == null || r.instance.close());
  },
  unmounted(e8) {
    var t;
    (t = e8[Kn]) == null || t.instance.close(), e8[Kn] = null;
  }
};
var Lb = {
  install(e8) {
    e8.directive("loading", ca), e8.config.globalProperties.$loading = fa;
  },
  directive: ca,
  service: fa
};
var zu = "simcore/services/comp/opencor";
function Bu(e8, t, r) {
  if (t !== void 0) {
    let n = new RegExp(`\\b${t}\\b`, "g");
    e8 = e8.replace(n, r);
  }
  return e8;
}
function da(e8, t) {
  let r = -1;
  return e8.simulationUiInfo.input.forEach((n) => {
    ++r, t = Bu(t, n.id, e8.$refs.simInput[r].vModel);
  }), Function("return " + t + ";")();
}
function Bs(e8, t, r, n) {
  return e8.simulationUiInfo.output.data.forEach((o) => {
    r = Bu(r, o.id, t[e8.simulationDataId[o.id]][n]);
  }), Function("return " + r + ";")();
}
function zb(e8) {
  e8.simulationUiInfo.output.data.forEach((r) => {
    e8.simulationDataId[r.id] = r.name;
  });
  let t = -1;
  e8.simulationUiInfo.output.plots.forEach((r) => {
    ++t, e8.layout[t] = {
      paper_bgcolor: "rgba(0, 0, 0, 0)",
      plot_bgcolor: "rgba(0, 0, 0, 0)",
      autosize: true,
      margin: {
        t: 25,
        l: 55,
        r: 25,
        b: 30,
        pad: 4
      },
      loading: false,
      options: {
        responsive: true,
        scrollZoom: true
      },
      dragmode: "pan",
      xaxis: {
        title: {
          text: r.xAxisTitle,
          font: {
            size: 10
          }
        }
      },
      yaxis: {
        title: {
          text: r.yAxisTitle,
          font: {
            size: 10
          }
        }
      }
    }, e8.simulationData[t] = [{}];
  });
}
function Ds(e8) {
  !e8.hasFinalisedUi && e8.isMounted && e8.hasValidSimulationUiInfo && (e8.$refs.output.classList.add("x" + e8.simulationUiInfo.output.plots.length), Du(e8), e8.hasFinalisedUi = true);
}
function Du(e8) {
  e8.$nextTick(() => {
    let t = -1;
    e8.simulationUiInfo.input.forEach((r) => {
      ++t, e8.$refs.simInput[t].visible = r.visible === void 0 ? true : da(e8, r.visible);
    });
  });
}
var Uu = (e8, t) => {
  const r = e8.__vccOpts || e8;
  for (const [n, o] of t)
    r[n] = o;
  return r;
};
var Bb = {
  name: "SimulationVuerInput",
  components: {
    ElInputNumber: Qa,
    ElOption: Nu,
    ElSelect: Ru,
    ElSlider: Lu
  },
  props: {
    defaultValue: {
      required: true,
      type: Number
    },
    maximumValue: {
      type: Number
    },
    minimumValue: {
      type: Number
    },
    name: {
      required: true,
      type: String
    },
    possibleValues: {
      type: Array
    },
    stepValue: {
      type: Number
    }
  },
  data: function() {
    return {
      isDiscrete: this.possibleValues !== void 0,
      labelClasses: "default " + (this.possibleValues !== void 0 ? "discrete" : "scalar"),
      visible: true,
      vModel: this.defaultValue
    };
  },
  methods: {
    updateUi: function() {
      Du(this.$parent);
    }
  }
};
var Db = {
  key: 1,
  class: "sliders-and-fields"
};
function Ub(e8, t, r, n, o, a) {
  const i = Nu, s = Ru, u = Lu, l = Qa;
  return withDirectives((openBlock(), createElementBlock("div", null, [
    createBaseVNode("p", {
      class: normalizeClass(e8.labelClasses)
    }, toDisplayString(r.name), 3),
    e8.isDiscrete ? (openBlock(), createBlock(s, {
      key: 0,
      class: "discrete",
      "popper-class": "discrete-popper",
      size: "small",
      modelValue: e8.vModel,
      "onUpdate:modelValue": t[0] || (t[0] = (f) => e8.vModel = f),
      teleported: false,
      onChange: t[1] || (t[1] = (f) => a.updateUi())
    }, {
      default: withCtx(() => [
        (openBlock(true), createElementBlock(Fragment, null, renderList(r.possibleValues, (f) => (openBlock(), createBlock(i, {
          key: f.value,
          label: f.name,
          value: f.value
        }, null, 8, ["label", "value"]))), 128))
      ]),
      _: 1
    }, 8, ["modelValue"])) : createCommentVNode("", true),
    e8.isDiscrete ? createCommentVNode("", true) : (openBlock(), createElementBlock("div", Db, [
      createVNode(u, {
        modelValue: e8.vModel,
        "onUpdate:modelValue": t[2] || (t[2] = (f) => e8.vModel = f),
        max: r.maximumValue,
        min: r.minimumValue,
        "show-input": false,
        "show-tooltip": false,
        step: r.stepValue,
        onChange: t[3] || (t[3] = (f) => a.updateUi())
      }, null, 8, ["modelValue", "max", "min", "step"]),
      createVNode(l, {
        class: "scalar",
        size: "small",
        modelValue: e8.vModel,
        "onUpdate:modelValue": t[4] || (t[4] = (f) => e8.vModel = f),
        controls: false,
        max: r.maximumValue,
        min: r.minimumValue,
        step: r.stepValue,
        "step-strictly": true,
        onInput: t[5] || (t[5] = (f) => a.updateUi())
      }, null, 8, ["modelValue", "max", "min", "step"])
    ]))
  ], 512)), [
    [vShow, e8.visible]
  ]);
}
var ju = Uu(Bb, [["render", Ub], ["__scopeId", "data-v-7ce06b79"]]);
var ur = {};
var no = { exports: {} };
no.exports;
(function(e8, t) {
  (function(r) {
    var n = t && !t.nodeType && t, o = e8 && !e8.nodeType && e8, a = typeof qn == "object" && qn;
    (a.global === a || a.window === a || a.self === a) && (r = a);
    var i, s = 2147483647, u = 36, l = 1, f = 26, c = 38, d = 700, h2 = 72, v = 128, m = "-", g = /^xn--/, y = /[^\x20-\x7E]/, b = /[\x2E\u3002\uFF0E\uFF61]/g, O = {
      overflow: "Overflow: input needs wider integers to process",
      "not-basic": "Illegal input >= 0x80 (not a basic code point)",
      "invalid-input": "Invalid input"
    }, I = u - l, S = Math.floor, x = String.fromCharCode, T;
    function V(P) {
      throw new RangeError(O[P]);
    }
    function $(P, U) {
      for (var M = P.length, j = []; M--; )
        j[M] = U(P[M]);
      return j;
    }
    function H(P, U) {
      var M = P.split("@"), j = "";
      M.length > 1 && (j = M[0] + "@", P = M[1]), P = P.replace(b, ".");
      var Y = P.split("."), oe = $(Y, U).join(".");
      return j + oe;
    }
    function J(P) {
      for (var U = [], M = 0, j = P.length, Y, oe; M < j; )
        Y = P.charCodeAt(M++), Y >= 55296 && Y <= 56319 && M < j ? (oe = P.charCodeAt(M++), (oe & 64512) == 56320 ? U.push(((Y & 1023) << 10) + (oe & 1023) + 65536) : (U.push(Y), M--)) : U.push(Y);
      return U;
    }
    function R(P) {
      return $(P, function(U) {
        var M = "";
        return U > 65535 && (U -= 65536, M += x(U >>> 10 & 1023 | 55296), U = 56320 | U & 1023), M += x(U), M;
      }).join("");
    }
    function z(P) {
      return P - 48 < 10 ? P - 22 : P - 65 < 26 ? P - 65 : P - 97 < 26 ? P - 97 : u;
    }
    function X(P, U) {
      return P + 22 + 75 * (P < 26) - ((U != 0) << 5);
    }
    function _(P, U, M) {
      var j = 0;
      for (P = M ? S(P / d) : P >> 1, P += S(P / U); P > I * f >> 1; j += u)
        P = S(P / I);
      return S(j + (I + 1) * P / (P + c));
    }
    function A(P) {
      var U = [], M = P.length, j, Y = 0, oe = v, ae = h2, W, Ee, Ae, _e, ue, he, Te, Ue, Ke;
      for (W = P.lastIndexOf(m), W < 0 && (W = 0), Ee = 0; Ee < W; ++Ee)
        P.charCodeAt(Ee) >= 128 && V("not-basic"), U.push(P.charCodeAt(Ee));
      for (Ae = W > 0 ? W + 1 : 0; Ae < M; ) {
        for (_e = Y, ue = 1, he = u; Ae >= M && V("invalid-input"), Te = z(P.charCodeAt(Ae++)), (Te >= u || Te > S((s - Y) / ue)) && V("overflow"), Y += Te * ue, Ue = he <= ae ? l : he >= ae + f ? f : he - ae, !(Te < Ue); he += u)
          Ke = u - Ue, ue > S(s / Ke) && V("overflow"), ue *= Ke;
        j = U.length + 1, ae = _(Y - _e, j, _e == 0), S(Y / j) > s - oe && V("overflow"), oe += S(Y / j), Y %= j, U.splice(Y++, 0, oe);
      }
      return R(U);
    }
    function k(P) {
      var U, M, j, Y, oe, ae, W, Ee, Ae, _e, ue, he = [], Te, Ue, Ke, Ze;
      for (P = J(P), Te = P.length, U = v, M = 0, oe = h2, ae = 0; ae < Te; ++ae)
        ue = P[ae], ue < 128 && he.push(x(ue));
      for (j = Y = he.length, Y && he.push(m); j < Te; ) {
        for (W = s, ae = 0; ae < Te; ++ae)
          ue = P[ae], ue >= U && ue < W && (W = ue);
        for (Ue = j + 1, W - U > S((s - M) / Ue) && V("overflow"), M += (W - U) * Ue, U = W, ae = 0; ae < Te; ++ae)
          if (ue = P[ae], ue < U && ++M > s && V("overflow"), ue == U) {
            for (Ee = M, Ae = u; _e = Ae <= oe ? l : Ae >= oe + f ? f : Ae - oe, !(Ee < _e); Ae += u)
              Ze = Ee - _e, Ke = u - _e, he.push(
                x(X(_e + Ze % Ke, 0))
              ), Ee = S(Ze / Ke);
            he.push(x(X(Ee, 0))), oe = _(M, Ue, j == Y), M = 0, ++j;
          }
        ++M, ++U;
      }
      return he.join("");
    }
    function Q(P) {
      return H(P, function(U) {
        return g.test(U) ? A(U.slice(4).toLowerCase()) : U;
      });
    }
    function K(P) {
      return H(P, function(U) {
        return y.test(U) ? "xn--" + k(U) : U;
      });
    }
    if (i = {
      /**
       * A string representing the current Punycode.js version number.
       * @memberOf punycode
       * @type String
       */
      version: "1.4.1",
      /**
       * An object of methods to convert from JavaScript's internal character
       * representation (UCS-2) to Unicode code points, and back.
       * @see <https://mathiasbynens.be/notes/javascript-encoding>
       * @memberOf punycode
       * @type Object
       */
      ucs2: {
        decode: J,
        encode: R
      },
      decode: A,
      encode: k,
      toASCII: K,
      toUnicode: Q
    }, n && o)
      if (e8.exports == n)
        o.exports = i;
      else
        for (T in i)
          i.hasOwnProperty(T) && (n[T] = i[T]);
    else
      r.punycode = i;
  })(qn);
})(no, no.exports);
var jb = no.exports;
var Hb = Error;
var Wb = EvalError;
var qb = RangeError;
var Kb = ReferenceError;
var Hu = SyntaxError;
var Cn = TypeError;
var Zb = URIError;
var Gb = function() {
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
    return false;
  if (typeof Symbol.iterator == "symbol")
    return true;
  var t = {}, r = Symbol("test"), n = Object(r);
  if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
    return false;
  var o = 42;
  t[r] = o;
  for (r in t)
    return false;
  if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
    return false;
  var a = Object.getOwnPropertySymbols(t);
  if (a.length !== 1 || a[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r))
    return false;
  if (typeof Object.getOwnPropertyDescriptor == "function") {
    var i = Object.getOwnPropertyDescriptor(t, r);
    if (i.value !== o || i.enumerable !== true)
      return false;
  }
  return true;
};
var Us = typeof Symbol < "u" && Symbol;
var Jb = Gb;
var Yb = function() {
  return typeof Us != "function" || typeof Symbol != "function" || typeof Us("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? false : Jb();
};
var Lo = {
  __proto__: null,
  foo: {}
};
var Xb = Object;
var Qb = function() {
  return { __proto__: Lo }.foo === Lo.foo && !(Lo instanceof Xb);
};
var e1 = "Function.prototype.bind called on incompatible ";
var t1 = Object.prototype.toString;
var r1 = Math.max;
var n1 = "[object Function]";
var js = function(t, r) {
  for (var n = [], o = 0; o < t.length; o += 1)
    n[o] = t[o];
  for (var a = 0; a < r.length; a += 1)
    n[a + t.length] = r[a];
  return n;
};
var o1 = function(t, r) {
  for (var n = [], o = r, a = 0; o < t.length; o += 1, a += 1)
    n[a] = t[o];
  return n;
};
var a1 = function(e8, t) {
  for (var r = "", n = 0; n < e8.length; n += 1)
    r += e8[n], n + 1 < e8.length && (r += t);
  return r;
};
var i1 = function(t) {
  var r = this;
  if (typeof r != "function" || t1.apply(r) !== n1)
    throw new TypeError(e1 + r);
  for (var n = o1(arguments, 1), o, a = function() {
    if (this instanceof o) {
      var f = r.apply(
        this,
        js(n, arguments)
      );
      return Object(f) === f ? f : this;
    }
    return r.apply(
      t,
      js(n, arguments)
    );
  }, i = r1(0, r.length - n.length), s = [], u = 0; u < i; u++)
    s[u] = "$" + u;
  if (o = Function("binder", "return function (" + a1(s, ",") + "){ return binder.apply(this,arguments); }")(a), r.prototype) {
    var l = function() {
    };
    l.prototype = r.prototype, o.prototype = new l(), l.prototype = null;
  }
  return o;
};
var s1 = i1;
var ti = Function.prototype.bind || s1;
var l1 = Function.prototype.call;
var u1 = Object.prototype.hasOwnProperty;
var f1 = ti;
var c1 = f1.call(l1, u1);
var le;
var d1 = Hb;
var p1 = Wb;
var v1 = qb;
var m1 = Kb;
var Yr = Hu;
var Br = Cn;
var h1 = Zb;
var Wu = Function;
var zo = function(e8) {
  try {
    return Wu('"use strict"; return (' + e8 + ").constructor;")();
  } catch {
  }
};
var wr = Object.getOwnPropertyDescriptor;
if (wr)
  try {
    wr({}, "");
  } catch {
    wr = null;
  }
var Bo = function() {
  throw new Br();
};
var y1 = wr ? function() {
  try {
    return arguments.callee, Bo;
  } catch {
    try {
      return wr(arguments, "callee").get;
    } catch {
      return Bo;
    }
  }
}() : Bo;
var Vr = Yb();
var g1 = Qb();
var Me = Object.getPrototypeOf || (g1 ? function(e8) {
  return e8.__proto__;
} : null);
var Lr = {};
var b1 = typeof Uint8Array > "u" || !Me ? le : Me(Uint8Array);
var Sr = {
  __proto__: null,
  "%AggregateError%": typeof AggregateError > "u" ? le : AggregateError,
  "%Array%": Array,
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? le : ArrayBuffer,
  "%ArrayIteratorPrototype%": Vr && Me ? Me([][Symbol.iterator]()) : le,
  "%AsyncFromSyncIteratorPrototype%": le,
  "%AsyncFunction%": Lr,
  "%AsyncGenerator%": Lr,
  "%AsyncGeneratorFunction%": Lr,
  "%AsyncIteratorPrototype%": Lr,
  "%Atomics%": typeof Atomics > "u" ? le : Atomics,
  "%BigInt%": typeof BigInt > "u" ? le : BigInt,
  "%BigInt64Array%": typeof BigInt64Array > "u" ? le : BigInt64Array,
  "%BigUint64Array%": typeof BigUint64Array > "u" ? le : BigUint64Array,
  "%Boolean%": Boolean,
  "%DataView%": typeof DataView > "u" ? le : DataView,
  "%Date%": Date,
  "%decodeURI%": decodeURI,
  "%decodeURIComponent%": decodeURIComponent,
  "%encodeURI%": encodeURI,
  "%encodeURIComponent%": encodeURIComponent,
  "%Error%": d1,
  "%eval%": eval,
  // eslint-disable-line no-eval
  "%EvalError%": p1,
  "%Float32Array%": typeof Float32Array > "u" ? le : Float32Array,
  "%Float64Array%": typeof Float64Array > "u" ? le : Float64Array,
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? le : FinalizationRegistry,
  "%Function%": Wu,
  "%GeneratorFunction%": Lr,
  "%Int8Array%": typeof Int8Array > "u" ? le : Int8Array,
  "%Int16Array%": typeof Int16Array > "u" ? le : Int16Array,
  "%Int32Array%": typeof Int32Array > "u" ? le : Int32Array,
  "%isFinite%": isFinite,
  "%isNaN%": isNaN,
  "%IteratorPrototype%": Vr && Me ? Me(Me([][Symbol.iterator]())) : le,
  "%JSON%": typeof JSON == "object" ? JSON : le,
  "%Map%": typeof Map > "u" ? le : Map,
  "%MapIteratorPrototype%": typeof Map > "u" || !Vr || !Me ? le : Me((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  "%Math%": Math,
  "%Number%": Number,
  "%Object%": Object,
  "%parseFloat%": parseFloat,
  "%parseInt%": parseInt,
  "%Promise%": typeof Promise > "u" ? le : Promise,
  "%Proxy%": typeof Proxy > "u" ? le : Proxy,
  "%RangeError%": v1,
  "%ReferenceError%": m1,
  "%Reflect%": typeof Reflect > "u" ? le : Reflect,
  "%RegExp%": RegExp,
  "%Set%": typeof Set > "u" ? le : Set,
  "%SetIteratorPrototype%": typeof Set > "u" || !Vr || !Me ? le : Me((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? le : SharedArrayBuffer,
  "%String%": String,
  "%StringIteratorPrototype%": Vr && Me ? Me(""[Symbol.iterator]()) : le,
  "%Symbol%": Vr ? Symbol : le,
  "%SyntaxError%": Yr,
  "%ThrowTypeError%": y1,
  "%TypedArray%": b1,
  "%TypeError%": Br,
  "%Uint8Array%": typeof Uint8Array > "u" ? le : Uint8Array,
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? le : Uint8ClampedArray,
  "%Uint16Array%": typeof Uint16Array > "u" ? le : Uint16Array,
  "%Uint32Array%": typeof Uint32Array > "u" ? le : Uint32Array,
  "%URIError%": h1,
  "%WeakMap%": typeof WeakMap > "u" ? le : WeakMap,
  "%WeakRef%": typeof WeakRef > "u" ? le : WeakRef,
  "%WeakSet%": typeof WeakSet > "u" ? le : WeakSet
};
if (Me)
  try {
    null.error;
  } catch (e8) {
    w1 = Me(Me(e8));
    Sr["%Error.prototype%"] = w1;
  }
var w1;
var S1 = function e(t) {
  var r;
  if (t === "%AsyncFunction%")
    r = zo("async function () {}");
  else if (t === "%GeneratorFunction%")
    r = zo("function* () {}");
  else if (t === "%AsyncGeneratorFunction%")
    r = zo("async function* () {}");
  else if (t === "%AsyncGenerator%") {
    var n = e("%AsyncGeneratorFunction%");
    n && (r = n.prototype);
  } else if (t === "%AsyncIteratorPrototype%") {
    var o = e("%AsyncGenerator%");
    o && Me && (r = Me(o.prototype));
  }
  return Sr[t] = r, r;
};
var Hs = {
  __proto__: null,
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  "%ArrayPrototype%": ["Array", "prototype"],
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  "%ArrayProto_values%": ["Array", "prototype", "values"],
  "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  "%BooleanPrototype%": ["Boolean", "prototype"],
  "%DataViewPrototype%": ["DataView", "prototype"],
  "%DatePrototype%": ["Date", "prototype"],
  "%ErrorPrototype%": ["Error", "prototype"],
  "%EvalErrorPrototype%": ["EvalError", "prototype"],
  "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  "%FunctionPrototype%": ["Function", "prototype"],
  "%Generator%": ["GeneratorFunction", "prototype"],
  "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  "%JSONParse%": ["JSON", "parse"],
  "%JSONStringify%": ["JSON", "stringify"],
  "%MapPrototype%": ["Map", "prototype"],
  "%NumberPrototype%": ["Number", "prototype"],
  "%ObjectPrototype%": ["Object", "prototype"],
  "%ObjProto_toString%": ["Object", "prototype", "toString"],
  "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  "%PromisePrototype%": ["Promise", "prototype"],
  "%PromiseProto_then%": ["Promise", "prototype", "then"],
  "%Promise_all%": ["Promise", "all"],
  "%Promise_reject%": ["Promise", "reject"],
  "%Promise_resolve%": ["Promise", "resolve"],
  "%RangeErrorPrototype%": ["RangeError", "prototype"],
  "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  "%RegExpPrototype%": ["RegExp", "prototype"],
  "%SetPrototype%": ["Set", "prototype"],
  "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  "%StringPrototype%": ["String", "prototype"],
  "%SymbolPrototype%": ["Symbol", "prototype"],
  "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  "%TypeErrorPrototype%": ["TypeError", "prototype"],
  "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  "%URIErrorPrototype%": ["URIError", "prototype"],
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
};
var xn = ti;
var oo = c1;
var E1 = xn.call(Function.call, Array.prototype.concat);
var O1 = xn.call(Function.apply, Array.prototype.splice);
var Ws = xn.call(Function.call, String.prototype.replace);
var ao = xn.call(Function.call, String.prototype.slice);
var A1 = xn.call(Function.call, RegExp.prototype.exec);
var _1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
var I1 = /\\(\\)?/g;
var C1 = function(t) {
  var r = ao(t, 0, 1), n = ao(t, -1);
  if (r === "%" && n !== "%")
    throw new Yr("invalid intrinsic syntax, expected closing `%`");
  if (n === "%" && r !== "%")
    throw new Yr("invalid intrinsic syntax, expected opening `%`");
  var o = [];
  return Ws(t, _1, function(a, i, s, u) {
    o[o.length] = s ? Ws(u, I1, "$1") : i || a;
  }), o;
};
var x1 = function(t, r) {
  var n = t, o;
  if (oo(Hs, n) && (o = Hs[n], n = "%" + o[0] + "%"), oo(Sr, n)) {
    var a = Sr[n];
    if (a === Lr && (a = S1(n)), typeof a > "u" && !r)
      throw new Br("intrinsic " + t + " exists, but is not available. Please file an issue!");
    return {
      alias: o,
      name: n,
      value: a
    };
  }
  throw new Yr("intrinsic " + t + " does not exist!");
};
var on = function(t, r) {
  if (typeof t != "string" || t.length === 0)
    throw new Br("intrinsic name must be a non-empty string");
  if (arguments.length > 1 && typeof r != "boolean")
    throw new Br('"allowMissing" argument must be a boolean');
  if (A1(/^%?[^%]*%?$/, t) === null)
    throw new Yr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  var n = C1(t), o = n.length > 0 ? n[0] : "", a = x1("%" + o + "%", r), i = a.name, s = a.value, u = false, l = a.alias;
  l && (o = l[0], O1(n, E1([0, 1], l)));
  for (var f = 1, c = true; f < n.length; f += 1) {
    var d = n[f], h2 = ao(d, 0, 1), v = ao(d, -1);
    if ((h2 === '"' || h2 === "'" || h2 === "`" || v === '"' || v === "'" || v === "`") && h2 !== v)
      throw new Yr("property names with quotes must have matching quotes");
    if ((d === "constructor" || !c) && (u = true), o += "." + d, i = "%" + o + "%", oo(Sr, i))
      s = Sr[i];
    else if (s != null) {
      if (!(d in s)) {
        if (!r)
          throw new Br("base intrinsic for " + t + " exists, but the property is not available.");
        return;
      }
      if (wr && f + 1 >= n.length) {
        var m = wr(s, d);
        c = !!m, c && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
      } else
        c = oo(s, d), s = s[d];
      c && !u && (Sr[i] = s);
    }
  }
  return s;
};
var qu = { exports: {} };
var Do;
var qs;
function ri() {
  if (qs) return Do;
  qs = 1;
  var e8 = on, t = e8("%Object.defineProperty%", true) || false;
  if (t)
    try {
      t({}, "a", { value: 1 });
    } catch {
      t = false;
    }
  return Do = t, Do;
}
var T1 = on;
var Zn = T1("%Object.getOwnPropertyDescriptor%", true);
if (Zn)
  try {
    Zn([], "length");
  } catch {
    Zn = null;
  }
var Ku = Zn;
var Ks = ri();
var P1 = Hu;
var Rr = Cn;
var Zs = Ku;
var $1 = function(t, r, n) {
  if (!t || typeof t != "object" && typeof t != "function")
    throw new Rr("`obj` must be an object or a function`");
  if (typeof r != "string" && typeof r != "symbol")
    throw new Rr("`property` must be a string or a symbol`");
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
    throw new Rr("`nonEnumerable`, if provided, must be a boolean or null");
  if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
    throw new Rr("`nonWritable`, if provided, must be a boolean or null");
  if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
    throw new Rr("`nonConfigurable`, if provided, must be a boolean or null");
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
    throw new Rr("`loose`, if provided, must be a boolean");
  var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, s = arguments.length > 6 ? arguments[6] : false, u = !!Zs && Zs(t, r);
  if (Ks)
    Ks(t, r, {
      configurable: i === null && u ? u.configurable : !i,
      enumerable: o === null && u ? u.enumerable : !o,
      value: n,
      writable: a === null && u ? u.writable : !a
    });
  else if (s || !o && !a && !i)
    t[r] = n;
  else
    throw new P1("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
};
var pa = ri();
var Zu = function() {
  return !!pa;
};
Zu.hasArrayLengthDefineBug = function() {
  if (!pa)
    return null;
  try {
    return pa([], "length", { value: 1 }).length !== 1;
  } catch {
    return true;
  }
};
var F1 = Zu;
var M1 = on;
var Gs = $1;
var V1 = F1();
var Js = Ku;
var Ys = Cn;
var R1 = M1("%Math.floor%");
var N1 = function(t, r) {
  if (typeof t != "function")
    throw new Ys("`fn` is not a function");
  if (typeof r != "number" || r < 0 || r > 4294967295 || R1(r) !== r)
    throw new Ys("`length` must be a positive 32-bit integer");
  var n = arguments.length > 2 && !!arguments[2], o = true, a = true;
  if ("length" in t && Js) {
    var i = Js(t, "length");
    i && !i.configurable && (o = false), i && !i.writable && (a = false);
  }
  return (o || a || !n) && (V1 ? Gs(
    /** @type {Parameters<define>[0]} */
    t,
    "length",
    r,
    true,
    true
  ) : Gs(
    /** @type {Parameters<define>[0]} */
    t,
    "length",
    r
  )), t;
};
(function(e8) {
  var t = ti, r = on, n = N1, o = Cn, a = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), s = r("%Reflect.apply%", true) || t.call(i, a), u = ri(), l = r("%Math.max%");
  e8.exports = function(d) {
    if (typeof d != "function")
      throw new o("a function is required");
    var h2 = s(t, i, arguments);
    return n(
      h2,
      1 + l(0, d.length - (arguments.length - 1)),
      true
    );
  };
  var f = function() {
    return s(t, a, arguments);
  };
  u ? u(e8.exports, "apply", { value: f }) : e8.exports.apply = f;
})(qu);
var k1 = qu.exports;
var Gu = on;
var Ju = k1;
var L1 = Ju(Gu("String.prototype.indexOf"));
var z1 = function(t, r) {
  var n = Gu(t, !!r);
  return typeof n == "function" && L1(t, ".prototype.") > -1 ? Ju(n) : n;
};
var B1 = {};
var D1 = Object.freeze(Object.defineProperty({
  __proto__: null,
  default: B1
}, Symbol.toStringTag, { value: "Module" }));
var U1 = T0(D1);
var ni = typeof Map == "function" && Map.prototype;
var Uo = Object.getOwnPropertyDescriptor && ni ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
var io = ni && Uo && typeof Uo.get == "function" ? Uo.get : null;
var Xs = ni && Map.prototype.forEach;
var oi = typeof Set == "function" && Set.prototype;
var jo = Object.getOwnPropertyDescriptor && oi ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
var so = oi && jo && typeof jo.get == "function" ? jo.get : null;
var Qs = oi && Set.prototype.forEach;
var j1 = typeof WeakMap == "function" && WeakMap.prototype;
var vn = j1 ? WeakMap.prototype.has : null;
var H1 = typeof WeakSet == "function" && WeakSet.prototype;
var mn = H1 ? WeakSet.prototype.has : null;
var W1 = typeof WeakRef == "function" && WeakRef.prototype;
var el = W1 ? WeakRef.prototype.deref : null;
var q1 = Boolean.prototype.valueOf;
var K1 = Object.prototype.toString;
var Z1 = Function.prototype.toString;
var G1 = String.prototype.match;
var ai = String.prototype.slice;
var or = String.prototype.replace;
var J1 = String.prototype.toUpperCase;
var tl = String.prototype.toLowerCase;
var Yu = RegExp.prototype.test;
var rl = Array.prototype.concat;
var Et = Array.prototype.join;
var Y1 = Array.prototype.slice;
var nl = Math.floor;
var va = typeof BigInt == "function" ? BigInt.prototype.valueOf : null;
var Ho = Object.getOwnPropertySymbols;
var ma = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null;
var Xr = typeof Symbol == "function" && typeof Symbol.iterator == "object";
var De = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Xr || true) ? Symbol.toStringTag : null;
var Xu = Object.prototype.propertyIsEnumerable;
var ol = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e8) {
  return e8.__proto__;
} : null);
function al(e8, t) {
  if (e8 === 1 / 0 || e8 === -1 / 0 || e8 !== e8 || e8 && e8 > -1e3 && e8 < 1e3 || Yu.call(/e/, t))
    return t;
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  if (typeof e8 == "number") {
    var n = e8 < 0 ? -nl(-e8) : nl(e8);
    if (n !== e8) {
      var o = String(n), a = ai.call(t, o.length + 1);
      return or.call(o, r, "$&_") + "." + or.call(or.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
    }
  }
  return or.call(t, r, "$&_");
}
var ha = U1;
var il = ha.custom;
var sl = ef(il) ? il : null;
var X1 = function e2(t, r, n, o) {
  var a = r || {};
  if (tr(a, "quoteStyle") && a.quoteStyle !== "single" && a.quoteStyle !== "double")
    throw new TypeError('option "quoteStyle" must be "single" or "double"');
  if (tr(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
    throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  var i = tr(a, "customInspect") ? a.customInspect : true;
  if (typeof i != "boolean" && i !== "symbol")
    throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  if (tr(a, "indent") && a.indent !== null && a.indent !== "	" && !(parseInt(a.indent, 10) === a.indent && a.indent > 0))
    throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  if (tr(a, "numericSeparator") && typeof a.numericSeparator != "boolean")
    throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  var s = a.numericSeparator;
  if (typeof t > "u")
    return "undefined";
  if (t === null)
    return "null";
  if (typeof t == "boolean")
    return t ? "true" : "false";
  if (typeof t == "string")
    return rf(t, a);
  if (typeof t == "number") {
    if (t === 0)
      return 1 / 0 / t > 0 ? "0" : "-0";
    var u = String(t);
    return s ? al(t, u) : u;
  }
  if (typeof t == "bigint") {
    var l = String(t) + "n";
    return s ? al(t, l) : l;
  }
  var f = typeof a.depth > "u" ? 5 : a.depth;
  if (typeof n > "u" && (n = 0), n >= f && f > 0 && typeof t == "object")
    return ya(t) ? "[Array]" : "[Object]";
  var c = hw(a, n);
  if (typeof o > "u")
    o = [];
  else if (tf(o, t) >= 0)
    return "[Circular]";
  function d(z, X, _) {
    if (X && (o = Y1.call(o), o.push(X)), _) {
      var A = {
        depth: a.depth
      };
      return tr(a, "quoteStyle") && (A.quoteStyle = a.quoteStyle), e2(z, A, n + 1, o);
    }
    return e2(z, a, n + 1, o);
  }
  if (typeof t == "function" && !ll(t)) {
    var h2 = sw(t), v = Dn(t, d);
    return "[Function" + (h2 ? ": " + h2 : " (anonymous)") + "]" + (v.length > 0 ? " { " + Et.call(v, ", ") + " }" : "");
  }
  if (ef(t)) {
    var m = Xr ? or.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : ma.call(t);
    return typeof t == "object" && !Xr ? fn(m) : m;
  }
  if (pw(t)) {
    for (var g = "<" + tl.call(String(t.nodeName)), y = t.attributes || [], b = 0; b < y.length; b++)
      g += " " + y[b].name + "=" + Qu(Q1(y[b].value), "double", a);
    return g += ">", t.childNodes && t.childNodes.length && (g += "..."), g += "</" + tl.call(String(t.nodeName)) + ">", g;
  }
  if (ya(t)) {
    if (t.length === 0)
      return "[]";
    var O = Dn(t, d);
    return c && !mw(O) ? "[" + ga(O, c) + "]" : "[ " + Et.call(O, ", ") + " ]";
  }
  if (tw(t)) {
    var I = Dn(t, d);
    return !("cause" in Error.prototype) && "cause" in t && !Xu.call(t, "cause") ? "{ [" + String(t) + "] " + Et.call(rl.call("[cause]: " + d(t.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(t) + "]" : "{ [" + String(t) + "] " + Et.call(I, ", ") + " }";
  }
  if (typeof t == "object" && i) {
    if (sl && typeof t[sl] == "function" && ha)
      return ha(t, { depth: f - n });
    if (i !== "symbol" && typeof t.inspect == "function")
      return t.inspect();
  }
  if (lw(t)) {
    var S = [];
    return Xs && Xs.call(t, function(z, X) {
      S.push(d(X, t, true) + " => " + d(z, t));
    }), ul("Map", io.call(t), S, c);
  }
  if (cw(t)) {
    var x = [];
    return Qs && Qs.call(t, function(z) {
      x.push(d(z, t));
    }), ul("Set", so.call(t), x, c);
  }
  if (uw(t))
    return Wo("WeakMap");
  if (dw(t))
    return Wo("WeakSet");
  if (fw(t))
    return Wo("WeakRef");
  if (nw(t))
    return fn(d(Number(t)));
  if (aw(t))
    return fn(d(va.call(t)));
  if (ow(t))
    return fn(q1.call(t));
  if (rw(t))
    return fn(d(String(t)));
  if (typeof window < "u" && t === window)
    return "{ [object Window] }";
  if (t === qn)
    return "{ [object globalThis] }";
  if (!ew(t) && !ll(t)) {
    var T = Dn(t, d), V = ol ? ol(t) === Object.prototype : t instanceof Object || t.constructor === Object, $ = t instanceof Object ? "" : "null prototype", H = !V && De && Object(t) === t && De in t ? ai.call(fr(t), 8, -1) : $ ? "Object" : "", J = V || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", R = J + (H || $ ? "[" + Et.call(rl.call([], H || [], $ || []), ": ") + "] " : "");
    return T.length === 0 ? R + "{}" : c ? R + "{" + ga(T, c) + "}" : R + "{ " + Et.call(T, ", ") + " }";
  }
  return String(t);
};
function Qu(e8, t, r) {
  var n = (r.quoteStyle || t) === "double" ? '"' : "'";
  return n + e8 + n;
}
function Q1(e8) {
  return or.call(String(e8), /"/g, "&quot;");
}
function ya(e8) {
  return fr(e8) === "[object Array]" && (!De || !(typeof e8 == "object" && De in e8));
}
function ew(e8) {
  return fr(e8) === "[object Date]" && (!De || !(typeof e8 == "object" && De in e8));
}
function ll(e8) {
  return fr(e8) === "[object RegExp]" && (!De || !(typeof e8 == "object" && De in e8));
}
function tw(e8) {
  return fr(e8) === "[object Error]" && (!De || !(typeof e8 == "object" && De in e8));
}
function rw(e8) {
  return fr(e8) === "[object String]" && (!De || !(typeof e8 == "object" && De in e8));
}
function nw(e8) {
  return fr(e8) === "[object Number]" && (!De || !(typeof e8 == "object" && De in e8));
}
function ow(e8) {
  return fr(e8) === "[object Boolean]" && (!De || !(typeof e8 == "object" && De in e8));
}
function ef(e8) {
  if (Xr)
    return e8 && typeof e8 == "object" && e8 instanceof Symbol;
  if (typeof e8 == "symbol")
    return true;
  if (!e8 || typeof e8 != "object" || !ma)
    return false;
  try {
    return ma.call(e8), true;
  } catch {
  }
  return false;
}
function aw(e8) {
  if (!e8 || typeof e8 != "object" || !va)
    return false;
  try {
    return va.call(e8), true;
  } catch {
  }
  return false;
}
var iw = Object.prototype.hasOwnProperty || function(e8) {
  return e8 in this;
};
function tr(e8, t) {
  return iw.call(e8, t);
}
function fr(e8) {
  return K1.call(e8);
}
function sw(e8) {
  if (e8.name)
    return e8.name;
  var t = G1.call(Z1.call(e8), /^function\s*([\w$]+)/);
  return t ? t[1] : null;
}
function tf(e8, t) {
  if (e8.indexOf)
    return e8.indexOf(t);
  for (var r = 0, n = e8.length; r < n; r++)
    if (e8[r] === t)
      return r;
  return -1;
}
function lw(e8) {
  if (!io || !e8 || typeof e8 != "object")
    return false;
  try {
    io.call(e8);
    try {
      so.call(e8);
    } catch {
      return true;
    }
    return e8 instanceof Map;
  } catch {
  }
  return false;
}
function uw(e8) {
  if (!vn || !e8 || typeof e8 != "object")
    return false;
  try {
    vn.call(e8, vn);
    try {
      mn.call(e8, mn);
    } catch {
      return true;
    }
    return e8 instanceof WeakMap;
  } catch {
  }
  return false;
}
function fw(e8) {
  if (!el || !e8 || typeof e8 != "object")
    return false;
  try {
    return el.call(e8), true;
  } catch {
  }
  return false;
}
function cw(e8) {
  if (!so || !e8 || typeof e8 != "object")
    return false;
  try {
    so.call(e8);
    try {
      io.call(e8);
    } catch {
      return true;
    }
    return e8 instanceof Set;
  } catch {
  }
  return false;
}
function dw(e8) {
  if (!mn || !e8 || typeof e8 != "object")
    return false;
  try {
    mn.call(e8, mn);
    try {
      vn.call(e8, vn);
    } catch {
      return true;
    }
    return e8 instanceof WeakSet;
  } catch {
  }
  return false;
}
function pw(e8) {
  return !e8 || typeof e8 != "object" ? false : typeof HTMLElement < "u" && e8 instanceof HTMLElement ? true : typeof e8.nodeName == "string" && typeof e8.getAttribute == "function";
}
function rf(e8, t) {
  if (e8.length > t.maxStringLength) {
    var r = e8.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
    return rf(ai.call(e8, 0, t.maxStringLength), t) + n;
  }
  var o = or.call(or.call(e8, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, vw);
  return Qu(o, "single", t);
}
function vw(e8) {
  var t = e8.charCodeAt(0), r = {
    8: "b",
    9: "t",
    10: "n",
    12: "f",
    13: "r"
  }[t];
  return r ? "\\" + r : "\\x" + (t < 16 ? "0" : "") + J1.call(t.toString(16));
}
function fn(e8) {
  return "Object(" + e8 + ")";
}
function Wo(e8) {
  return e8 + " { ? }";
}
function ul(e8, t, r, n) {
  var o = n ? ga(r, n) : Et.call(r, ", ");
  return e8 + " (" + t + ") {" + o + "}";
}
function mw(e8) {
  for (var t = 0; t < e8.length; t++)
    if (tf(e8[t], `
`) >= 0)
      return false;
  return true;
}
function hw(e8, t) {
  var r;
  if (e8.indent === "	")
    r = "	";
  else if (typeof e8.indent == "number" && e8.indent > 0)
    r = Et.call(Array(e8.indent + 1), " ");
  else
    return null;
  return {
    base: r,
    prev: Et.call(Array(t + 1), r)
  };
}
function ga(e8, t) {
  if (e8.length === 0)
    return "";
  var r = `
` + t.prev + t.base;
  return r + Et.call(e8, "," + r) + `
` + t.prev;
}
function Dn(e8, t) {
  var r = ya(e8), n = [];
  if (r) {
    n.length = e8.length;
    for (var o = 0; o < e8.length; o++)
      n[o] = tr(e8, o) ? t(e8[o], e8) : "";
  }
  var a = typeof Ho == "function" ? Ho(e8) : [], i;
  if (Xr) {
    i = {};
    for (var s = 0; s < a.length; s++)
      i["$" + a[s]] = a[s];
  }
  for (var u in e8)
    tr(e8, u) && (r && String(Number(u)) === u && u < e8.length || Xr && i["$" + u] instanceof Symbol || (Yu.call(/[^\w$]/, u) ? n.push(t(u, e8) + ": " + t(e8[u], e8)) : n.push(u + ": " + t(e8[u], e8))));
  if (typeof Ho == "function")
    for (var l = 0; l < a.length; l++)
      Xu.call(e8, a[l]) && n.push("[" + t(a[l]) + "]: " + t(e8[a[l]], e8));
  return n;
}
var nf = on;
var an = z1;
var yw = X1;
var gw = Cn;
var Un = nf("%WeakMap%", true);
var jn = nf("%Map%", true);
var bw = an("WeakMap.prototype.get", true);
var ww = an("WeakMap.prototype.set", true);
var Sw = an("WeakMap.prototype.has", true);
var Ew = an("Map.prototype.get", true);
var Ow = an("Map.prototype.set", true);
var Aw = an("Map.prototype.has", true);
var ii = function(e8, t) {
  for (var r = e8, n; (n = r.next) !== null; r = n)
    if (n.key === t)
      return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
      e8.next, e8.next = n, n;
};
var _w = function(e8, t) {
  var r = ii(e8, t);
  return r && r.value;
};
var Iw = function(e8, t, r) {
  var n = ii(e8, t);
  n ? n.value = r : e8.next = /** @type {import('.').ListNode<typeof value>} */
  {
    // eslint-disable-line no-param-reassign, no-extra-parens
    key: t,
    next: e8.next,
    value: r
  };
};
var Cw = function(e8, t) {
  return !!ii(e8, t);
};
var xw = function() {
  var t, r, n, o = {
    assert: function(a) {
      if (!o.has(a))
        throw new gw("Side channel does not contain " + yw(a));
    },
    get: function(a) {
      if (Un && a && (typeof a == "object" || typeof a == "function")) {
        if (t)
          return bw(t, a);
      } else if (jn) {
        if (r)
          return Ew(r, a);
      } else if (n)
        return _w(n, a);
    },
    has: function(a) {
      if (Un && a && (typeof a == "object" || typeof a == "function")) {
        if (t)
          return Sw(t, a);
      } else if (jn) {
        if (r)
          return Aw(r, a);
      } else if (n)
        return Cw(n, a);
      return false;
    },
    set: function(a, i) {
      Un && a && (typeof a == "object" || typeof a == "function") ? (t || (t = new Un()), ww(t, a, i)) : jn ? (r || (r = new jn()), Ow(r, a, i)) : (n || (n = { key: {}, next: null }), Iw(n, a, i));
    }
  };
  return o;
};
var Tw = String.prototype.replace;
var Pw = /%20/g;
var qo = {
  RFC1738: "RFC1738",
  RFC3986: "RFC3986"
};
var si = {
  default: qo.RFC3986,
  formatters: {
    RFC1738: function(e8) {
      return Tw.call(e8, Pw, "+");
    },
    RFC3986: function(e8) {
      return String(e8);
    }
  },
  RFC1738: qo.RFC1738,
  RFC3986: qo.RFC3986
};
var $w = si;
var Ko = Object.prototype.hasOwnProperty;
var mr = Array.isArray;
var wt = function() {
  for (var e8 = [], t = 0; t < 256; ++t)
    e8.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
  return e8;
}();
var Fw = function(t) {
  for (; t.length > 1; ) {
    var r = t.pop(), n = r.obj[r.prop];
    if (mr(n)) {
      for (var o = [], a = 0; a < n.length; ++a)
        typeof n[a] < "u" && o.push(n[a]);
      r.obj[r.prop] = o;
    }
  }
};
var of = function(t, r) {
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = 0; o < t.length; ++o)
    typeof t[o] < "u" && (n[o] = t[o]);
  return n;
};
var Mw = function e3(t, r, n) {
  if (!r)
    return t;
  if (typeof r != "object") {
    if (mr(t))
      t.push(r);
    else if (t && typeof t == "object")
      (n && (n.plainObjects || n.allowPrototypes) || !Ko.call(Object.prototype, r)) && (t[r] = true);
    else
      return [t, r];
    return t;
  }
  if (!t || typeof t != "object")
    return [t].concat(r);
  var o = t;
  return mr(t) && !mr(r) && (o = of(t, n)), mr(t) && mr(r) ? (r.forEach(function(a, i) {
    if (Ko.call(t, i)) {
      var s = t[i];
      s && typeof s == "object" && a && typeof a == "object" ? t[i] = e3(s, a, n) : t.push(a);
    } else
      t[i] = a;
  }), t) : Object.keys(r).reduce(function(a, i) {
    var s = r[i];
    return Ko.call(a, i) ? a[i] = e3(a[i], s, n) : a[i] = s, a;
  }, o);
};
var Vw = function(t, r) {
  return Object.keys(r).reduce(function(n, o) {
    return n[o] = r[o], n;
  }, t);
};
var Rw = function(e8, t, r) {
  var n = e8.replace(/\+/g, " ");
  if (r === "iso-8859-1")
    return n.replace(/%[0-9a-f]{2}/gi, unescape);
  try {
    return decodeURIComponent(n);
  } catch {
    return n;
  }
};
var Nw = function(t, r, n, o, a) {
  if (t.length === 0)
    return t;
  var i = t;
  if (typeof t == "symbol" ? i = Symbol.prototype.toString.call(t) : typeof t != "string" && (i = String(t)), n === "iso-8859-1")
    return escape(i).replace(/%u[0-9a-f]{4}/gi, function(f) {
      return "%26%23" + parseInt(f.slice(2), 16) + "%3B";
    });
  for (var s = "", u = 0; u < i.length; ++u) {
    var l = i.charCodeAt(u);
    if (l === 45 || l === 46 || l === 95 || l === 126 || l >= 48 && l <= 57 || l >= 65 && l <= 90 || l >= 97 && l <= 122 || a === $w.RFC1738 && (l === 40 || l === 41)) {
      s += i.charAt(u);
      continue;
    }
    if (l < 128) {
      s = s + wt[l];
      continue;
    }
    if (l < 2048) {
      s = s + (wt[192 | l >> 6] + wt[128 | l & 63]);
      continue;
    }
    if (l < 55296 || l >= 57344) {
      s = s + (wt[224 | l >> 12] + wt[128 | l >> 6 & 63] + wt[128 | l & 63]);
      continue;
    }
    u += 1, l = 65536 + ((l & 1023) << 10 | i.charCodeAt(u) & 1023), s += wt[240 | l >> 18] + wt[128 | l >> 12 & 63] + wt[128 | l >> 6 & 63] + wt[128 | l & 63];
  }
  return s;
};
var kw = function(t) {
  for (var r = [{ obj: { o: t }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
    for (var a = r[o], i = a.obj[a.prop], s = Object.keys(i), u = 0; u < s.length; ++u) {
      var l = s[u], f = i[l];
      typeof f == "object" && f !== null && n.indexOf(f) === -1 && (r.push({ obj: i, prop: l }), n.push(f));
    }
  return Fw(r), t;
};
var Lw = function(t) {
  return Object.prototype.toString.call(t) === "[object RegExp]";
};
var zw = function(t) {
  return !t || typeof t != "object" ? false : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t));
};
var Bw = function(t, r) {
  return [].concat(t, r);
};
var Dw = function(t, r) {
  if (mr(t)) {
    for (var n = [], o = 0; o < t.length; o += 1)
      n.push(r(t[o]));
    return n;
  }
  return r(t);
};
var af = {
  arrayToObject: of,
  assign: Vw,
  combine: Bw,
  compact: kw,
  decode: Rw,
  encode: Nw,
  isBuffer: zw,
  isRegExp: Lw,
  maybeMap: Dw,
  merge: Mw
};
var sf = xw;
var Gn = af;
var hn = si;
var Uw = Object.prototype.hasOwnProperty;
var lf = {
  brackets: function(t) {
    return t + "[]";
  },
  comma: "comma",
  indices: function(t, r) {
    return t + "[" + r + "]";
  },
  repeat: function(t) {
    return t;
  }
};
var St = Array.isArray;
var jw = Array.prototype.push;
var uf = function(e8, t) {
  jw.apply(e8, St(t) ? t : [t]);
};
var Hw = Date.prototype.toISOString;
var fl = hn.default;
var $e = {
  addQueryPrefix: false,
  allowDots: false,
  allowEmptyArrays: false,
  arrayFormat: "indices",
  charset: "utf-8",
  charsetSentinel: false,
  delimiter: "&",
  encode: true,
  encodeDotInKeys: false,
  encoder: Gn.encode,
  encodeValuesOnly: false,
  format: fl,
  formatter: hn.formatters[fl],
  // deprecated
  indices: false,
  serializeDate: function(t) {
    return Hw.call(t);
  },
  skipNulls: false,
  strictNullHandling: false
};
var Ww = function(t) {
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint";
};
var Zo = {};
var qw = function e4(t, r, n, o, a, i, s, u, l, f, c, d, h2, v, m, g, y, b) {
  for (var O = t, I = b, S = 0, x = false; (I = I.get(Zo)) !== void 0 && !x; ) {
    var T = I.get(t);
    if (S += 1, typeof T < "u") {
      if (T === S)
        throw new RangeError("Cyclic object value");
      x = true;
    }
    typeof I.get(Zo) > "u" && (S = 0);
  }
  if (typeof f == "function" ? O = f(r, O) : O instanceof Date ? O = h2(O) : n === "comma" && St(O) && (O = Gn.maybeMap(O, function(P) {
    return P instanceof Date ? h2(P) : P;
  })), O === null) {
    if (i)
      return l && !g ? l(r, $e.encoder, y, "key", v) : r;
    O = "";
  }
  if (Ww(O) || Gn.isBuffer(O)) {
    if (l) {
      var V = g ? r : l(r, $e.encoder, y, "key", v);
      return [m(V) + "=" + m(l(O, $e.encoder, y, "value", v))];
    }
    return [m(r) + "=" + m(String(O))];
  }
  var $ = [];
  if (typeof O > "u")
    return $;
  var H;
  if (n === "comma" && St(O))
    g && l && (O = Gn.maybeMap(O, l)), H = [{ value: O.length > 0 ? O.join(",") || null : void 0 }];
  else if (St(f))
    H = f;
  else {
    var J = Object.keys(O);
    H = c ? J.sort(c) : J;
  }
  var R = u ? r.replace(/\./g, "%2E") : r, z = o && St(O) && O.length === 1 ? R + "[]" : R;
  if (a && St(O) && O.length === 0)
    return z + "[]";
  for (var X = 0; X < H.length; ++X) {
    var _ = H[X], A = typeof _ == "object" && typeof _.value < "u" ? _.value : O[_];
    if (!(s && A === null)) {
      var k = d && u ? _.replace(/\./g, "%2E") : _, Q = St(O) ? typeof n == "function" ? n(z, k) : z : z + (d ? "." + k : "[" + k + "]");
      b.set(t, S);
      var K = sf();
      K.set(Zo, b), uf($, e4(
        A,
        Q,
        n,
        o,
        a,
        i,
        s,
        u,
        n === "comma" && g && St(O) ? null : l,
        f,
        c,
        d,
        h2,
        v,
        m,
        g,
        y,
        K
      ));
    }
  }
  return $;
};
var Kw = function(t) {
  if (!t)
    return $e;
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof t.encodeDotInKeys < "u" && typeof t.encodeDotInKeys != "boolean")
    throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
  if (t.encoder !== null && typeof t.encoder < "u" && typeof t.encoder != "function")
    throw new TypeError("Encoder has to be a function.");
  var r = t.charset || $e.charset;
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var n = hn.default;
  if (typeof t.format < "u") {
    if (!Uw.call(hn.formatters, t.format))
      throw new TypeError("Unknown format option provided.");
    n = t.format;
  }
  var o = hn.formatters[n], a = $e.filter;
  (typeof t.filter == "function" || St(t.filter)) && (a = t.filter);
  var i;
  if (t.arrayFormat in lf ? i = t.arrayFormat : "indices" in t ? i = t.indices ? "indices" : "repeat" : i = $e.arrayFormat, "commaRoundTrip" in t && typeof t.commaRoundTrip != "boolean")
    throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  var s = typeof t.allowDots > "u" ? t.encodeDotInKeys === true ? true : $e.allowDots : !!t.allowDots;
  return {
    addQueryPrefix: typeof t.addQueryPrefix == "boolean" ? t.addQueryPrefix : $e.addQueryPrefix,
    allowDots: s,
    allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : $e.allowEmptyArrays,
    arrayFormat: i,
    charset: r,
    charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : $e.charsetSentinel,
    commaRoundTrip: t.commaRoundTrip,
    delimiter: typeof t.delimiter > "u" ? $e.delimiter : t.delimiter,
    encode: typeof t.encode == "boolean" ? t.encode : $e.encode,
    encodeDotInKeys: typeof t.encodeDotInKeys == "boolean" ? t.encodeDotInKeys : $e.encodeDotInKeys,
    encoder: typeof t.encoder == "function" ? t.encoder : $e.encoder,
    encodeValuesOnly: typeof t.encodeValuesOnly == "boolean" ? t.encodeValuesOnly : $e.encodeValuesOnly,
    filter: a,
    format: n,
    formatter: o,
    serializeDate: typeof t.serializeDate == "function" ? t.serializeDate : $e.serializeDate,
    skipNulls: typeof t.skipNulls == "boolean" ? t.skipNulls : $e.skipNulls,
    sort: typeof t.sort == "function" ? t.sort : null,
    strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : $e.strictNullHandling
  };
};
var Zw = function(e8, t) {
  var r = e8, n = Kw(t), o, a;
  typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : St(n.filter) && (a = n.filter, o = a);
  var i = [];
  if (typeof r != "object" || r === null)
    return "";
  var s = lf[n.arrayFormat], u = s === "comma" && n.commaRoundTrip;
  o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
  for (var l = sf(), f = 0; f < o.length; ++f) {
    var c = o[f];
    n.skipNulls && r[c] === null || uf(i, qw(
      r[c],
      c,
      s,
      u,
      n.allowEmptyArrays,
      n.strictNullHandling,
      n.skipNulls,
      n.encodeDotInKeys,
      n.encode ? n.encoder : null,
      n.filter,
      n.sort,
      n.allowDots,
      n.serializeDate,
      n.format,
      n.formatter,
      n.encodeValuesOnly,
      n.charset,
      l
    ));
  }
  var d = i.join(n.delimiter), h2 = n.addQueryPrefix === true ? "?" : "";
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? h2 += "utf8=%26%2310003%3B&" : h2 += "utf8=%E2%9C%93&"), d.length > 0 ? h2 + d : "";
};
var Qr = af;
var ba = Object.prototype.hasOwnProperty;
var Gw = Array.isArray;
var Ie = {
  allowDots: false,
  allowEmptyArrays: false,
  allowPrototypes: false,
  allowSparse: false,
  arrayLimit: 20,
  charset: "utf-8",
  charsetSentinel: false,
  comma: false,
  decodeDotInKeys: true,
  decoder: Qr.decode,
  delimiter: "&",
  depth: 5,
  duplicates: "combine",
  ignoreQueryPrefix: false,
  interpretNumericEntities: false,
  parameterLimit: 1e3,
  parseArrays: true,
  plainObjects: false,
  strictNullHandling: false
};
var Jw = function(e8) {
  return e8.replace(/&#(\d+);/g, function(t, r) {
    return String.fromCharCode(parseInt(r, 10));
  });
};
var ff = function(e8, t) {
  return e8 && typeof e8 == "string" && t.comma && e8.indexOf(",") > -1 ? e8.split(",") : e8;
};
var Yw = "utf8=%26%2310003%3B";
var Xw = "utf8=%E2%9C%93";
var Qw = function(t, r) {
  var n = { __proto__: null }, o = r.ignoreQueryPrefix ? t.replace(/^\?/, "") : t, a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(r.delimiter, a), s = -1, u, l = r.charset;
  if (r.charsetSentinel)
    for (u = 0; u < i.length; ++u)
      i[u].indexOf("utf8=") === 0 && (i[u] === Xw ? l = "utf-8" : i[u] === Yw && (l = "iso-8859-1"), s = u, u = i.length);
  for (u = 0; u < i.length; ++u)
    if (u !== s) {
      var f = i[u], c = f.indexOf("]="), d = c === -1 ? f.indexOf("=") : c + 1, h2, v;
      d === -1 ? (h2 = r.decoder(f, Ie.decoder, l, "key"), v = r.strictNullHandling ? null : "") : (h2 = r.decoder(f.slice(0, d), Ie.decoder, l, "key"), v = Qr.maybeMap(
        ff(f.slice(d + 1), r),
        function(g) {
          return r.decoder(g, Ie.decoder, l, "value");
        }
      )), v && r.interpretNumericEntities && l === "iso-8859-1" && (v = Jw(v)), f.indexOf("[]=") > -1 && (v = Gw(v) ? [v] : v);
      var m = ba.call(n, h2);
      m && r.duplicates === "combine" ? n[h2] = Qr.combine(n[h2], v) : (!m || r.duplicates === "last") && (n[h2] = v);
    }
  return n;
};
var eS = function(e8, t, r, n) {
  for (var o = n ? t : ff(t, r), a = e8.length - 1; a >= 0; --a) {
    var i, s = e8[a];
    if (s === "[]" && r.parseArrays)
      i = r.allowEmptyArrays && o === "" ? [] : [].concat(o);
    else {
      i = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
      var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, l = r.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, f = parseInt(l, 10);
      !r.parseArrays && l === "" ? i = { 0: o } : !isNaN(f) && s !== l && String(f) === l && f >= 0 && r.parseArrays && f <= r.arrayLimit ? (i = [], i[f] = o) : l !== "__proto__" && (i[l] = o);
    }
    o = i;
  }
  return o;
};
var tS = function(t, r, n, o) {
  if (t) {
    var a = n.allowDots ? t.replace(/\.([^.[]+)/g, "[$1]") : t, i = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = n.depth > 0 && i.exec(a), l = u ? a.slice(0, u.index) : a, f = [];
    if (l) {
      if (!n.plainObjects && ba.call(Object.prototype, l) && !n.allowPrototypes)
        return;
      f.push(l);
    }
    for (var c = 0; n.depth > 0 && (u = s.exec(a)) !== null && c < n.depth; ) {
      if (c += 1, !n.plainObjects && ba.call(Object.prototype, u[1].slice(1, -1)) && !n.allowPrototypes)
        return;
      f.push(u[1]);
    }
    return u && f.push("[" + a.slice(u.index) + "]"), eS(f, r, n, o);
  }
};
var rS = function(t) {
  if (!t)
    return Ie;
  if (typeof t.allowEmptyArrays < "u" && typeof t.allowEmptyArrays != "boolean")
    throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
  if (typeof t.decodeDotInKeys < "u" && typeof t.decodeDotInKeys != "boolean")
    throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
  if (t.decoder !== null && typeof t.decoder < "u" && typeof t.decoder != "function")
    throw new TypeError("Decoder has to be a function.");
  if (typeof t.charset < "u" && t.charset !== "utf-8" && t.charset !== "iso-8859-1")
    throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  var r = typeof t.charset > "u" ? Ie.charset : t.charset, n = typeof t.duplicates > "u" ? Ie.duplicates : t.duplicates;
  if (n !== "combine" && n !== "first" && n !== "last")
    throw new TypeError("The duplicates option must be either combine, first, or last");
  var o = typeof t.allowDots > "u" ? t.decodeDotInKeys === true ? true : Ie.allowDots : !!t.allowDots;
  return {
    allowDots: o,
    allowEmptyArrays: typeof t.allowEmptyArrays == "boolean" ? !!t.allowEmptyArrays : Ie.allowEmptyArrays,
    allowPrototypes: typeof t.allowPrototypes == "boolean" ? t.allowPrototypes : Ie.allowPrototypes,
    allowSparse: typeof t.allowSparse == "boolean" ? t.allowSparse : Ie.allowSparse,
    arrayLimit: typeof t.arrayLimit == "number" ? t.arrayLimit : Ie.arrayLimit,
    charset: r,
    charsetSentinel: typeof t.charsetSentinel == "boolean" ? t.charsetSentinel : Ie.charsetSentinel,
    comma: typeof t.comma == "boolean" ? t.comma : Ie.comma,
    decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : Ie.decodeDotInKeys,
    decoder: typeof t.decoder == "function" ? t.decoder : Ie.decoder,
    delimiter: typeof t.delimiter == "string" || Qr.isRegExp(t.delimiter) ? t.delimiter : Ie.delimiter,
    // eslint-disable-next-line no-implicit-coercion, no-extra-parens
    depth: typeof t.depth == "number" || t.depth === false ? +t.depth : Ie.depth,
    duplicates: n,
    ignoreQueryPrefix: t.ignoreQueryPrefix === true,
    interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : Ie.interpretNumericEntities,
    parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : Ie.parameterLimit,
    parseArrays: t.parseArrays !== false,
    plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : Ie.plainObjects,
    strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : Ie.strictNullHandling
  };
};
var nS = function(e8, t) {
  var r = rS(t);
  if (e8 === "" || e8 === null || typeof e8 > "u")
    return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  for (var n = typeof e8 == "string" ? Qw(e8, r) : e8, o = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
    var s = a[i], u = tS(s, n[s], r, typeof e8 == "string");
    o = Qr.merge(o, u, r);
  }
  return r.allowSparse === true ? o : Qr.compact(o);
};
var oS = Zw;
var aS = nS;
var iS = si;
var sS = {
  formats: iS,
  parse: aS,
  stringify: oS
};
var lS = jb;
function ot() {
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
}
var uS = /^([a-z0-9.+-]+:)/i;
var fS = /:[0-9]*$/;
var cS = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/;
var dS = [
  "<",
  ">",
  '"',
  "`",
  " ",
  "\r",
  `
`,
  "	"
];
var pS = [
  "{",
  "}",
  "|",
  "\\",
  "^",
  "`"
].concat(dS);
var wa = ["'"].concat(pS);
var cl = [
  "%",
  "/",
  "?",
  ";",
  "#"
].concat(wa);
var dl = [
  "/",
  "?",
  "#"
];
var vS = 255;
var pl = /^[+a-z0-9A-Z_-]{0,63}$/;
var mS = /^([+a-z0-9A-Z_-]{0,63})(.*)$/;
var hS = {
  javascript: true,
  "javascript:": true
};
var Sa = {
  javascript: true,
  "javascript:": true
};
var Dr = {
  http: true,
  https: true,
  ftp: true,
  gopher: true,
  file: true,
  "http:": true,
  "https:": true,
  "ftp:": true,
  "gopher:": true,
  "file:": true
};
var Ea = sS;
function Tn(e8, t, r) {
  if (e8 && typeof e8 == "object" && e8 instanceof ot)
    return e8;
  var n = new ot();
  return n.parse(e8, t, r), n;
}
ot.prototype.parse = function(e8, t, r) {
  if (typeof e8 != "string")
    throw new TypeError("Parameter 'url' must be a string, not " + typeof e8);
  var n = e8.indexOf("?"), o = n !== -1 && n < e8.indexOf("#") ? "?" : "#", a = e8.split(o), i = /\\/g;
  a[0] = a[0].replace(i, "/"), e8 = a.join(o);
  var s = e8;
  if (s = s.trim(), !r && e8.split("#").length === 1) {
    var u = cS.exec(s);
    if (u)
      return this.path = s, this.href = s, this.pathname = u[1], u[2] ? (this.search = u[2], t ? this.query = Ea.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : t && (this.search = "", this.query = {}), this;
  }
  var l = uS.exec(s);
  if (l) {
    l = l[0];
    var f = l.toLowerCase();
    this.protocol = f, s = s.substr(l.length);
  }
  if (r || l || s.match(/^\/\/[^@/]+@[^@/]+/)) {
    var c = s.substr(0, 2) === "//";
    c && !(l && Sa[l]) && (s = s.substr(2), this.slashes = true);
  }
  if (!Sa[l] && (c || l && !Dr[l])) {
    for (var d = -1, h2 = 0; h2 < dl.length; h2++) {
      var v = s.indexOf(dl[h2]);
      v !== -1 && (d === -1 || v < d) && (d = v);
    }
    var m, g;
    d === -1 ? g = s.lastIndexOf("@") : g = s.lastIndexOf("@", d), g !== -1 && (m = s.slice(0, g), s = s.slice(g + 1), this.auth = decodeURIComponent(m)), d = -1;
    for (var h2 = 0; h2 < cl.length; h2++) {
      var v = s.indexOf(cl[h2]);
      v !== -1 && (d === -1 || v < d) && (d = v);
    }
    d === -1 && (d = s.length), this.host = s.slice(0, d), s = s.slice(d), this.parseHost(), this.hostname = this.hostname || "";
    var y = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
    if (!y)
      for (var b = this.hostname.split(/\./), h2 = 0, O = b.length; h2 < O; h2++) {
        var I = b[h2];
        if (I && !I.match(pl)) {
          for (var S = "", x = 0, T = I.length; x < T; x++)
            I.charCodeAt(x) > 127 ? S += "x" : S += I[x];
          if (!S.match(pl)) {
            var V = b.slice(0, h2), $ = b.slice(h2 + 1), H = I.match(mS);
            H && (V.push(H[1]), $.unshift(H[2])), $.length && (s = "/" + $.join(".") + s), this.hostname = V.join(".");
            break;
          }
        }
      }
    this.hostname.length > vS ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), y || (this.hostname = lS.toASCII(this.hostname));
    var J = this.port ? ":" + this.port : "", R = this.hostname || "";
    this.host = R + J, this.href += this.host, y && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
  }
  if (!hS[f])
    for (var h2 = 0, O = wa.length; h2 < O; h2++) {
      var z = wa[h2];
      if (s.indexOf(z) !== -1) {
        var X = encodeURIComponent(z);
        X === z && (X = escape(z)), s = s.split(z).join(X);
      }
    }
  var _ = s.indexOf("#");
  _ !== -1 && (this.hash = s.substr(_), s = s.slice(0, _));
  var A = s.indexOf("?");
  if (A !== -1 ? (this.search = s.substr(A), this.query = s.substr(A + 1), t && (this.query = Ea.parse(this.query)), s = s.slice(0, A)) : t && (this.search = "", this.query = {}), s && (this.pathname = s), Dr[f] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
    var J = this.pathname || "", k = this.search || "";
    this.path = J + k;
  }
  return this.href = this.format(), this;
};
function yS(e8) {
  return typeof e8 == "string" && (e8 = Tn(e8)), e8 instanceof ot ? e8.format() : ot.prototype.format.call(e8);
}
ot.prototype.format = function() {
  var e8 = this.auth || "";
  e8 && (e8 = encodeURIComponent(e8), e8 = e8.replace(/%3A/i, ":"), e8 += "@");
  var t = this.protocol || "", r = this.pathname || "", n = this.hash || "", o = false, a = "";
  this.host ? o = e8 + this.host : this.hostname && (o = e8 + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (o += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (a = Ea.stringify(this.query, {
    arrayFormat: "repeat",
    addQueryPrefix: false
  }));
  var i = this.search || a && "?" + a || "";
  return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || Dr[t]) && o !== false ? (o = "//" + (o || ""), r && r.charAt(0) !== "/" && (r = "/" + r)) : o || (o = ""), n && n.charAt(0) !== "#" && (n = "#" + n), i && i.charAt(0) !== "?" && (i = "?" + i), r = r.replace(/[?#]/g, function(s) {
    return encodeURIComponent(s);
  }), i = i.replace("#", "%23"), t + o + r + i + n;
};
function gS(e8, t) {
  return Tn(e8, false, true).resolve(t);
}
ot.prototype.resolve = function(e8) {
  return this.resolveObject(Tn(e8, false, true)).format();
};
function bS(e8, t) {
  return e8 ? Tn(e8, false, true).resolveObject(t) : t;
}
ot.prototype.resolveObject = function(e8) {
  if (typeof e8 == "string") {
    var t = new ot();
    t.parse(e8, false, true), e8 = t;
  }
  for (var r = new ot(), n = Object.keys(this), o = 0; o < n.length; o++) {
    var a = n[o];
    r[a] = this[a];
  }
  if (r.hash = e8.hash, e8.href === "")
    return r.href = r.format(), r;
  if (e8.slashes && !e8.protocol) {
    for (var i = Object.keys(e8), s = 0; s < i.length; s++) {
      var u = i[s];
      u !== "protocol" && (r[u] = e8[u]);
    }
    return Dr[r.protocol] && r.hostname && !r.pathname && (r.pathname = "/", r.path = r.pathname), r.href = r.format(), r;
  }
  if (e8.protocol && e8.protocol !== r.protocol) {
    if (!Dr[e8.protocol]) {
      for (var l = Object.keys(e8), f = 0; f < l.length; f++) {
        var c = l[f];
        r[c] = e8[c];
      }
      return r.href = r.format(), r;
    }
    if (r.protocol = e8.protocol, !e8.host && !Sa[e8.protocol]) {
      for (var O = (e8.pathname || "").split("/"); O.length && !(e8.host = O.shift()); )
        ;
      e8.host || (e8.host = ""), e8.hostname || (e8.hostname = ""), O[0] !== "" && O.unshift(""), O.length < 2 && O.unshift(""), r.pathname = O.join("/");
    } else
      r.pathname = e8.pathname;
    if (r.search = e8.search, r.query = e8.query, r.host = e8.host || "", r.auth = e8.auth, r.hostname = e8.hostname || e8.host, r.port = e8.port, r.pathname || r.search) {
      var d = r.pathname || "", h2 = r.search || "";
      r.path = d + h2;
    }
    return r.slashes = r.slashes || e8.slashes, r.href = r.format(), r;
  }
  var v = r.pathname && r.pathname.charAt(0) === "/", m = e8.host || e8.pathname && e8.pathname.charAt(0) === "/", g = m || v || r.host && e8.pathname, y = g, b = r.pathname && r.pathname.split("/") || [], O = e8.pathname && e8.pathname.split("/") || [], I = r.protocol && !Dr[r.protocol];
  if (I && (r.hostname = "", r.port = null, r.host && (b[0] === "" ? b[0] = r.host : b.unshift(r.host)), r.host = "", e8.protocol && (e8.hostname = null, e8.port = null, e8.host && (O[0] === "" ? O[0] = e8.host : O.unshift(e8.host)), e8.host = null), g = g && (O[0] === "" || b[0] === "")), m)
    r.host = e8.host || e8.host === "" ? e8.host : r.host, r.hostname = e8.hostname || e8.hostname === "" ? e8.hostname : r.hostname, r.search = e8.search, r.query = e8.query, b = O;
  else if (O.length)
    b || (b = []), b.pop(), b = b.concat(O), r.search = e8.search, r.query = e8.query;
  else if (e8.search != null) {
    if (I) {
      r.host = b.shift(), r.hostname = r.host;
      var S = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : false;
      S && (r.auth = S.shift(), r.hostname = S.shift(), r.host = r.hostname);
    }
    return r.search = e8.search, r.query = e8.query, (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.href = r.format(), r;
  }
  if (!b.length)
    return r.pathname = null, r.search ? r.path = "/" + r.search : r.path = null, r.href = r.format(), r;
  for (var x = b.slice(-1)[0], T = (r.host || e8.host || b.length > 1) && (x === "." || x === "..") || x === "", V = 0, $ = b.length; $ >= 0; $--)
    x = b[$], x === "." ? b.splice($, 1) : x === ".." ? (b.splice($, 1), V++) : V && (b.splice($, 1), V--);
  if (!g && !y)
    for (; V--; V)
      b.unshift("..");
  g && b[0] !== "" && (!b[0] || b[0].charAt(0) !== "/") && b.unshift(""), T && b.join("/").substr(-1) !== "/" && b.push("");
  var H = b[0] === "" || b[0] && b[0].charAt(0) === "/";
  if (I) {
    r.hostname = H ? "" : b.length ? b.shift() : "", r.host = r.hostname;
    var S = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : false;
    S && (r.auth = S.shift(), r.hostname = S.shift(), r.host = r.hostname);
  }
  return g = g || r.host && b.length, g && !H && b.unshift(""), b.length > 0 ? r.pathname = b.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = e8.auth || r.auth, r.slashes = r.slashes || e8.slashes, r.href = r.format(), r;
};
ot.prototype.parseHost = function() {
  var e8 = this.host, t = fS.exec(e8);
  t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e8 = e8.substr(0, e8.length - t.length)), e8 && (this.hostname = e8);
};
ur.parse = Tn;
ur.resolve = gS;
ur.resolveObject = bS;
ur.format = yS;
ur.Url = ot;
var xe = {};
var cf = ur;
var Oa = xe.ValidationError = function(t, r, n, o, a, i) {
  if (Array.isArray(o) ? (this.path = o, this.property = o.reduce(function(u, l) {
    return u + df(l);
  }, "instance")) : o !== void 0 && (this.property = o), t && (this.message = t), n) {
    var s = n.$id || n.id;
    this.schema = s || n;
  }
  r !== void 0 && (this.instance = r), this.name = a, this.argument = i, this.stack = this.toString();
};
Oa.prototype.toString = function() {
  return this.property + " " + this.message;
};
var Ao = xe.ValidatorResult = function(t, r, n, o) {
  this.instance = t, this.schema = r, this.options = n, this.path = o.path, this.propertyPath = o.propertyPath, this.errors = [], this.throwError = n && n.throwError, this.throwFirst = n && n.throwFirst, this.throwAll = n && n.throwAll, this.disableFormat = n && n.disableFormat === true;
};
Ao.prototype.addError = function(t) {
  var r;
  if (typeof t == "string")
    r = new Oa(t, this.instance, this.schema, this.path);
  else {
    if (!t) throw new Error("Missing error detail");
    if (!t.message) throw new Error("Missing error message");
    if (!t.name) throw new Error("Missing validator type");
    r = new Oa(t.message, this.instance, this.schema, this.path, t.name, t.argument);
  }
  if (this.errors.push(r), this.throwFirst)
    throw new Ar(this);
  if (this.throwError)
    throw r;
  return r;
};
Ao.prototype.importErrors = function(t) {
  typeof t == "string" || t && t.validatorType ? this.addError(t) : t && t.errors && (this.errors = this.errors.concat(t.errors));
};
function wS(e8, t) {
  return t + ": " + e8.toString() + `
`;
}
Ao.prototype.toString = function(t) {
  return this.errors.map(wS).join("");
};
Object.defineProperty(Ao.prototype, "valid", { get: function() {
  return !this.errors.length;
} });
xe.ValidatorResultError = Ar;
function Ar(e8) {
  Error.captureStackTrace && Error.captureStackTrace(this, Ar), this.instance = e8.instance, this.schema = e8.schema, this.options = e8.options, this.errors = e8.errors;
}
Ar.prototype = new Error();
Ar.prototype.constructor = Ar;
Ar.prototype.name = "Validation Error";
var vl = xe.SchemaError = function e5(t, r) {
  this.message = t, this.schema = r, Error.call(this, t), Error.captureStackTrace(this, e5);
};
vl.prototype = Object.create(
  Error.prototype,
  {
    constructor: { value: vl, enumerable: false },
    name: { value: "SchemaError", enumerable: false }
  }
);
var Aa = xe.SchemaContext = function(t, r, n, o, a) {
  this.schema = t, this.options = r, Array.isArray(n) ? (this.path = n, this.propertyPath = n.reduce(function(i, s) {
    return i + df(s);
  }, "instance")) : this.propertyPath = n, this.base = o, this.schemas = a;
};
Aa.prototype.resolve = function(t) {
  return cf.resolve(this.base, t);
};
Aa.prototype.makeChild = function(t, r) {
  var n = r === void 0 ? this.path : this.path.concat([r]), o = t.$id || t.id, a = cf.resolve(this.base, o || ""), i = new Aa(t, this.options, n, a, Object.create(this.schemas));
  return o && !i.schemas[a] && (i.schemas[a] = t), i;
};
var dt = xe.FORMAT_REGEXPS = {
  // 7.3.1. Dates, Times, and Duration
  "date-time": /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,
  date: /^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,
  time: /^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,
  duration: /P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,
  // 7.3.2. Email Addresses
  // TODO: fix the email production
  email: /^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,
  "idn-email": /^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,
  // 7.3.3. Hostnames
  // 7.3.4. IP Addresses
  "ip-address": /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
  // FIXME whitespace is invalid
  ipv6: /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,
  // 7.3.5. Resource Identifiers
  // TODO: A more accurate regular expression for "uri" goes:
  // [A-Za-z][+\-.0-9A-Za-z]*:((/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?)?#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])|/?%[0-9A-Fa-f]{2}|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*(#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|/(/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?)?
  uri: /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,
  "uri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,
  iri: /^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,
  "iri-reference": /^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,
  uuid: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,
  // 7.3.6. uri-template
  "uri-template": /(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,
  // 7.3.7. JSON Pointers
  "json-pointer": /^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,
  "relative-json-pointer": /^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,
  // hostname regex from: http://stackoverflow.com/a/1420225/5628
  hostname: /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
  "host-name": /^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,
  "utc-millisec": function(e8) {
    return typeof e8 == "string" && parseFloat(e8) === parseInt(e8, 10) && !isNaN(e8);
  },
  // 7.3.8. regex
  regex: function(e8) {
    var t = true;
    try {
      new RegExp(e8);
    } catch {
      t = false;
    }
    return t;
  },
  // Other definitions
  // "style" was removed from JSON Schema in draft-4 and is deprecated
  style: /[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,
  // "color" was removed from JSON Schema in draft-4 and is deprecated
  color: /^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,
  phone: /^\+(?:[0-9] ?){6,14}[0-9]$/,
  alpha: /^[a-zA-Z]+$/,
  alphanumeric: /^[a-zA-Z0-9]+$/
};
dt.regexp = dt.regex;
dt.pattern = dt.regex;
dt.ipv4 = dt["ip-address"];
xe.isFormat = function(t, r, n) {
  if (typeof t == "string" && dt[r] !== void 0) {
    if (dt[r] instanceof RegExp)
      return dt[r].test(t);
    if (typeof dt[r] == "function")
      return dt[r](t);
  } else if (n && n.customFormats && typeof n.customFormats[r] == "function")
    return n.customFormats[r](t);
  return true;
};
var df = xe.makeSuffix = function(t) {
  return t = t.toString(), !t.match(/[.\s\[\]]/) && !t.match(/^[\d]/) ? "." + t : t.match(/^\d+$/) ? "[" + t + "]" : "[" + JSON.stringify(t) + "]";
};
xe.deepCompareStrict = function e6(t, r) {
  if (typeof t != typeof r)
    return false;
  if (Array.isArray(t))
    return !Array.isArray(r) || t.length !== r.length ? false : t.every(function(a, i) {
      return e6(t[i], r[i]);
    });
  if (typeof t == "object") {
    if (!t || !r)
      return t === r;
    var n = Object.keys(t), o = Object.keys(r);
    return n.length !== o.length ? false : n.every(function(a) {
      return e6(t[a], r[a]);
    });
  }
  return t === r;
};
function SS(e8, t, r, n) {
  typeof r == "object" ? t[n] = li(e8[n], r) : e8.indexOf(r) === -1 && t.push(r);
}
function ES(e8, t, r) {
  t[r] = e8[r];
}
function OS(e8, t, r, n) {
  typeof t[n] != "object" || !t[n] ? r[n] = t[n] : e8[n] ? r[n] = li(e8[n], t[n]) : r[n] = t[n];
}
function li(e8, t) {
  var r = Array.isArray(t), n = r && [] || {};
  return r ? (e8 = e8 || [], n = n.concat(e8), t.forEach(SS.bind(null, e8, n))) : (e8 && typeof e8 == "object" && Object.keys(e8).forEach(ES.bind(null, e8, n)), Object.keys(t).forEach(OS.bind(null, e8, t, n))), n;
}
xe.deepMerge = li;
xe.objectGetPath = function(t, r) {
  for (var n = r.split("/").slice(1), o; typeof (o = n.shift()) == "string"; ) {
    var a = decodeURIComponent(o.replace(/~0/, "~").replace(/~1/g, "/"));
    if (!(a in t)) return;
    t = t[a];
  }
  return t;
};
function AS(e8) {
  return "/" + encodeURIComponent(e8).replace(/~/g, "%7E");
}
xe.encodePath = function(t) {
  return t.map(AS).join("");
};
xe.getDecimalPlaces = function(t) {
  var r = 0;
  if (isNaN(t)) return r;
  typeof t != "number" && (t = Number(t));
  var n = t.toString().split("e");
  if (n.length === 2) {
    if (n[1][0] !== "-")
      return r;
    r = Number(n[1].slice(1));
  }
  var o = n[0].split(".");
  return o.length === 2 && (r += o[1].length), r;
};
xe.isSchema = function(t) {
  return typeof t == "object" && t || typeof t == "boolean";
};
var et = xe;
var fe = et.ValidatorResult;
var cr = et.SchemaError;
var ui = {};
ui.ignoreProperties = {
  // informative properties
  id: true,
  default: true,
  description: true,
  title: true,
  // arguments to other properties
  additionalItems: true,
  then: true,
  else: true,
  // special-handled properties
  $schema: true,
  $ref: true,
  extends: true
};
var ce = ui.validators = {};
ce.type = function(t, r, n, o) {
  if (t === void 0)
    return null;
  var a = new fe(t, r, n, o), i = Array.isArray(r.type) ? r.type : [r.type];
  if (!i.some(this.testType.bind(this, t, r, n, o))) {
    var s = i.map(function(u) {
      if (u) {
        var l = u.$id || u.id;
        return l ? "<" + l + ">" : u + "";
      }
    });
    a.addError({
      name: "type",
      argument: s,
      message: "is not of a type(s) " + s
    });
  }
  return a;
};
function fi(e8, t, r, n, o) {
  var a = t.throwError, i = t.throwAll;
  t.throwError = false, t.throwAll = false;
  var s = this.validateSchema(e8, o, t, r);
  return t.throwError = a, t.throwAll = i, !s.valid && n instanceof Function && n(s), s.valid;
}
ce.anyOf = function(t, r, n, o) {
  if (t === void 0)
    return null;
  var a = new fe(t, r, n, o), i = new fe(t, r, n, o);
  if (!Array.isArray(r.anyOf))
    throw new cr("anyOf must be an array");
  if (!r.anyOf.some(
    fi.bind(
      this,
      t,
      n,
      o,
      function(u) {
        i.importErrors(u);
      }
    )
  )) {
    var s = r.anyOf.map(function(u, l) {
      var f = u.$id || u.id;
      return f ? "<" + f + ">" : u.title && JSON.stringify(u.title) || u.$ref && "<" + u.$ref + ">" || "[subschema " + l + "]";
    });
    n.nestedErrors && a.importErrors(i), a.addError({
      name: "anyOf",
      argument: s,
      message: "is not any of " + s.join(",")
    });
  }
  return a;
};
ce.allOf = function(t, r, n, o) {
  if (t === void 0)
    return null;
  if (!Array.isArray(r.allOf))
    throw new cr("allOf must be an array");
  var a = new fe(t, r, n, o), i = this;
  return r.allOf.forEach(function(s, u) {
    var l = i.validateSchema(t, s, n, o);
    if (!l.valid) {
      var f = s.$id || s.id, c = f || s.title && JSON.stringify(s.title) || s.$ref && "<" + s.$ref + ">" || "[subschema " + u + "]";
      a.addError({
        name: "allOf",
        argument: { id: c, length: l.errors.length, valid: l },
        message: "does not match allOf schema " + c + " with " + l.errors.length + " error[s]:"
      }), a.importErrors(l);
    }
  }), a;
};
ce.oneOf = function(t, r, n, o) {
  if (t === void 0)
    return null;
  if (!Array.isArray(r.oneOf))
    throw new cr("oneOf must be an array");
  var a = new fe(t, r, n, o), i = new fe(t, r, n, o), s = r.oneOf.filter(
    fi.bind(
      this,
      t,
      n,
      o,
      function(l) {
        i.importErrors(l);
      }
    )
  ).length, u = r.oneOf.map(function(l, f) {
    var c = l.$id || l.id;
    return c || l.title && JSON.stringify(l.title) || l.$ref && "<" + l.$ref + ">" || "[subschema " + f + "]";
  });
  return s !== 1 && (n.nestedErrors && a.importErrors(i), a.addError({
    name: "oneOf",
    argument: u,
    message: "is not exactly one from " + u.join(",")
  })), a;
};
ce.if = function(t, r, n, o) {
  if (t === void 0) return null;
  if (!et.isSchema(r.if)) throw new Error('Expected "if" keyword to be a schema');
  var a = fi.call(this, t, n, o, null, r.if), i = new fe(t, r, n, o), s;
  if (a) {
    if (r.then === void 0) return;
    if (!et.isSchema(r.then)) throw new Error('Expected "then" keyword to be a schema');
    s = this.validateSchema(t, r.then, n, o.makeChild(r.then)), i.importErrors(s);
  } else {
    if (r.else === void 0) return;
    if (!et.isSchema(r.else)) throw new Error('Expected "else" keyword to be a schema');
    s = this.validateSchema(t, r.else, n, o.makeChild(r.else)), i.importErrors(s);
  }
  return i;
};
function ci(e8, t) {
  if (Object.hasOwnProperty.call(e8, t)) return e8[t];
  if (t in e8) {
    for (; e8 = Object.getPrototypeOf(e8); )
      if (Object.propertyIsEnumerable.call(e8, t)) return e8[t];
  }
}
ce.propertyNames = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o), i = r.propertyNames !== void 0 ? r.propertyNames : {};
    if (!et.isSchema(i)) throw new cr('Expected "propertyNames" to be a schema (object or boolean)');
    for (var s in t)
      if (ci(t, s) !== void 0) {
        var u = this.validateSchema(s, i, n, o.makeChild(i));
        a.importErrors(u);
      }
    return a;
  }
};
ce.properties = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o), i = r.properties || {};
    for (var s in i) {
      var u = i[s];
      if (u !== void 0) {
        if (u === null)
          throw new cr('Unexpected null, expected schema in "properties"');
        typeof n.preValidateProperty == "function" && n.preValidateProperty(t, s, u, n, o);
        var l = ci(t, s), f = this.validateSchema(l, u, n, o.makeChild(u, s));
        f.instance !== a.instance[s] && (a.instance[s] = f.instance), a.importErrors(f);
      }
    }
    return a;
  }
};
function pf(e8, t, r, n, o, a) {
  if (this.types.object(e8) && !(t.properties && t.properties[o] !== void 0))
    if (t.additionalProperties === false)
      a.addError({
        name: "additionalProperties",
        argument: o,
        message: "is not allowed to have the additional property " + JSON.stringify(o)
      });
    else {
      var i = t.additionalProperties || {};
      typeof r.preValidateProperty == "function" && r.preValidateProperty(e8, o, i, r, n);
      var s = this.validateSchema(e8[o], i, r, n.makeChild(i, o));
      s.instance !== a.instance[o] && (a.instance[o] = s.instance), a.importErrors(s);
    }
}
ce.patternProperties = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o), i = r.patternProperties || {};
    for (var s in t) {
      var u = true;
      for (var l in i) {
        var f = i[l];
        if (f !== void 0) {
          if (f === null)
            throw new cr('Unexpected null, expected schema in "patternProperties"');
          try {
            var c = new RegExp(l, "u");
          } catch {
            c = new RegExp(l);
          }
          if (c.test(s)) {
            u = false, typeof n.preValidateProperty == "function" && n.preValidateProperty(t, s, f, n, o);
            var d = this.validateSchema(t[s], f, n, o.makeChild(f, s));
            d.instance !== a.instance[s] && (a.instance[s] = d.instance), a.importErrors(d);
          }
        }
      }
      u && pf.call(this, t, r, n, o, s, a);
    }
    return a;
  }
};
ce.additionalProperties = function(t, r, n, o) {
  if (this.types.object(t)) {
    if (r.patternProperties)
      return null;
    var a = new fe(t, r, n, o);
    for (var i in t)
      pf.call(this, t, r, n, o, i, a);
    return a;
  }
};
ce.minProperties = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o), i = Object.keys(t);
    return i.length >= r.minProperties || a.addError({
      name: "minProperties",
      argument: r.minProperties,
      message: "does not meet minimum property length of " + r.minProperties
    }), a;
  }
};
ce.maxProperties = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o), i = Object.keys(t);
    return i.length <= r.maxProperties || a.addError({
      name: "maxProperties",
      argument: r.maxProperties,
      message: "does not meet maximum property length of " + r.maxProperties
    }), a;
  }
};
ce.items = function(t, r, n, o) {
  var a = this;
  if (this.types.array(t) && r.items !== void 0) {
    var i = new fe(t, r, n, o);
    return t.every(function(s, u) {
      if (Array.isArray(r.items))
        var l = r.items[u] === void 0 ? r.additionalItems : r.items[u];
      else
        var l = r.items;
      if (l === void 0)
        return true;
      if (l === false)
        return i.addError({
          name: "items",
          message: "additionalItems not permitted"
        }), false;
      var f = a.validateSchema(s, l, n, o.makeChild(l, u));
      return f.instance !== i.instance[u] && (i.instance[u] = f.instance), i.importErrors(f), true;
    }), i;
  }
};
ce.contains = function(t, r, n, o) {
  var a = this;
  if (this.types.array(t) && r.contains !== void 0) {
    if (!et.isSchema(r.contains)) throw new Error('Expected "contains" keyword to be a schema');
    var i = new fe(t, r, n, o), s = t.some(function(u, l) {
      var f = a.validateSchema(u, r.contains, n, o.makeChild(r.contains, l));
      return f.errors.length === 0;
    });
    return s === false && i.addError({
      name: "contains",
      argument: r.contains,
      message: "must contain an item matching given schema"
    }), i;
  }
};
ce.minimum = function(t, r, n, o) {
  if (this.types.number(t)) {
    var a = new fe(t, r, n, o);
    return r.exclusiveMinimum && r.exclusiveMinimum === true ? t > r.minimum || a.addError({
      name: "minimum",
      argument: r.minimum,
      message: "must be greater than " + r.minimum
    }) : t >= r.minimum || a.addError({
      name: "minimum",
      argument: r.minimum,
      message: "must be greater than or equal to " + r.minimum
    }), a;
  }
};
ce.maximum = function(t, r, n, o) {
  if (this.types.number(t)) {
    var a = new fe(t, r, n, o);
    return r.exclusiveMaximum && r.exclusiveMaximum === true ? t < r.maximum || a.addError({
      name: "maximum",
      argument: r.maximum,
      message: "must be less than " + r.maximum
    }) : t <= r.maximum || a.addError({
      name: "maximum",
      argument: r.maximum,
      message: "must be less than or equal to " + r.maximum
    }), a;
  }
};
ce.exclusiveMinimum = function(t, r, n, o) {
  if (typeof r.exclusiveMinimum != "boolean" && this.types.number(t)) {
    var a = new fe(t, r, n, o), i = t > r.exclusiveMinimum;
    return i || a.addError({
      name: "exclusiveMinimum",
      argument: r.exclusiveMinimum,
      message: "must be strictly greater than " + r.exclusiveMinimum
    }), a;
  }
};
ce.exclusiveMaximum = function(t, r, n, o) {
  if (typeof r.exclusiveMaximum != "boolean" && this.types.number(t)) {
    var a = new fe(t, r, n, o), i = t < r.exclusiveMaximum;
    return i || a.addError({
      name: "exclusiveMaximum",
      argument: r.exclusiveMaximum,
      message: "must be strictly less than " + r.exclusiveMaximum
    }), a;
  }
};
var vf = function(t, r, n, o, a, i) {
  if (this.types.number(t)) {
    var s = r[a];
    if (s == 0)
      throw new cr(a + " cannot be zero");
    var u = new fe(t, r, n, o), l = et.getDecimalPlaces(t), f = et.getDecimalPlaces(s), c = Math.max(l, f), d = Math.pow(10, c);
    return Math.round(t * d) % Math.round(s * d) !== 0 && u.addError({
      name: a,
      argument: s,
      message: i + JSON.stringify(s)
    }), u;
  }
};
ce.multipleOf = function(t, r, n, o) {
  return vf.call(this, t, r, n, o, "multipleOf", "is not a multiple of (divisible by) ");
};
ce.divisibleBy = function(t, r, n, o) {
  return vf.call(this, t, r, n, o, "divisibleBy", "is not divisible by (multiple of) ");
};
ce.required = function(t, r, n, o) {
  var a = new fe(t, r, n, o);
  return t === void 0 && r.required === true ? a.addError({
    name: "required",
    message: "is required"
  }) : this.types.object(t) && Array.isArray(r.required) && r.required.forEach(function(i) {
    ci(t, i) === void 0 && a.addError({
      name: "required",
      argument: i,
      message: "requires property " + JSON.stringify(i)
    });
  }), a;
};
ce.pattern = function(t, r, n, o) {
  if (this.types.string(t)) {
    var a = new fe(t, r, n, o), i = r.pattern;
    try {
      var s = new RegExp(i, "u");
    } catch {
      s = new RegExp(i);
    }
    return t.match(s) || a.addError({
      name: "pattern",
      argument: r.pattern,
      message: "does not match pattern " + JSON.stringify(r.pattern.toString())
    }), a;
  }
};
ce.format = function(t, r, n, o) {
  if (t !== void 0) {
    var a = new fe(t, r, n, o);
    return !a.disableFormat && !et.isFormat(t, r.format, this) && a.addError({
      name: "format",
      argument: r.format,
      message: "does not conform to the " + JSON.stringify(r.format) + " format"
    }), a;
  }
};
ce.minLength = function(t, r, n, o) {
  if (this.types.string(t)) {
    var a = new fe(t, r, n, o), i = t.match(/[\uDC00-\uDFFF]/g), s = t.length - (i ? i.length : 0);
    return s >= r.minLength || a.addError({
      name: "minLength",
      argument: r.minLength,
      message: "does not meet minimum length of " + r.minLength
    }), a;
  }
};
ce.maxLength = function(t, r, n, o) {
  if (this.types.string(t)) {
    var a = new fe(t, r, n, o), i = t.match(/[\uDC00-\uDFFF]/g), s = t.length - (i ? i.length : 0);
    return s <= r.maxLength || a.addError({
      name: "maxLength",
      argument: r.maxLength,
      message: "does not meet maximum length of " + r.maxLength
    }), a;
  }
};
ce.minItems = function(t, r, n, o) {
  if (this.types.array(t)) {
    var a = new fe(t, r, n, o);
    return t.length >= r.minItems || a.addError({
      name: "minItems",
      argument: r.minItems,
      message: "does not meet minimum length of " + r.minItems
    }), a;
  }
};
ce.maxItems = function(t, r, n, o) {
  if (this.types.array(t)) {
    var a = new fe(t, r, n, o);
    return t.length <= r.maxItems || a.addError({
      name: "maxItems",
      argument: r.maxItems,
      message: "does not meet maximum length of " + r.maxItems
    }), a;
  }
};
function _S(e8, t, r) {
  var n, o = r.length;
  for (n = t + 1, o; n < o; n++)
    if (et.deepCompareStrict(e8, r[n]))
      return false;
  return true;
}
ce.uniqueItems = function(t, r, n, o) {
  if (r.uniqueItems === true && this.types.array(t)) {
    var a = new fe(t, r, n, o);
    return t.every(_S) || a.addError({
      name: "uniqueItems",
      message: "contains duplicate item"
    }), a;
  }
};
ce.dependencies = function(t, r, n, o) {
  if (this.types.object(t)) {
    var a = new fe(t, r, n, o);
    for (var i in r.dependencies)
      if (t[i] !== void 0) {
        var s = r.dependencies[i], u = o.makeChild(s, i);
        if (typeof s == "string" && (s = [s]), Array.isArray(s))
          s.forEach(function(f) {
            t[f] === void 0 && a.addError({
              // FIXME there's two different "dependencies" errors here with slightly different outputs
              // Can we make these the same? Or should we create different error types?
              name: "dependencies",
              argument: u.propertyPath,
              message: "property " + f + " not found, required by " + u.propertyPath
            });
          });
        else {
          var l = this.validateSchema(t, s, n, u);
          a.instance !== l.instance && (a.instance = l.instance), l && l.errors.length && (a.addError({
            name: "dependencies",
            argument: u.propertyPath,
            message: "does not meet dependency required by " + u.propertyPath
          }), a.importErrors(l));
        }
      }
    return a;
  }
};
ce.enum = function(t, r, n, o) {
  if (t === void 0)
    return null;
  if (!Array.isArray(r.enum))
    throw new cr("enum expects an array", r);
  var a = new fe(t, r, n, o);
  return r.enum.some(et.deepCompareStrict.bind(null, t)) || a.addError({
    name: "enum",
    argument: r.enum,
    message: "is not one of enum values: " + r.enum.map(String).join(",")
  }), a;
};
ce.const = function(t, r, n, o) {
  if (t === void 0)
    return null;
  var a = new fe(t, r, n, o);
  return et.deepCompareStrict(r.const, t) || a.addError({
    name: "const",
    argument: r.const,
    message: "does not exactly match expected constant: " + r.const
  }), a;
};
ce.not = ce.disallow = function(t, r, n, o) {
  var a = this;
  if (t === void 0) return null;
  var i = new fe(t, r, n, o), s = r.not || r.disallow;
  return s ? (Array.isArray(s) || (s = [s]), s.forEach(function(u) {
    if (a.testType(t, r, n, o, u)) {
      var l = u && (u.$id || u.id), f = l || u;
      i.addError({
        name: "not",
        argument: f,
        message: "is of prohibited type " + f
      });
    }
  }), i) : null;
};
var IS = ui;
var di = {};
var ml = ur;
var CS = xe;
di.SchemaScanResult = mf;
function mf(e8, t) {
  this.id = e8, this.ref = t;
}
di.scan = function(t, r) {
  function n(u, l) {
    if (!(!l || typeof l != "object")) {
      if (l.$ref) {
        var f = ml.resolve(u, l.$ref);
        s[f] = s[f] ? s[f] + 1 : 0;
        return;
      }
      var c = l.$id || l.id, d = c ? ml.resolve(u, c) : u;
      if (d) {
        if (d.indexOf("#") < 0 && (d += "#"), i[d]) {
          if (!CS.deepCompareStrict(i[d], l))
            throw new Error("Schema <" + d + "> already exists with different definition");
          return i[d];
        }
        i[d] = l, d[d.length - 1] == "#" && (i[d.substring(0, d.length - 1)] = l);
      }
      o(d + "/items", Array.isArray(l.items) ? l.items : [l.items]), o(d + "/extends", Array.isArray(l.extends) ? l.extends : [l.extends]), n(d + "/additionalItems", l.additionalItems), a(d + "/properties", l.properties), n(d + "/additionalProperties", l.additionalProperties), a(d + "/definitions", l.definitions), a(d + "/patternProperties", l.patternProperties), a(d + "/dependencies", l.dependencies), o(d + "/disallow", l.disallow), o(d + "/allOf", l.allOf), o(d + "/anyOf", l.anyOf), o(d + "/oneOf", l.oneOf), n(d + "/not", l.not);
    }
  }
  function o(u, l) {
    if (Array.isArray(l))
      for (var f = 0; f < l.length; f++)
        n(u + "/" + f, l[f]);
  }
  function a(u, l) {
    if (!(!l || typeof l != "object"))
      for (var f in l)
        n(u + "/" + f, l[f]);
  }
  var i = {}, s = {};
  return n(t, r), new mf(i, s);
};
var hf = ur;
var yf = IS;
var xr = xe;
var gf = di.scan;
var bf = xr.ValidatorResult;
var xS = xr.ValidatorResultError;
var En = xr.SchemaError;
var wf = xr.SchemaContext;
var Sf = "/";
var Re = function e7() {
  this.customFormats = Object.create(e7.prototype.customFormats), this.schemas = {}, this.unresolvedRefs = [], this.types = Object.create(Tt), this.attributes = Object.create(yf.validators);
};
Re.prototype.customFormats = {};
Re.prototype.schemas = null;
Re.prototype.types = null;
Re.prototype.attributes = null;
Re.prototype.unresolvedRefs = null;
Re.prototype.addSchema = function(t, r) {
  var n = this;
  if (!t)
    return null;
  var o = gf(r || Sf, t), a = r || t.$id || t.id;
  for (var i in o.id)
    this.schemas[i] = o.id[i];
  for (var i in o.ref)
    this.unresolvedRefs.push(i);
  return this.unresolvedRefs = this.unresolvedRefs.filter(function(s) {
    return typeof n.schemas[s] > "u";
  }), this.schemas[a];
};
Re.prototype.addSubSchemaArray = function(t, r) {
  if (Array.isArray(r))
    for (var n = 0; n < r.length; n++)
      this.addSubSchema(t, r[n]);
};
Re.prototype.addSubSchemaObject = function(t, r) {
  if (!(!r || typeof r != "object"))
    for (var n in r)
      this.addSubSchema(t, r[n]);
};
Re.prototype.setSchemas = function(t) {
  this.schemas = t;
};
Re.prototype.getSchema = function(t) {
  return this.schemas[t];
};
Re.prototype.validate = function(t, r, n, o) {
  if (typeof r != "boolean" && typeof r != "object" || r === null)
    throw new En("Expected `schema` to be an object or boolean");
  n || (n = {});
  var a = r.$id || r.id, i = hf.resolve(n.base || Sf, a || "");
  if (!o) {
    o = new wf(r, n, [], i, Object.create(this.schemas)), o.schemas[i] || (o.schemas[i] = r);
    var s = gf(i, r);
    for (var u in s.id) {
      var l = s.id[u];
      o.schemas[u] = l;
    }
  }
  if (n.required && t === void 0) {
    var f = new bf(t, r, n, o);
    return f.addError("is required, but is undefined"), f;
  }
  var f = this.validateSchema(t, r, n, o);
  if (f) {
    if (n.throwAll && f.errors.length)
      throw new xS(f);
  } else throw new Error("Result undefined");
  return f;
};
function Ef(e8) {
  var t = typeof e8 == "string" ? e8 : e8.$ref;
  return typeof t == "string" ? t : false;
}
Re.prototype.validateSchema = function(t, r, n, o) {
  var a = new bf(t, r, n, o);
  if (typeof r == "boolean")
    r === true ? r = {} : r === false && (r = { type: [] });
  else if (!r)
    throw new Error("schema is undefined");
  if (r.extends)
    if (Array.isArray(r.extends)) {
      var i = { schema: r, ctx: o };
      r.extends.forEach(this.schemaTraverser.bind(this, i)), r = i.schema, i.schema = null, i.ctx = null, i = null;
    } else
      r = xr.deepMerge(r, this.superResolve(r.extends, o));
  var s = Ef(r);
  if (s) {
    var u = this.resolve(r, s, o), l = new wf(u.subschema, n, o.path, u.switchSchema, o.schemas);
    return this.validateSchema(t, u.subschema, n, l);
  }
  var f = n && n.skipAttributes || [];
  for (var c in r)
    if (!yf.ignoreProperties[c] && f.indexOf(c) < 0) {
      var d = null, h2 = this.attributes[c];
      if (h2)
        d = h2.call(this, t, r, n, o);
      else if (n.allowUnknownAttributes === false)
        throw new En("Unsupported attribute: " + c, r);
      d && a.importErrors(d);
    }
  if (typeof n.rewrite == "function") {
    var v = n.rewrite.call(this, t, r, n, o);
    a.instance = v;
  }
  return a;
};
Re.prototype.schemaTraverser = function(t, r) {
  t.schema = xr.deepMerge(t.schema, this.superResolve(r, t.ctx));
};
Re.prototype.superResolve = function(t, r) {
  var n = Ef(t);
  return n ? this.resolve(t, n, r).subschema : t;
};
Re.prototype.resolve = function(t, r, n) {
  if (r = n.resolve(r), n.schemas[r])
    return { subschema: n.schemas[r], switchSchema: r };
  var o = hf.parse(r), a = o && o.hash, i = a && a.length && r.substr(0, r.length - a.length);
  if (!i || !n.schemas[i])
    throw new En("no such schema <" + r + ">", t);
  var s = xr.objectGetPath(n.schemas[i], a.substr(1));
  if (s === void 0)
    throw new En("no such schema " + a + " located in <" + i + ">", t);
  return { subschema: s, switchSchema: r };
};
Re.prototype.testType = function(t, r, n, o, a) {
  if (a !== void 0) {
    if (a === null)
      throw new En('Unexpected null in "type" keyword');
    if (typeof this.types[a] == "function")
      return this.types[a].call(this, t);
    if (a && typeof a == "object") {
      var i = this.validateSchema(t, a, n, o);
      return i === void 0 || !(i && i.errors.length);
    }
    return true;
  }
};
var Tt = Re.prototype.types = {};
Tt.string = function(t) {
  return typeof t == "string";
};
Tt.number = function(t) {
  return typeof t == "number" && isFinite(t);
};
Tt.integer = function(t) {
  return typeof t == "number" && t % 1 === 0;
};
Tt.boolean = function(t) {
  return typeof t == "boolean";
};
Tt.array = function(t) {
  return Array.isArray(t);
};
Tt.null = function(t) {
  return t === null;
};
Tt.date = function(t) {
  return t instanceof Date;
};
Tt.any = function(t) {
  return true;
};
Tt.object = function(t) {
  return t && typeof t == "object" && !Array.isArray(t) && !(t instanceof Date);
};
var TS = Re;
var Of;
Of = TS;
xe.ValidatorResult;
xe.ValidatorResultError;
xe.ValidationError;
xe.SchemaError;
function PS(e8) {
  let t = new Of(), r = {
    additionalProperties: false,
    properties: {
      input: {
        items: {
          oneOf: [
            {
              additionalProperties: false,
              properties: {
                defaultValue: {
                  required: true,
                  type: "number"
                },
                id: {
                  type: "string"
                },
                name: {
                  required: true,
                  type: "string"
                },
                possibleValues: {
                  items: {
                    additionalProperties: false,
                    properties: {
                      name: {
                        required: true,
                        type: "string"
                      },
                      value: {
                        required: true,
                        type: "number"
                      }
                    },
                    type: "object"
                  },
                  minItems: 1,
                  required: true,
                  type: "array"
                },
                visible: {
                  type: "string"
                }
              }
            },
            {
              additionalProperties: false,
              properties: {
                defaultValue: {
                  required: true,
                  type: "number"
                },
                id: {
                  type: "string"
                },
                maximumValue: {
                  required: true,
                  type: "number"
                },
                minimumValue: {
                  required: true,
                  type: "number"
                },
                name: {
                  required: true,
                  type: "string"
                },
                stepValue: {
                  type: "number"
                },
                visible: {
                  type: "string"
                }
              }
            }
          ],
          type: "object"
        },
        minItems: 1,
        required: true,
        type: "array"
      },
      output: {
        additionalProperties: false,
        minItems: 1,
        properties: {
          data: {
            items: {
              additionalProperties: false,
              properties: {
                id: {
                  required: true,
                  type: "string"
                },
                name: {
                  required: true,
                  type: "string"
                }
              },
              type: "object"
            },
            minItems: 1,
            required: true,
            type: "array"
          },
          plots: {
            items: {
              additionalProperties: false,
              properties: {
                xAxisTitle: {
                  required: true,
                  type: "string"
                },
                xValue: {
                  required: true,
                  type: "string"
                },
                yAxisTitle: {
                  required: true,
                  type: "string"
                },
                yValue: {
                  required: true,
                  type: "string"
                }
              },
              type: "object"
            },
            maxItems: 9,
            minItems: 1,
            required: true,
            type: "array"
          }
        },
        required: true,
        type: "object"
      },
      parameters: {
        items: {
          additionalProperties: false,
          properties: {
            name: {
              required: true,
              type: "string"
            },
            value: {
              required: true,
              type: "string"
            }
          },
          type: "object"
        },
        type: "array"
      },
      simulation: {
        additionalProperties: false,
        properties: {
          opencor: {
            additionalProperties: false,
            properties: {
              endingPoint: {
                type: "number"
              },
              pointInterval: {
                type: "number"
              },
              resource: {
                required: true,
                type: "string"
              }
            },
            type: "object"
          },
          solvers: {
            items: {
              additionalProperties: false,
              properties: {
                if: {
                  type: "string"
                },
                input: {
                  additionalProperties: false,
                  properties: {
                    name: {
                      required: true,
                      type: "string"
                    },
                    value: {
                      required: true,
                      type: "string"
                    }
                  },
                  type: "object"
                },
                name: {
                  required: true,
                  type: "string"
                },
                version: {
                  required: true,
                  type: "string"
                }
              },
              type: "object"
            },
            minItems: 1,
            required: true,
            type: "array"
          }
        },
        required: true,
        type: "object"
      }
    },
    type: "object"
  }, n = t.validate(e8, r, { nestedErrors: true });
  if (!n.valid)
    return console.warn(n.toString()), false;
  let o = [];
  if (!e8.input.every((f) => {
    if (f.id !== void 0) {
      if (f.id === "")
        return console.warn("JSON: the input id must not be empty."), false;
      if (o[f.id])
        return console.warn("JSON: the input id must be unique (" + f.id + " is used more than once)."), false;
      o[f.id] = true;
    }
    if (f.name === "")
      return console.warn("JSON: the input name must not be empty."), false;
    if (f.possibleValues !== void 0) {
      if (!f.possibleValues.every((h2) => h2.name === "" ? (console.warn("JSON: an input possible value must not be empty."), false) : true))
        return false;
      let c = f.possibleValues.map((h2) => h2.value), d = [];
      if (!c.every((h2) => d[h2] ? (console.warn("JSON: an input possible value must have a unique value (" + h2 + " is used more than once)."), false) : (d[h2] = true, true)))
        return false;
      if (!c.includes(f.defaultValue))
        return console.warn("JSON: the input default value (" + f.defaultValue + ") must be one of the possible values (" + c.join(", ") + ")."), false;
    }
    if (f.minimumValue !== void 0 && f.maximumValue !== void 0) {
      if (f.minimumValue >= f.maximumValue)
        return console.warn("JSON: the input minimum value (" + f.minimumValue + ") must be lower than the maximum value (" + f.maximumValue + ")."), false;
      if (f.defaultValue < f.minimumValue || f.defaultValue > f.maximumValue)
        return console.warn("JSON: the input default value (" + f.defaultValue + ") must be greater or equal than the minimum value (" + f.minimumValue + ") and lower or equal than the maximum value (" + f.maximumValue + ")."), false;
      let c = f.maximumValue - f.minimumValue;
      if (f.stepValue !== void 0) {
        if (f.stepValue <= 0 || f.stepValue > c)
          return console.warn("JSON: the input step value (" + f.stepValue + ") must be greater than zero and lower or equal than the range value (" + c + ")."), false;
        if (!Number.isInteger(c / f.stepValue))
          return console.warn("JSON: the input step value (" + f.stepValue + ") must be a factor of the range value (" + c + ")."), false;
      } else if (!Number.isInteger(c))
        return console.warn("JSON: the (default) input step value (1) must be a factor of the range value (" + c + ")."), false;
    }
    return f.visible !== void 0 && f.visible === "" ? (console.warn("JSON: the input visible must not be empty."), false) : true;
  }))
    return false;
  let i = [];
  if (!e8.output.data.every((f) => {
    if (f.id !== void 0) {
      if (f.id === "")
        return console.warn("JSON: the output data id must not be empty."), false;
      if (i[f.id])
        return console.warn("JSON: the output data id must be unique (" + f.id + " is used more than once)."), false;
      i[f.id] = true;
    }
    return f.name === "" ? (console.warn("JSON: the output data name must not be empty."), false) : true;
  }) || !e8.output.plots.every((f) => f.xAxisTitle === "" ? (console.warn("JSON: the output plot X axis title must not be empty."), false) : f.xValue === "" ? (console.warn("JSON: the output plot X value must not be empty."), false) : f.yAxisTitle === "" ? (console.warn("JSON: the output plot Y axis title must not be empty."), false) : f.yValue === "" ? (console.warn("JSON: the output plot Y value must not be empty."), false) : true) || e8.parameters !== void 0 && !e8.parameters.every((c) => c.name === "" ? (console.warn("JSON: the parameter name must not be empty."), false) : c.value === "" ? (console.warn("JSON: the parameter value must not be empty."), false) : true))
    return false;
  let l = false;
  if (!e8.simulation.solvers.every((f) => {
    if (f.if !== void 0 && f.if === "")
      return console.warn("JSON: a simulation solver if must not be empty."), false;
    if (f.input !== void 0) {
      if (f.input.name === "")
        return console.warn("JSON: a simulation solver input name must not be empty."), false;
      if (f.input.value === "")
        return console.warn("JSON: a simulation solver input value must not be empty."), false;
    }
    return f.name === "" ? (console.warn("JSON: a simulation solver name must not be empty."), false) : (l = l || f.name === zu, f.version === "" ? (console.warn("JSON: a simulation solver version must not be empty."), false) : true);
  }))
    return false;
  if (l && e8.simulation.opencor === void 0)
    return console.warn("JSON: the simulation solver for OpenCOR is specified so simulation OpenCOR settings must also be specified."), false;
  if (e8.simulation.opencor !== void 0) {
    if (e8.simulation.opencor.resource === "")
      return console.warn("JSON: the simulation OpenCOR resource must not be empty."), false;
    if (e8.simulation.opencor.endingPoint !== void 0)
      if (e8.simulation.opencor.pointInterval !== void 0) {
        if (e8.simulation.opencor.endingPoint <= 0)
          return console.warn("JSON: the simulation OpenCOR ending point (" + e8.simulation.opencor.endingPoint + ") must be greater than zero."), false;
        if (e8.simulation.opencor.pointInterval <= 0)
          return console.warn("JSON: the simulation OpenCOR point interval (" + e8.simulation.opencor.pointInterval + ") must be greater than zero."), false;
      } else
        return console.warn("JSON: a simulation OpenCOR ending point is specified so a simulation OpenCOR point interval must also be specified."), false;
    else if (e8.simulation.opencor.pointInterval !== void 0)
      return console.warn("JSON: a simulation OpenCOR point interval is specified so a simulation OpenCOR ending point must also be specified."), false;
  }
  return true;
}
var $S = {
  name: "SimulationVuer",
  components: {
    PlotVuer: yfe,
    SimulationVuerInput: ju,
    ElButton: $u,
    ElDivider: Fu,
    ElLoading: Lb
  },
  props: {
    /**
     * The the URL to the API location.
     */
    apiLocation: {
      required: true,
      type: String
    },
    /**
     * The ID of the simulation-based dataset.
     */
    id: {
      required: true,
      type: Number
    }
  },
  data: function() {
    let e8 = new XMLHttpRequest(), t, r;
    return e8.open("GET", this.apiLocation + "/sim/dataset/" + this.id, false), e8.setRequestHeader("Content-type", "application/json"), e8.onreadystatechange = () => {
      if (e8.readyState === 4 && e8.status === 200) {
        let n = JSON.parse(e8.responseText);
        t = n.name, r = n.study !== void 0 ? n.study.uuid : void 0;
      }
    }, e8.send(), {
      errorMessage: "",
      hasFinalisedUi: false,
      hasValidSimulationUiInfo: false,
      isMounted: false,
      isSimulationValid: true,
      layout: [],
      name: t,
      perfectScollbarOptions: {
        suppressScrollX: true
      },
      showUserMessage: false,
      simulationData: [],
      simulationDataId: {},
      simulationUiInfo: {},
      userMessage: "",
      ui: null,
      uuid: r
    };
  },
  methods: {
    /**
     * @vuese
     * Generate the metadata associated with the plot which `index` is given.
     * @arg `index`
     */
    plotMetadata(e8) {
      return {
        version: "1.1.0",
        type: "plot",
        attrs: {
          style: "timeseries",
          layout: this.layout[e8]
        }
      };
    },
    /**
     * @vuese
     * Build the simulation UI using `simulationUiInfo`, a JSON object that describes the contents of the simulation UI.
     * @arg `simulationUiInfo`
     */
    buildSimulationUi(e8) {
      this.simulationUiInfo = e8, this.hasValidSimulationUiInfo = PS(this.simulationUiInfo), this.hasValidSimulationUiInfo && (zb(this), this.$nextTick(() => {
        Ds(this), this.simulationData.forEach((t, r) => {
          this.simulationData[r] = [{
            x: [],
            y: [],
            type: "scatter"
          }];
        });
      }));
    },
    /**
     * @vuese
     * Run the simulation-based dataset directly on oSPARC. Not all simulation-based datasets can be run directly on
     * oSPARC, but for those that can the simulation UI shows a `Run on oSPARC` button which, when clicked, calls this
     * method.
     */
    runOnOsparc() {
      window.open(`https://osparc.io/study/${this.uuid}`, "_blank");
    },
    /**
     * @vuese
     * View the simulation-based dataset on the SPARC portal. The simulation UI has a `View Dataset` button which, when
     * clicked, calls this method.
     */
    viewDataset() {
      window.open(`https://sparc.science/datasets/${this.id}?type=dataset`, "_blank");
    },
    /**
     * @vuese
     * Finish creating the `request` that is going to be used by `startSimulation` to ask oSPARC to start the
     * simulation. `request` is a JSON object that initially contains the solver to be used by oSPARC and to which
     * additional is added.
     * @arg `request`
     */
    retrieveRequest(e8) {
      let t = e8.solver.name === zu;
      if (t ? e8.opencor = {
        model_url: this.simulationUiInfo.simulation.opencor.resource,
        json_config: {}
      } : e8.osparc = {}, t && this.simulationUiInfo.simulation.opencor.endingPoint !== void 0 && this.simulationUiInfo.simulation.opencor.pointInterval !== void 0 && (e8.opencor.json_config.simulation = {
        "Ending point": this.simulationUiInfo.simulation.opencor.endingPoint,
        "Point interval": this.simulationUiInfo.simulation.opencor.pointInterval
      }), this.simulationUiInfo.parameters !== void 0) {
        let r = {};
        this.simulationUiInfo.parameters.forEach((n) => {
          r[n.name] = da(this, n.value);
        }), t ? e8.opencor.json_config.parameters = r : e8.osparc.job_inputs = r;
      }
      if (t && this.simulationUiInfo.output.data !== void 0) {
        let r = -1;
        e8.opencor.json_config.output = [], this.simulationUiInfo.output.data.forEach((n) => {
          e8.opencor.json_config.output[++r] = n.name;
        });
      }
      return e8;
    },
    /**
     * @vuese
     * Process the simulation results retrieved by `checkSimulation`. The simulation results are post-processed, if
     * needed, and then readied for use by `PlotVuer`.
     * @arg `results`
     */
    processSimulationResults(e8) {
      if (typeof e8 == "string") {
        const n = /[ \t]+/g;
        let o = e8.trim().split(`
`), a = o[0].trim().split(n).length;
        e8 = {};
        for (let s = 0; s < a; ++s)
          e8[s] = [];
        let i = -1;
        o.forEach((s) => {
          ++i;
          let u = -1;
          s.trim().split(n).forEach((f) => {
            e8[++u][i] = Number(f);
          });
        });
      }
      let t = -1, r = e8[this.simulationDataId[Object.keys(this.simulationDataId)[0]]].length;
      this.simulationUiInfo.output.plots.forEach((n) => {
        let o = [], a = [];
        for (let i = 0; i < r; ++i)
          o[i] = Bs(this, e8, n.xValue, i), a[i] = Bs(this, e8, n.yValue, i);
        this.simulationData[++t] = [
          {
            x: o,
            y: a,
            type: "scatter"
          }
        ];
      });
    },
    /**
     * @vuese
     * Check the progress of the simulation using the given `data`, a JSON object that contains the simulation job ID,
     * as well as the solver name and version. This method is first called by `startSimulation` and then every second by
     * itself until the simulation is finished.
     * @arg `data`
     */
    checkSimulation(e8) {
      let t = new XMLHttpRequest();
      t.open("POST", this.apiLocation + "/check_simulation", true), t.setRequestHeader("Content-type", "application/json"), t.onreadystatechange = () => {
        if (t.readyState === 4)
          if (t.status === 200) {
            let r = JSON.parse(t.responseText);
            if (this.isSimulationValid = r.status === "ok", this.isSimulationValid)
              if (r.results !== void 0)
                this.showUserMessage = false, this.processSimulationResults(r.results);
              else {
                let n = this;
                setTimeout(function() {
                  n.checkSimulation(e8);
                }, 1e3);
              }
            else
              this.showUserMessage = false, this.errorMessage = r.description;
          } else
            this.isSimulationValid = false, this.showUserMessage = false, this.errorMessage = t.statusText.toLowerCase() + " (<a href='https://httpstatuses.com/" + t.status + "/' target='_blank'>" + t.status + "</a>)";
      }, t.send(JSON.stringify(e8));
    },
    /**
     * @vuese
     * Start the simulation associated with the simulation-based dataset. The simulation UI has a `Run Simulation`
     * button which, when clicked, calls this method.
     */
    startSimulation() {
      let e8;
      if (this.simulationUiInfo.simulation.solvers.forEach((t) => {
        (t.if === void 0 || da(this, t.if)) && (e8 = t);
      }), e8 === void 0) {
        console.warn("SIMULATION: no solver name and/or solver version specified.");
        return;
      }
      this.userMessage = "Loading simulation results...", this.showUserMessage = true, this.$nextTick(() => {
        this.simulationData = [];
        let t = new XMLHttpRequest();
        t.open("POST", this.apiLocation + "/start_simulation", true), t.setRequestHeader("Content-type", "application/json"), t.onreadystatechange = () => {
          if (t.readyState === 4)
            if (t.status === 200) {
              let r = JSON.parse(t.responseText);
              this.isSimulationValid = r.status === "ok", this.isSimulationValid ? this.checkSimulation(r.data) : (this.showUserMessage = false, this.errorMessage = r.description);
            } else
              this.isSimulationValid = false, this.showUserMessage = false, this.errorMessage = t.statusText.toLowerCase() + " (<a href='https://httpstatuses.com/" + t.status + "/' target='_blank'>" + t.status + "</a>)";
        }, t.send(JSON.stringify(this.retrieveRequest({
          solver: e8
        })));
      });
    }
  },
  created: function() {
    this.name !== void 0 && (this.userMessage = "Retrieving UI information...", this.showUserMessage = true, this.$nextTick(() => {
      let e8 = new XMLHttpRequest();
      e8.open("GET", this.apiLocation + "/simulation_ui_file/" + this.id, true), e8.setRequestHeader("Content-type", "application/json"), e8.onreadystatechange = () => {
        e8.readyState === 4 && (this.showUserMessage = false, e8.status === 200 && this.buildSimulationUi(JSON.parse(e8.responseText)));
      }, e8.send();
    }));
  },
  mounted: function() {
    this.isMounted = true, Ds(this);
  }
};
var pi = (e8) => (pushScopeId("data-v-508c815f"), e8 = e8(), popScopeId(), e8);
var FS = ["element-loading-text"];
var MS = {
  key: 0,
  class: "default error"
};
var VS = pi(() => createBaseVNode("span", { class: "error" }, "Error:", -1));
var RS = {
  key: 1,
  class: "main"
};
var NS = { class: "main-left" };
var kS = { class: "default name" };
var LS = pi(() => createBaseVNode("p", { class: "default input-parameters" }, "Input parameters", -1));
var zS = { class: "input scrollbar" };
var BS = { class: "primary-button" };
var DS = {
  key: 0,
  class: "secondary-button"
};
var US = { class: "secondary-button" };
var jS = {
  key: 1,
  class: "default note"
};
var HS = {
  class: "main-right",
  ref: "output"
};
var WS = { class: "main-right" };
var qS = { class: "default error" };
var KS = pi(() => createBaseVNode("span", { class: "error" }, "Error:", -1));
var ZS = ["innerHTML"];
function GS(e8, t, r, n, o, a) {
  const i = Fu, s = ju, u = $u, l = resolveComponent("PlotVuer"), f = ca;
  return withDirectives((openBlock(), createElementBlock("div", {
    class: "simulation-vuer",
    "element-loading-text": e8.userMessage
  }, [
    !e8.hasValidSimulationUiInfo && !e8.showUserMessage ? (openBlock(), createElementBlock("p", MS, [
      VS,
      createTextVNode(" an unknown or invalid model was provided.")
    ])) : createCommentVNode("", true),
    e8.hasValidSimulationUiInfo ? (openBlock(), createElementBlock("div", RS, [
      createBaseVNode("div", NS, [
        createBaseVNode("p", kS, toDisplayString(e8.name), 1),
        createVNode(i),
        LS,
        createBaseVNode("div", zS, [
          (openBlock(true), createElementBlock(Fragment, null, renderList(e8.simulationUiInfo.input, (c, d) => (openBlock(), createBlock(s, {
            ref_for: true,
            ref: "simInput",
            defaultValue: c.defaultValue,
            key: `input-${d}`,
            name: c.name,
            maximumValue: c.maximumValue,
            minimumValue: c.minimumValue,
            possibleValues: c.possibleValues,
            stepValue: c.stepValue
          }, null, 8, ["defaultValue", "name", "maximumValue", "minimumValue", "possibleValues", "stepValue"]))), 128))
        ]),
        createBaseVNode("div", BS, [
          createVNode(u, {
            type: "primary",
            size: "small",
            onClick: t[0] || (t[0] = (c) => a.startSimulation())
          }, {
            default: withCtx(() => [
              createTextVNode("Run Simulation")
            ]),
            _: 1
          })
        ]),
        e8.uuid ? (openBlock(), createElementBlock("div", DS, [
          createVNode(u, {
            size: "small",
            onClick: t[1] || (t[1] = (c) => a.runOnOsparc())
          }, {
            default: withCtx(() => [
              createTextVNode("Run on oSPARC")
            ]),
            _: 1
          })
        ])) : createCommentVNode("", true),
        createBaseVNode("div", US, [
          createVNode(u, {
            size: "small",
            onClick: t[2] || (t[2] = (c) => a.viewDataset())
          }, {
            default: withCtx(() => [
              createTextVNode("View Dataset")
            ]),
            _: 1
          })
        ]),
        e8.uuid ? (openBlock(), createElementBlock("p", jS, "Additional parameters are available on oSPARC")) : createCommentVNode("", true)
      ]),
      withDirectives(createBaseVNode("div", HS, [
        (openBlock(true), createElementBlock(Fragment, null, renderList(e8.simulationUiInfo.output.plots, (c, d) => (openBlock(), createBlock(l, {
          key: `output-${d}`,
          metadata: a.plotMetadata(d),
          "data-source": { data: e8.simulationData[d] },
          plotLayout: e8.layout[d],
          plotType: "plotly-only",
          selectorUi: false
        }, null, 8, ["metadata", "data-source", "plotLayout"]))), 128))
      ], 512), [
        [vShow, e8.isSimulationValid]
      ]),
      withDirectives(createBaseVNode("div", WS, [
        createBaseVNode("p", qS, [
          KS,
          createTextVNode(),
          createBaseVNode("span", { innerHTML: e8.errorMessage }, null, 8, ZS),
          createTextVNode(".")
        ])
      ], 512), [
        [vShow, !e8.isSimulationValid]
      ])
    ])) : createCommentVNode("", true)
  ], 8, FS)), [
    [f, e8.showUserMessage]
  ]);
}
var XS = Uu($S, [["render", GS], ["__scopeId", "data-v-508c815f"]]);
export {
  XS as SimulationVuer
};
/*! Bundled license information:

@abi-software/simulationvuer/dist/simulationvuer.js:
  (**
  * @vue/shared v3.4.21
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
  * @license MIT
  **)
  (*! Element Plus Icons Vue v2.3.1 *)
  (*! https://mths.be/punycode v1.4.1 by @mathias *)
*/
//# sourceMappingURL=@abi-software_simulationvuer.js.map