import { unref as p, getCurrentScope as Uf, onScopeDispose as jf, getCurrentInstance as qe, onMounted as ze, nextTick as Oe, watch as ne, ref as N, defineComponent as Z, openBlock as C, createElementBlock as D, createElementVNode as q, warn as Hf, computed as w, inject as ve, isRef as hl, shallowRef as zr, onBeforeUnmount as Ct, onBeforeMount as Wf, provide as at, mergeProps as ar, renderSlot as re, toRef as pt, onUnmounted as qf, useAttrs as Kf, useSlots as yl, createCommentVNode as G, Fragment as He, normalizeClass as L, createBlock as te, withCtx as ee, resolveDynamicComponent as vt, withModifiers as Ne, createVNode as pe, toDisplayString as ke, normalizeStyle as Ve, Transition as lo, withDirectives as We, vShow as Bt, reactive as mt, onActivated as Zf, onUpdated as gl, cloneVNode as Gf, Text as bl, Comment as Jf, Teleport as Yf, readonly as Xf, onDeactivated as Qf, withKeys as Vt, createSlots as ec, toRaw as wl, toRefs as Er, watchEffect as tc, resolveComponent as Jt, resolveDirective as rc, toHandlerKey as nc, renderList as ir, createTextVNode as Qt, vModelText as oc, h as Nr, createApp as ac, pushScopeId as ic, popScopeId as sc } from "vue"; import { PlotVuer as lc } from "@abi-software/plotvuer"; const Ft = (e, t, { checkForDefaultPrevented: r = !0 } = {}) => (o) => { const a = e == null ? void 0 : e(o); if (r === !1 || !a) return t == null ? void 0 : t(o); }; var Si; const Fe = typeof window < "u", uc = (e) => typeof e == "string", Sl = () => { }, Go = Fe && ((Si = window == null ? void 0 : window.navigator) == null ? void 0 : Si.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent); function El(e) { return typeof e == "function" ? e() : p(e); } function fc(e) { return e; } function uo(e) { return Uf() ? (jf(e), !0) : !1; } function cc(e, t = !0) { qe() ? ze(e) : t ? e() : Oe(e); } function Nt(e) { var t; const r = El(e); return (t = r == null ? void 0 : r.$el) != null ? t : r; } const fo = Fe ? window : void 0; function je(...e) { let t, r, n, o; if (uc(e[0]) || Array.isArray(e[0]) ? ([r, n, o] = e, t = fo) : [t, r, n, o] = e, !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, h) => (f.addEventListener(c, d, h), () => f.removeEventListener(c, d, h)), u = ne(() => [Nt(t), El(o)], ([f, c]) => { i(), f && a.push(...r.flatMap((d) => n.map((h) => s(f, d, h, c)))); }, { immediate: !0, flush: "post" }), l = () => { u(), i(); }; return uo(l), l; } let Ei = !1; function dc(e, t, r = {}) { const { window: n = fo, ignore: o = [], capture: a = !0, detectIframe: i = !1 } = r; if (!n) return; Go && !Ei && (Ei = !0, Array.from(n.document.body.children).forEach((d) => d.addEventListener("click", Sl))); let s = !0; const u = (d) => o.some((h) => { if (typeof h == "string") return Array.from(n.document.querySelectorAll(h)).some((v) => v === d.target || d.composedPath().includes(v)); { const v = Nt(h); return v && (d.target === v || d.composedPath().includes(v)); } }), f = [ je(n, "click", (d) => { const h = Nt(e); if (!(!h || h === d.target || d.composedPath().includes(h))) { if (d.detail === 0 && (s = !u(d)), !s) { s = !0; return; } t(d); } }, { passive: !0, capture: a }), je(n, "pointerdown", (d) => { const h = Nt(e); h && (s = !d.composedPath().includes(h) && !u(d)); }, { passive: !0 }), i && je(n, "blur", (d) => { var h; const v = Nt(e); ((h = n.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(v != null && v.contains(n.document.activeElement)) && t(d); }) ].filter(Boolean); return () => f.forEach((d) => d()); } function Ol(e, t = !1) { const r = N(), n = () => r.value = !!e(); return n(), cc(n, t), r; } const Oi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ai = "__vueuse_ssr_handlers__"; Oi[Ai] = Oi[Ai] || {}; var _i = Object.getOwnPropertySymbols, pc = Object.prototype.hasOwnProperty, vc = Object.prototype.propertyIsEnumerable, mc = (e, t) => { var r = {}; for (var n in e) pc.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && _i) for (var n of _i(e)) t.indexOf(n) < 0 && vc.call(e, n) && (r[n] = e[n]); return r; }; function Mt(e, 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 = ne(() => Nt(e), (c) => { u(), s.value && o && c && (i = new ResizeObserver(t), i.observe(c, a)); }, { immediate: !0, flush: "post" }), f = () => { u(), l(); }; return uo(f), { isSupported: s, stop: f }; } var Ii = Object.getOwnPropertySymbols, hc = Object.prototype.hasOwnProperty, yc = Object.prototype.propertyIsEnumerable, gc = (e, t) => { var r = {}; for (var n in e) hc.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]); if (e != null && Ii) for (var n of Ii(e)) t.indexOf(n) < 0 && yc.call(e, n) && (r[n] = e[n]); return r; }; function bc(e, 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 = ne(() => Nt(e), (c) => { u(), s.value && o && c && (i = new MutationObserver(t), i.observe(c, a)); }, { immediate: !0 }), f = () => { u(), l(); }; return uo(f), { isSupported: s, stop: f }; } var Ci; (function(e) { e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE"; })(Ci || (Ci = {})); var wc = Object.defineProperty, xi = Object.getOwnPropertySymbols, Sc = Object.prototype.hasOwnProperty, Ec = Object.prototype.propertyIsEnumerable, Ti = (e, t, r) => t in e ? wc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Oc = (e, t) => { for (var r in t || (t = {})) Sc.call(t, r) && Ti(e, r, t[r]); if (xi) for (var r of xi(t)) Ec.call(t, r) && Ti(e, r, t[r]); return e; }; const 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); const _c = () => Fe && /firefox/i.test(window.navigator.userAgent); /** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ process.env.NODE_ENV !== "production" && Object.freeze({}); process.env.NODE_ENV !== "production" && Object.freeze([]); const yn = () => { }, Ic = Object.prototype.hasOwnProperty, Pi = (e, t) => Ic.call(e, t), Ot = Array.isArray, Be = (e) => typeof e == "function", Qe = (e) => typeof e == "string", Ge = (e) => e !== null && typeof e == "object", Cc = Object.prototype.toString, xc = (e) => Cc.call(e), Io = (e) => xc(e).slice(8, -1), Al = (e) => { const t = /* @__PURE__ */ Object.create(null); return (r) => t[r] || (t[r] = e(r)); }, Tc = /-(\w)/g, Pc = Al((e) => e.replace(Tc, (t, r) => r ? r.toUpperCase() : "")), $c = /\B([A-Z])/g, Fc = Al( (e) => e.replace($c, "-$1").toLowerCase() ); var _l = typeof global == "object" && global && global.Object === Object && global, Mc = typeof self == "object" && self && self.Object === Object && self, xt = _l || Mc || Function("return this")(), _t = xt.Symbol, Il = Object.prototype, Vc = Il.hasOwnProperty, Rc = Il.toString, sn = _t ? _t.toStringTag : void 0; function Nc(e) { var t = Vc.call(e, sn), r = e[sn]; try { e[sn] = void 0; var n = !0; } catch { } var o = Rc.call(e); return n && (t ? e[sn] = r : delete e[sn]), o; } var kc = Object.prototype, Lc = kc.toString; function zc(e) { return Lc.call(e); } var Bc = "[object Null]", Dc = "[object Undefined]", $i = _t ? _t.toStringTag : void 0; function en(e) { return e == null ? e === void 0 ? Dc : Bc : $i && $i in Object(e) ? Nc(e) : zc(e); } function Ur(e) { return e != null && typeof e == "object"; } var Uc = "[object Symbol]"; function co(e) { return typeof e == "symbol" || Ur(e) && en(e) == Uc; } function jc(e, t) { for (var r = -1, n = e == null ? 0 : e.length, o = Array(n); ++r < n; ) o[r] = t(e[r], r, e); return o; } var ht = Array.isArray, Hc = 1 / 0, Fi = _t ? _t.prototype : void 0, Mi = Fi ? Fi.toString : void 0; function Cl(e) { if (typeof e == "string") return e; if (ht(e)) return jc(e, Cl) + ""; if (co(e)) return Mi ? Mi.call(e) : ""; var t = e + ""; return t == "0" && 1 / e == -Hc ? "-0" : t; } var Wc = /\s/; function qc(e) { for (var t = e.length; t-- && Wc.test(e.charAt(t)); ) ; return t; } var Kc = /^\s+/; function Zc(e) { return e && e.slice(0, qc(e) + 1).replace(Kc, ""); } function sr(e) { var t = typeof e; return e != null && (t == "object" || t == "function"); } var Vi = NaN, Gc = /^[-+]0x[0-9a-f]+$/i, Jc = /^0b[01]+$/i, Yc = /^0o[0-7]+$/i, Xc = parseInt; function Ri(e) { if (typeof e == "number") return e; if (co(e)) return Vi; if (sr(e)) { var t = typeof e.valueOf == "function" ? e.valueOf() : e; e = sr(t) ? t + "" : t; } if (typeof e != "string") return e === 0 ? e : +e; e = Zc(e); var r = Jc.test(e); return r || Yc.test(e) ? Xc(e.slice(2), r ? 2 : 8) : Gc.test(e) ? Vi : +e; } function xl(e) { return e; } var Qc = "[object AsyncFunction]", ed = "[object Function]", td = "[object GeneratorFunction]", rd = "[object Proxy]"; function Tl(e) { if (!sr(e)) return !1; var t = en(e); return t == ed || t == td || t == Qc || t == rd; } var Co = xt["__core-js_shared__"], Ni = function() { var e = /[^.]+$/.exec(Co && Co.keys && Co.keys.IE_PROTO || ""); return e ? "Symbol(src)_1." + e : ""; }(); function nd(e) { return !!Ni && Ni in e; } var od = Function.prototype, ad = od.toString; function _r(e) { if (e != null) { try { return ad.call(e); } catch { } try { return e + ""; } catch { } } return ""; } var id = /[\\^$.*+?()[\]{}|]/g, sd = /^\[object .+?Constructor\]$/, ld = Function.prototype, ud = Object.prototype, fd = ld.toString, cd = ud.hasOwnProperty, dd = RegExp( "^" + fd.call(cd).replace(id, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); function pd(e) { if (!sr(e) || nd(e)) return !1; var t = Tl(e) ? dd : sd; return t.test(_r(e)); } function vd(e, t) { return e == null ? void 0 : e[t]; } function Ir(e, t) { var r = vd(e, t); return pd(r) ? r : void 0; } var Jo = Ir(xt, "WeakMap"); function md(e, t, r) { switch (r.length) { case 0: return e.call(t); case 1: return e.call(t, r[0]); case 2: return e.call(t, r[0], r[1]); case 3: return e.call(t, r[0], r[1], r[2]); } return e.apply(t, r); } var hd = 800, yd = 16, gd = Date.now; function bd(e) { 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 e.apply(void 0, arguments); }; } function wd(e) { return function() { return e; }; } var Jn = function() { try { var e = Ir(Object, "defineProperty"); return e({}, "", {}), e; } catch { } }(), Sd = Jn ? function(e, t) { return Jn(e, "toString", { configurable: !0, enumerable: !1, value: wd(t), writable: !0 }); } : xl, Ed = bd(Sd); function Od(e, t, r, n) { e.length; for (var o = r + 1; o--; ) if (t(e[o], o, e)) return o; return -1; } var Ad = 9007199254740991, _d = /^(?:0|[1-9]\d*)$/; function _a(e, t) { var r = typeof e; return t = t ?? Ad, !!t && (r == "number" || r != "symbol" && _d.test(e)) && e > -1 && e % 1 == 0 && e < t; } function Id(e, t, r) { t == "__proto__" && Jn ? Jn(e, t, { configurable: !0, enumerable: !0, value: r, writable: !0 }) : e[t] = r; } function Ia(e, t) { return e === t || e !== e && t !== t; } var Cd = Object.prototype, xd = Cd.hasOwnProperty; function Td(e, t, r) { var n = e[t]; (!(xd.call(e, t) && Ia(n, r)) || r === void 0 && !(t in e)) && Id(e, t, r); } var ki = Math.max; function Pd(e, t, r) { return t = ki(t === void 0 ? e.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(e, this, s); }; } var $d = 9007199254740991; function Ca(e) { return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $d; } function Fd(e) { return e != null && Ca(e.length) && !Tl(e); } var Md = Object.prototype; function Vd(e) { var t = e && e.constructor, r = typeof t == "function" && t.prototype || Md; return e === r; } function Rd(e, t) { for (var r = -1, n = Array(e); ++r < e; ) n[r] = t(r); return n; } var Nd = "[object Arguments]"; function Li(e) { return Ur(e) && en(e) == Nd; } var Pl = Object.prototype, kd = Pl.hasOwnProperty, Ld = Pl.propertyIsEnumerable, xa = Li(/* @__PURE__ */ function() { return arguments; }()) ? Li : function(e) { return Ur(e) && kd.call(e, "callee") && !Ld.call(e, "callee"); }; function zd() { return !1; } var $l = typeof exports == "object" && exports && !exports.nodeType && exports, zi = $l && typeof module == "object" && module && !module.nodeType && module, Bd = zi && zi.exports === $l, Bi = Bd ? xt.Buffer : void 0, Dd = Bi ? Bi.isBuffer : void 0, Yo = Dd || zd, Ud = "[object Arguments]", jd = "[object Array]", Hd = "[object Boolean]", Wd = "[object Date]", qd = "[object Error]", Kd = "[object Function]", Zd = "[object Map]", Gd = "[object Number]", Jd = "[object Object]", Yd = "[object RegExp]", Xd = "[object Set]", Qd = "[object String]", ep = "[object WeakMap]", tp = "[object ArrayBuffer]", rp = "[object DataView]", np = "[object Float32Array]", op = "[object Float64Array]", ap = "[object Int8Array]", ip = "[object Int16Array]", sp = "[object Int32Array]", lp = "[object Uint8Array]", up = "[object Uint8ClampedArray]", fp = "[object Uint16Array]", cp = "[object Uint32Array]", ye = {}; ye[np] = ye[op] = ye[ap] = ye[ip] = ye[sp] = ye[lp] = ye[up] = ye[fp] = ye[cp] = !0; 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] = !1; function dp(e) { return Ur(e) && Ca(e.length) && !!ye[en(e)]; } function pp(e) { return function(t) { return e(t); }; } var Fl = typeof exports == "object" && exports && !exports.nodeType && exports, cn = Fl && typeof module == "object" && module && !module.nodeType && module, vp = cn && cn.exports === Fl, xo = vp && _l.process, Di = function() { try { var e = cn && cn.require && cn.require("util").types; return e || xo && xo.binding && xo.binding("util"); } catch { } }(), Ui = Di && Di.isTypedArray, Ml = Ui ? pp(Ui) : dp, mp = Object.prototype, hp = mp.hasOwnProperty; function yp(e, t) { var r = ht(e), n = !r && xa(e), o = !r && !n && Yo(e), a = !r && !n && !o && Ml(e), i = r || n || o || a, s = i ? Rd(e.length, String) : [], u = s.length; for (var l in e) hp.call(e, 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(e, t) { return function(r) { return e(t(r)); }; } var bp = gp(Object.keys, Object), wp = Object.prototype, Sp = wp.hasOwnProperty; function Ep(e) { if (!Vd(e)) return bp(e); var t = []; for (var r in Object(e)) Sp.call(e, r) && r != "constructor" && t.push(r); return t; } function Vl(e) { return Fd(e) ? yp(e) : Ep(e); } var Op = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ap = /^\w*$/; function Ta(e, t) { if (ht(e)) return !1; var r = typeof e; return r == "number" || r == "symbol" || r == "boolean" || e == null || co(e) ? !0 : Ap.test(e) || !Op.test(e) || t != null && e in Object(t); } var gn = Ir(Object, "create"); function _p() { this.__data__ = gn ? gn(null) : {}, this.size = 0; } function Ip(e) { var t = this.has(e) && delete this.__data__[e]; return this.size -= t ? 1 : 0, t; } var Cp = "__lodash_hash_undefined__", xp = Object.prototype, Tp = xp.hasOwnProperty; function Pp(e) { var t = this.__data__; if (gn) { var r = t[e]; return r === Cp ? void 0 : r; } return Tp.call(t, e) ? t[e] : void 0; } var $p = Object.prototype, Fp = $p.hasOwnProperty; function Mp(e) { var t = this.__data__; return gn ? t[e] !== void 0 : Fp.call(t, e); } var Vp = "__lodash_hash_undefined__"; function Rp(e, t) { var r = this.__data__; return this.size += this.has(e) ? 0 : 1, r[e] = gn && t === void 0 ? Vp : t, this; } function Or(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[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(e, t) { for (var r = e.length; r--; ) if (Ia(e[r][0], t)) return r; return -1; } var kp = Array.prototype, Lp = kp.splice; function zp(e) { var t = this.__data__, r = po(t, e); if (r < 0) return !1; var n = t.length - 1; return r == n ? t.pop() : Lp.call(t, r, 1), --this.size, !0; } function Bp(e) { var t = this.__data__, r = po(t, e); return r < 0 ? void 0 : t[r][1]; } function Dp(e) { return po(this.__data__, e) > -1; } function Up(e, t) { var r = this.__data__, n = po(r, e); return n < 0 ? (++this.size, r.push([e, t])) : r[n][1] = t, this; } function Ut(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[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(e) { var t = typeof e; return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null; } function vo(e, t) { var r = e.__data__; return Hp(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; } function Wp(e) { var t = vo(this, e).delete(e); return this.size -= t ? 1 : 0, t; } function qp(e) { return vo(this, e).get(e); } function Kp(e) { return vo(this, e).has(e); } function Zp(e, t) { var r = vo(this, e), n = r.size; return r.set(e, t), this.size += r.size == n ? 0 : 1, this; } function jt(e) { var t = -1, r = e == null ? 0 : e.length; for (this.clear(); ++t < r; ) { var n = e[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(e, t) { if (typeof e != "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 = e.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(e) { var t = Pa(e, function(n) { return r.size === Jp && r.clear(), n; }), r = t.cache; return t; } var Xp = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qp = /\\(\\)?/g, ev = Yp(function(e) { var t = []; return e.charCodeAt(0) === 46 && t.push(""), e.replace(Xp, function(r, n, o, a) { t.push(o ? a.replace(Qp, "$1") : n || r); }), t; }); function tv(e) { return e == null ? "" : Cl(e); } function mo(e, t) { return ht(e) ? e : Ta(e, t) ? [e] : ev(tv(e)); } var rv = 1 / 0; function On(e) { if (typeof e == "string" || co(e)) return e; var t = e + ""; return t == "0" && 1 / e == -rv ? "-0" : t; } function $a(e, t) { t = mo(t, e); for (var r = 0, n = t.length; e != null && r < n; ) e = e[On(t[r++])]; return r && r == n ? e : void 0; } function Rt(e, t, r) { var n = e == null ? void 0 : $a(e, t); return n === void 0 ? r : n; } function Rl(e, t) { for (var r = -1, n = t.length, o = e.length; ++r < n; ) e[o + r] = t[r]; return e; } var ji = _t ? _t.isConcatSpreadable : void 0; function nv(e) { return ht(e) || xa(e) || !!(ji && e && e[ji]); } function ov(e, t, r, n, o) { var a = -1, i = e.length; for (r || (r = nv), o || (o = []); ++a < i; ) { var s = e[a]; r(s) ? Rl(o, s) : o[o.length] = s; } return o; } function av(e) { var t = e == null ? 0 : e.length; return t ? ov(e) : []; } function iv(e) { return Ed(Pd(e, void 0, av), e + ""); } function rr() { if (!arguments.length) return []; var e = arguments[0]; return ht(e) ? e : [e]; } function sv() { this.__data__ = new Ut(), this.size = 0; } function lv(e) { var t = this.__data__, r = t.delete(e); return this.size = t.size, r; } function uv(e) { return this.__data__.get(e); } function fv(e) { return this.__data__.has(e); } var cv = 200; function dv(e, t) { var r = this.__data__; if (r instanceof Ut) { var n = r.__data__; if (!bn || n.length < cv - 1) return n.push([e, t]), this.size = ++r.size, this; r = this.__data__ = new jt(n); } return r.set(e, t), this.size = r.size, this; } function Lt(e) { var t = this.__data__ = new Ut(e); 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(e, t) { for (var r = -1, n = e == null ? 0 : e.length, o = 0, a = []; ++r < n; ) { var i = e[r]; t(i, r, e) && (a[o++] = i); } return a; } function vv() { return []; } var mv = Object.prototype, hv = mv.propertyIsEnumerable, Hi = Object.getOwnPropertySymbols, yv = Hi ? function(e) { return e == null ? [] : (e = Object(e), pv(Hi(e), function(t) { return hv.call(e, t); })); } : vv; function gv(e, t, r) { var n = t(e); return ht(e) ? n : Rl(n, r(e)); } function Wi(e) { return gv(e, Vl, yv); } var Xo = Ir(xt, "DataView"), Qo = Ir(xt, "Promise"), ea = Ir(xt, "Set"), qi = "[object Map]", bv = "[object Object]", Ki = "[object Promise]", Zi = "[object Set]", Gi = "[object WeakMap]", Ji = "[object DataView]", wv = _r(Xo), Sv = _r(bn), Ev = _r(Qo), Ov = _r(ea), Av = _r(Jo), 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(e) { var t = en(e), r = t == bv ? e.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, _v = "__lodash_hash_undefined__"; function Iv(e) { return this.__data__.set(e, _v), this; } function Cv(e) { return this.__data__.has(e); } function Yn(e) { var t = -1, r = e == null ? 0 : e.length; for (this.__data__ = new jt(); ++t < r; ) this.add(e[t]); } Yn.prototype.add = Yn.prototype.push = Iv; Yn.prototype.has = Cv; function xv(e, t) { for (var r = -1, n = e == null ? 0 : e.length; ++r < n; ) if (t(e[r], r, e)) return !0; return !1; } function Tv(e, t) { return e.has(t); } var Pv = 1, $v = 2; function Nl(e, t, r, n, o, a) { var i = r & Pv, s = e.length, u = t.length; if (s != u && !(i && u > s)) return !1; var l = a.get(e), f = a.get(t); if (l && f) return l == t && f == e; var c = -1, d = !0, h = r & $v ? new Yn() : void 0; for (a.set(e, t), a.set(t, e); ++c < s; ) { var v = e[c], m = t[c]; if (n) var g = i ? n(m, v, c, t, e, a) : n(v, m, c, e, t, a); if (g !== void 0) { if (g) continue; d = !1; break; } if (h) { if (!xv(t, function(y, b) { if (!Tv(h, b) && (v === y || o(v, y, r, n, a))) return h.push(b); })) { d = !1; break; } } else if (!(v === m || o(v, m, r, n, a))) { d = !1; break; } } return a.delete(e), a.delete(t), d; } function Fv(e) { var t = -1, r = Array(e.size); return e.forEach(function(n, o) { r[++t] = [o, n]; }), r; } function Mv(e) { var t = -1, r = Array(e.size); return e.forEach(function(n) { r[++t] = n; }), r; } var Vv = 1, Rv = 2, Nv = "[object Boolean]", kv = "[object Date]", Lv = "[object Error]", zv = "[object Map]", Bv = "[object Number]", Dv = "[object RegExp]", Uv = "[object Set]", jv = "[object String]", Hv = "[object Symbol]", Wv = "[object ArrayBuffer]", qv = "[object DataView]", Xi = _t ? _t.prototype : void 0, To = Xi ? Xi.valueOf : void 0; function Kv(e, t, r, n, o, a, i) { switch (r) { case qv: if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1; e = e.buffer, t = t.buffer; case Wv: return !(e.byteLength != t.byteLength || !a(new Yi(e), new Yi(t))); case Nv: case kv: case Bv: return Ia(+e, +t); case Lv: return e.name == t.name && e.message == t.message; case Dv: case jv: return e == t + ""; case zv: var s = Fv; case Uv: var u = n & Vv; if (s || (s = Mv), e.size != t.size && !u) return !1; var l = i.get(e); if (l) return l == t; n |= Rv, i.set(e, t); var f = Nl(s(e), s(t), n, o, a, i); return i.delete(e), f; case Hv: if (To) return To.call(e) == To.call(t); } return !1; } var Zv = 1, Gv = Object.prototype, Jv = Gv.hasOwnProperty; function Yv(e, t, r, n, o, a) { var i = r & Zv, s = Wi(e), u = s.length, l = Wi(t), f = l.length; if (u != f && !i) return !1; for (var c = u; c--; ) { var d = s[c]; if (!(i ? d in t : Jv.call(t, d))) return !1; } var h = a.get(e), v = a.get(t); if (h && v) return h == t && v == e; var m = !0; a.set(e, t), a.set(t, e); for (var g = i; ++c < u; ) { d = s[c]; var y = e[d], b = t[d]; if (n) var O = i ? n(b, y, d, t, e, a) : n(y, b, d, e, t, a); if (!(O === void 0 ? y === b || o(y, b, r, n, a) : O)) { m = !1; break; } g || (g = d == "constructor"); } if (m && !g) { var I = e.constructor, S = t.constructor; I != S && "constructor" in e && "constructor" in t && !(typeof I == "function" && I instanceof I && typeof S == "function" && S instanceof S) && (m = !1); } return a.delete(e), a.delete(t), m; } var Xv = 1, Qi = "[object Arguments]", es = "[object Array]", Mn = "[object Object]", Qv = Object.prototype, ts = Qv.hasOwnProperty; function em(e, t, r, n, o, a) { var i = ht(e), s = ht(t), u = i ? es : er(e), 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(e)) { if (!Yo(t)) return !1; i = !0, f = !1; } if (d && !f) return a || (a = new Lt()), i || Ml(e) ? Nl(e, t, r, n, o, a) : Kv(e, t, u, r, n, o, a); if (!(r & Xv)) { var h = f && ts.call(e, "__wrapped__"), v = c && ts.call(t, "__wrapped__"); if (h || v) { var m = h ? e.value() : e, g = v ? t.value() : t; return a || (a = new Lt()), o(m, g, r, n, a); } } return d ? (a || (a = new Lt()), Yv(e, t, r, n, o, a)) : !1; } function ho(e, t, r, n, o) { return e === t ? !0 : e == null || t == null || !Ur(e) && !Ur(t) ? e !== e && t !== t : em(e, t, r, n, ho, o); } var tm = 1, rm = 2; function nm(e, t, r, n) { var o = r.length, a = o; if (e == null) return !a; for (e = Object(e); o--; ) { var i = r[o]; if (i[2] ? i[1] !== e[i[0]] : !(i[0] in e)) return !1; } for (; ++o < a; ) { i = r[o]; var s = i[0], u = e[s], l = i[1]; if (i[2]) { if (u === void 0 && !(s in e)) return !1; } else { var f = new Lt(), c; if (!(c === void 0 ? ho(l, u, tm | rm, n, f) : c)) return !1; } } return !0; } function kl(e) { return e === e && !sr(e); } function om(e) { for (var t = Vl(e), r = t.length; r--; ) { var n = t[r], o = e[n]; t[r] = [n, o, kl(o)]; } return t; } function Ll(e, t) { return function(r) { return r == null ? !1 : r[e] === t && (t !== void 0 || e in Object(r)); }; } function am(e) { var t = om(e); return t.length == 1 && t[0][2] ? Ll(t[0][0], t[0][1]) : function(r) { return r === e || nm(r, e, t); }; } function im(e, t) { return e != null && t in Object(e); } function sm(e, t, r) { t = mo(t, e); for (var n = -1, o = t.length, a = !1; ++n < o; ) { var i = On(t[n]); if (!(a = e != null && r(e, i))) break; e = e[i]; } return a || ++n != o ? a : (o = e == null ? 0 : e.length, !!o && Ca(o) && _a(i, o) && (ht(e) || xa(e))); } function zl(e, t) { return e != null && sm(e, t, im); } var lm = 1, um = 2; function fm(e, t) { return Ta(e) && kl(t) ? Ll(On(e), t) : function(r) { var n = Rt(r, e); return n === void 0 && n === t ? zl(r, e) : ho(t, n, lm | um); }; } function cm(e) { return function(t) { return t == null ? void 0 : t[e]; }; } function dm(e) { return function(t) { return $a(t, e); }; } function pm(e) { return Ta(e) ? cm(On(e)) : dm(e); } function vm(e) { return typeof e == "function" ? e : e == null ? xl : typeof e == "object" ? ht(e) ? fm(e[0], e[1]) : am(e) : pm(e); } var Po = function() { return xt.Date.now(); }, mm = "Expected a function", hm = Math.max, ym = Math.min; function ta(e, t, r) { var n, o, a, i, s, u, l = 0, f = !1, c = !1, d = !0; if (typeof e != "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 h(x) { var T = n, V = o; return n = o = void 0, l = x, i = e.apply(V, T), i; } function v(x) { return l = x, s = setTimeout(y, t), f ? h(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 ? h(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), h(u); } return s === void 0 && (s = setTimeout(y, t)), i; } return S.cancel = O, S.flush = I, S; } function gm(e, t, r) { var n = e == null ? 0 : e.length; if (!n) return -1; var o = n - 1; return Od(e, vm(t), o); } function Xn(e) { for (var t = -1, r = e == null ? 0 : e.length, n = {}; ++t < r; ) { var o = e[t]; n[o[0]] = o[1]; } return n; } function ra(e, t) { return ho(e, t); } function zt(e) { return e == null; } function bm(e) { return e === void 0; } function wm(e, t, r, n) { if (!sr(e)) return e; t = mo(t, e); for (var o = -1, a = t.length, i = a - 1, s = e; s != null && ++o < a; ) { var u = On(t[o]), l = r; if (u === "__proto__" || u === "constructor" || u === "prototype") return e; 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 e; } function Sm(e, t, r) { for (var n = -1, o = t.length, a = {}; ++n < o; ) { var i = t[n], s = $a(e, i); r(s, i) && wm(a, mo(i, e), s); } return a; } function Em(e, t) { return Sm(e, t, function(r, n) { return zl(e, n); }); } var Om = iv(function(e, t) { return e == null ? {} : Em(e, t); }); const kt = (e) => e === void 0, Bl = (e) => typeof e == "boolean", ge = (e) => typeof e == "number", yr = (e) => typeof Element > "u" ? !1 : e instanceof Element, Am = (e) => Qe(e) ? !Number.isNaN(Number(e)) : !1, _m = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d"), rs = (e) => Object.keys(e); class Dl extends Error { constructor(t) { super(t), this.name = "ElementPlusError"; } } function Fa(e, t) { throw new Dl(`[${e}] ${t}`); } function Ce(e, t) { if (process.env.NODE_ENV !== "production") { const r = Qe(e) ? new Dl(`[${e}] ${t}`) : e; console.warn(r); } } const Im = "utils/dom/style", Ul = (e = "") => e.split(" ").filter((t) => !!t.trim()), ns = (e, t) => { !e || !t.trim() || e.classList.add(...Ul(t)); }, Qn = (e, t) => { !e || !t.trim() || e.classList.remove(...Ul(t)); }, ln = (e, t) => { var r; if (!Fe || !e || !t) return ""; let n = Pc(t); n === "float" && (n = "cssFloat"); try { const o = e.style[n]; if (o) return o; const a = (r = document.defaultView) == null ? void 0 : r.getComputedStyle(e, ""); return a ? a[n] : ""; } catch { return e.style[n]; } }; function na(e, t = "px") { if (!e) return ""; if (ge(e) || Am(e)) return `${e}${t}`; if (Qe(e)) return e; Ce(Im, "binding value must be a string or number"); } function Cm(e, t) { if (!Fe) return; if (!t) { e.scrollTop = 0; return; } const r = []; let n = t.offsetParent; for (; n !== null && e !== n && e.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 = e.scrollTop, s = i + e.clientHeight; o < i ? e.scrollTop = o : a > s && (e.scrollTop = a - e.clientHeight); } /*! Element Plus Icons Vue v2.3.1 */ var xm = /* @__PURE__ */ Z({ name: "ArrowDown", __name: "arrow-down", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), jl = xm, Tm = /* @__PURE__ */ Z({ name: "ArrowUp", __name: "arrow-up", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), Pm = Tm, $m = /* @__PURE__ */ Z({ name: "CircleCheck", __name: "circle-check", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }), q("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" }) ])); } }), Fm = $m, Mm = /* @__PURE__ */ Z({ name: "CircleClose", __name: "circle-close", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }), q("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" }) ])); } }), Ma = Mm, Vm = /* @__PURE__ */ Z({ name: "Close", __name: "close", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), os = Vm, Rm = /* @__PURE__ */ Z({ name: "Hide", __name: "hide", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }), q("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" }) ])); } }), Nm = Rm, km = /* @__PURE__ */ Z({ name: "Loading", __name: "loading", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), Hl = km, Lm = /* @__PURE__ */ Z({ name: "Minus", __name: "minus", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("path", { fill: "currentColor", d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64" }) ])); } }), zm = Lm, Bm = /* @__PURE__ */ Z({ name: "Plus", __name: "plus", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), Dm = Bm, Um = /* @__PURE__ */ Z({ name: "View", __name: "view", setup(e) { return (t, r) => (C(), D("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024" }, [ q("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" }) ])); } }), jm = Um; const Wl = "__epPropKey", ie = (e) => e, Hm = (e) => Ge(e) && !!e[Wl], yo = (e, t) => { if (!Ge(e) || Hm(e)) return e; const { values: r, required: n, default: o, type: a, validator: i } = e, u = { type: a, required: !!n, validator: r || i ? (l) => { let f = !1, c = []; if (r && (c = Array.from(r), Pi(e, "default") && c.push(o), f || (f = c.includes(l))), i && (f || (f = i(l))), !f && c.length > 0) { const d = [...new Set(c)].map((h) => JSON.stringify(h)).join(", "); Hf(`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${d}], got value ${JSON.stringify(l)}.`); } return f; } : void 0, [Wl]: !0 }; return Pi(e, "default") && (u.default = o), u; }, we = (e) => Xn(Object.entries(e).map(([t, r]) => [ t, yo(r, t) ])), jr = ie([ String, Object, Function ]), ql = { validating: Hl, success: Fm, error: Ma }, lt = (e, t) => { if (e.install = (r) => { for (const n of [e, ...Object.values(t ?? {})]) r.component(n.name, n); }, t) for (const [r, n] of Object.entries(t)) e[r] = n; return e; }, Va = (e) => (e.install = yn, e), 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" }, Pe = "update:modelValue", tn = "change", gr = "input", Kl = ["", "default", "small", "large"], Wm = (e) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e), qm = (e) => e, Km = ["class", "style"], Zm = /^on[A-Z]/, Gm = (e = {}) => { const { excludeListeners: t = !1, excludeKeys: r } = e, n = w(() => ((r == null ? void 0 : r.value) || []).concat(Km)), o = qe(); return o ? w(() => { 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"), w(() => ({}))); }, Jm = ({ from: e, replacement: t, scope: r, version: n, ref: o, type: a = "API" }, i) => { ne(() => p(i), (s) => { s && Ce(r, `[${a}] ${e} is about to be deprecated in version ${n}, please use ${t} instead. For more detail, please visit: ${o} `); }, { immediate: !0 }); }; 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}" } } }; const Xm = (e) => (t, r) => Qm(t, r, p(e)), Qm = (e, t, r) => Rt(r, e, e).replace(/\{(\w+)\}/g, (n, o) => { var a; return `${(a = t == null ? void 0 : t[o]) != null ? a : `{${o}}`}`; }), eh = (e) => { const t = w(() => p(e).name), r = hl(e) ? e : N(e); return { lang: t, locale: r, t: Xm(e) }; }, Zl = Symbol("localeContextKey"), go = (e) => { const t = e || ve(Zl, N()); return eh(w(() => t.value || Ym)); }, Hn = "el", th = "is-", vr = (e, t, r, n, o) => { let a = `${e}-${t}`; return r && (a += `-${r}`), n && (a += `__${n}`), o && (a += `--${o}`), a; }, Gl = Symbol("namespaceContextKey"), Ra = (e) => { const t = e || (qe() ? ve(Gl, N(Hn)) : N(Hn)); return w(() => p(t) || Hn); }, be = (e, t) => { const r = Ra(t); return { namespace: r, b: (m = "") => vr(r.value, e, m, "", ""), e: (m) => m ? vr(r.value, e, "", m, "") : "", m: (m) => m ? vr(r.value, e, "", "", m) : "", be: (m, g) => m && g ? vr(r.value, e, m, g, "") : "", em: (m, g) => m && g ? vr(r.value, e, "", m, g) : "", bm: (m, g) => m && g ? vr(r.value, e, m, "", g) : "", bem: (m, g, y) => m && g && y ? vr(r.value, e, m, g, y) : "", is: (m, ...g) => { const y = g.length >= 1 ? g[0] : !0; 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}-${e}-${y}`] = m[y]); return g; }, cssVarBlockName: (m) => `--${r.value}-${e}-${m}` }; }, rh = yo({ type: ie(Boolean), default: null }), nh = yo({ type: ie(Function) }), oh = (e) => { const t = `update:${e}`, r = `onUpdate:${e}`, n = [t], o = { [e]: rh, [r]: nh }; return { useModelToggle: ({ indicator: i, toggleReason: s, shouldHideWhenRouteChanges: u, shouldProceed: l, onShow: f, onHide: c }) => { const d = qe(), { emit: h } = d, v = d.props, m = w(() => Be(v[r])), g = w(() => v[e] === null), y = (T) => { i.value !== !0 && (i.value = !0, s && (s.value = T), Be(f) && f(T)); }, b = (T) => { i.value !== !1 && (i.value = !1, s && (s.value = T), Be(c) && c(T)); }, O = (T) => { if (v.disabled === !0 || Be(l) && !l()) return; const V = m.value && Fe; V && h(t, !0), (g.value || !V) && y(T); }, I = (T) => { if (v.disabled === !0 || !Fe) return; const V = m.value && Fe; V && h(t, !1), (g.value || !V) && b(T); }, S = (T) => { Bl(T) && (v.disabled && T ? m.value && h(t, !1) : i.value !== T && (T ? y() : b())); }, x = () => { i.value ? I() : O(); }; return ne(() => v[e], S), u && d.appContext.config.globalProperties.$route !== void 0 && ne(() => ({ ...d.proxy.$route }), () => { u.value && i.value && I(); }), ze(() => { S(v[e]); }), { hide: I, show: O, toggle: x, hasUpdateHandler: m }; }, useModelToggleProps: o, useModelToggleEmits: n }; }, Jl = (e) => { const t = qe(); return w(() => { var r, n; return (n = (r = t == null ? void 0 : t.proxy) == null ? void 0 : r.$props) == null ? void 0 : n[e]; }); }; var Je = "top", it = "bottom", st = "right", Ye = "left", Na = "auto", An = [Je, it, st, Ye], Wr = "start", wn = "end", ah = "clippingParents", Yl = "viewport", un = "popper", ih = "reference", as = An.reduce(function(e, t) { return e.concat([t + "-" + Wr, t + "-" + wn]); }, []), rn = [].concat(An, [Na]).reduce(function(e, t) { return e.concat([t, t + "-" + Wr, t + "-" + wn]); }, []), sh = "beforeRead", lh = "read", uh = "afterRead", fh = "beforeMain", ch = "main", dh = "afterMain", ph = "beforeWrite", vh = "write", mh = "afterWrite", hh = [sh, lh, uh, fh, ch, dh, ph, vh, mh]; function It(e) { return e ? (e.nodeName || "").toLowerCase() : null; } function yt(e) { if (e == null) return window; if (e.toString() !== "[object Window]") { var t = e.ownerDocument; return t && t.defaultView || window; } return e; } function qr(e) { var t = yt(e).Element; return e instanceof t || e instanceof Element; } function nt(e) { var t = yt(e).HTMLElement; return e instanceof t || e instanceof HTMLElement; } function ka(e) { if (typeof ShadowRoot > "u") return !1; var t = yt(e).ShadowRoot; return e instanceof t || e instanceof ShadowRoot; } function yh(e) { var t = e.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 === !1 ? a.removeAttribute(i) : a.setAttribute(i, s === !0 ? "" : s); })); }); } function gh(e) { var t = e.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: !0, phase: "write", fn: yh, effect: gh, requires: ["computeStyles"] }; function At(e) { return e.split("-")[0]; } var br = Math.max, eo = Math.min, Kr = Math.round; function Zr(e, t) { t === void 0 && (t = !1); var r = e.getBoundingClientRect(), n = 1, o = 1; if (nt(e) && t) { var a = e.offsetHeight, i = e.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(e) { var t = Zr(e), r = e.offsetWidth, n = e.offsetHeight; return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), { x: e.offsetLeft, y: e.offsetTop, width: r, height: n }; } function Ql(e, t) { var r = t.getRootNode && t.getRootNode(); if (e.contains(t)) return !0; if (r && ka(r)) { var n = t; do { if (n && e.isSameNode(n)) return !0; n = n.parentNode || n.host; } while (n); } return !1; } function Dt(e) { return yt(e).getComputedStyle(e); } function bh(e) { return ["table", "td", "th"].indexOf(It(e)) >= 0; } function lr(e) { return ((qr(e) ? e.ownerDocument : e.document) || window.document).documentElement; } function bo(e) { return It(e) === "html" ? e : e.assignedSlot || e.parentNode || (ka(e) ? e.host : null) || lr(e); } function is(e) { return !nt(e) || Dt(e).position === "fixed" ? null : e.offsetParent; } function wh(e) { var t = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, r = navigator.userAgent.indexOf("Trident") !== -1; if (r && nt(e)) { var n = Dt(e); if (n.position === "fixed") return null; } var o = bo(e); 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(e) { for (var t = yt(e), r = is(e); 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(e) || t; } function za(e) { return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; } function dn(e, t, r) { return br(e, eo(t, r)); } function Sh(e, t, r) { var n = dn(e, t, r); return n > r ? r : n; } function eu() { return { top: 0, right: 0, bottom: 0, left: 0 }; } function tu(e) { return Object.assign({}, eu(), e); } function ru(e, t) { return t.reduce(function(r, n) { return r[n] = e, r; }, {}); } var Eh = function(e, t) { return e = typeof e == "function" ? e(Object.assign({}, t.rects, { placement: t.placement })) : e, tu(typeof e != "number" ? e : ru(e, An)); }; function Oh(e) { var t, r = e.state, n = e.name, o = e.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), h = 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[h], 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(e) { var t = e.state, r = e.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: !0, phase: "main", fn: Oh, effect: Ah, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; function Gr(e) { return e.split("-")[1]; } var Ih = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; function Ch(e) { var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1; return { x: Kr(t * o) / o || 0, y: Kr(r * o) / o || 0 }; } function ss(e) { var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, i = e.offsets, s = e.position, u = e.gpuAcceleration, l = e.adaptive, f = e.roundOffsets, c = e.isFixed, d = i.x, h = d === void 0 ? 0 : d, v = i.y, m = v === void 0 ? 0 : v, g = typeof f == "function" ? f({ x: h, y: m }) : { x: h, y: m }; h = 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]; h -= H - n.width, h *= u ? 1 : -1; } } var J = Object.assign({ position: s }, l && Ih), R = f === !0 ? Ch({ x: h, y: m }) : { x: h, y: m }; if (h = 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(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", z)); } return Object.assign({}, J, (t = {}, t[I] = b ? m + "px" : "", t[O] = y ? h + "px" : "", t.transform = "", t)); } function xh(e) { var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, i = a === void 0 ? !0 : a, s = r.roundOffsets, u = s === void 0 ? !0 : 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: !1, roundOffsets: u })))), t.attributes.popper = Object.assign({}, t.attributes.popper, { "data-popper-placement": t.placement }); } var nu = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: xh, data: {} }, Vn = { passive: !0 }; function Th(e) { var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, i = n.resize, s = i === void 0 ? !0 : 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: !0, phase: "write", fn: function() { }, effect: Th, data: {} }, Ph = { left: "right", right: "left", bottom: "top", top: "bottom" }; function Wn(e) { return e.replace(/left|right|bottom|top/g, function(t) { return Ph[t]; }); } var $h = { start: "end", end: "start" }; function ls(e) { return e.replace(/start|end/g, function(t) { return $h[t]; }); } function Ba(e) { var t = yt(e), r = t.pageXOffset, n = t.pageYOffset; return { scrollLeft: r, scrollTop: n }; } function Da(e) { return Zr(lr(e)).left + Ba(e).scrollLeft; } function Fh(e) { var t = yt(e), r = lr(e), 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(e), y: s }; } function Mh(e) { var t, r = lr(e), n = Ba(e), o = (t = e.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(e), 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(e) { var t = Dt(e), r = t.overflow, n = t.overflowX, o = t.overflowY; return /auto|scroll|overlay|hidden/.test(r + o + n); } function au(e) { return ["html", "body", "#document"].indexOf(It(e)) >= 0 ? e.ownerDocument.body : nt(e) && Ua(e) ? e : au(bo(e)); } function pn(e, t) { var r; t === void 0 && (t = []); var n = au(e), o = n === ((r = e.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(e) { return Object.assign({}, e, { left: e.x, top: e.y, right: e.x + e.width, bottom: e.y + e.height }); } function Vh(e) { var t = Zr(e); return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t; } function us(e, t) { return t === Yl ? oa(Fh(e)) : qr(t) ? Vh(t) : oa(Mh(lr(e))); } function Rh(e) { var t = pn(bo(e)), r = ["absolute", "fixed"].indexOf(Dt(e).position) >= 0, n = r && nt(e) ? _n(e) : e; return qr(n) ? t.filter(function(o) { return qr(o) && Ql(o, n) && It(o) !== "body"; }) : []; } function Nh(e, t, r) { var n = t === "clippingParents" ? Rh(e) : [].concat(t), o = [].concat(n, [r]), a = o[0], i = o.reduce(function(s, u) { var l = us(e, 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(e, 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(e) { var t = e.reference, r = e.element, n = e.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(e, t) { t === void 0 && (t = {}); var r = t, n = r.placement, o = n === void 0 ? e.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 ? !1 : c, h = r.padding, v = h === void 0 ? 0 : h, m = tu(typeof v != "number" ? v : ru(v, An)), g = f === un ? ih : un, y = e.rects.popper, b = e.elements[d ? g : f], O = Nh(qr(b) ? b : b.contextElement || lr(e.elements.popper), i, u), I = Zr(e.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 }, $ = e.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(e, 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 h = d.reduce(function(v, m) { return v[m] = Sn(e, { placement: m, boundary: o, rootBoundary: a, padding: i })[At(m)], v; }, {}); return Object.keys(h).sort(function(v, m) { return h[v] - h[m]; }); } function Lh(e) { if (At(e) === Na) return []; var t = Wn(e); return [ls(e), t, ls(t)]; } function zh(e) { var t = e.state, r = e.options, n = e.name; if (!t.modifiersData[n]._skip) { for (var o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !0 : i, u = r.fallbackPlacements, l = r.padding, f = r.boundary, c = r.rootBoundary, d = r.altBoundary, h = r.flipVariations, v = h === void 0 ? !0 : h, 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 = !0, $ = 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 = !1; 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 = !0, t.placement = $, t.reset = !0); } } var Bh = { name: "flip", enabled: !0, phase: "main", fn: zh, requiresIfExists: ["offset"], data: { _skip: !1 } }; function fs(e, t, r) { return r === void 0 && (r = { x: 0, y: 0 }), { top: e.top - t.height - r.y, right: e.right - t.width + r.x, bottom: e.bottom - t.height + r.y, left: e.left - t.width - r.x }; } function cs(e) { return [Je, st, it, Ye].some(function(t) { return e[t] >= 0; }); } function Dh(e) { var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, i = Sn(t, { elementContext: "reference" }), s = Sn(t, { altBoundary: !0 }), 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: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: Dh }; function jh(e, t, r) { var n = At(e), o = [Ye, Je].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : 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(e) { var t = e.state, r = e.options, n = e.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: !0, phase: "main", requires: ["popperOffsets"], fn: Hh }; function qh(e) { var t = e.state, r = e.name; t.modifiersData[r] = iu({ reference: t.rects.reference, element: t.rects.popper, strategy: "absolute", placement: t.placement }); } var su = { name: "popperOffsets", enabled: !0, phase: "read", fn: qh, data: {} }; function Kh(e) { return e === "x" ? "y" : "x"; } function Zh(e) { var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, i = r.altAxis, s = i === void 0 ? !1 : i, u = r.boundary, l = r.rootBoundary, f = r.altBoundary, c = r.padding, d = r.tether, h = d === void 0 ? !0 : 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 = h ? -V[A] / 2 : 0, U = b === Wr ? T[A] : V[A], M = b === Wr ? -V[A] : -T[A], j = t.elements.arrow, Y = h && 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(h ? eo(Q, Ue) : Q, k, h ? 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 = h && gt ? Sh(de, ut, tt) : dn(h ? de : Wt, ut, h ? tt : Pr); x[S] = qt, R[S] = qt - ut; } t.modifiersData[n] = R; } } var Gh = { name: "preventOverflow", enabled: !0, phase: "main", fn: Zh, requiresIfExists: ["offset"] }; function Jh(e) { return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; } function Yh(e) { return e === yt(e) || !nt(e) ? Ba(e) : Jh(e); } function Xh(e) { var t = e.getBoundingClientRect(), r = Kr(t.width) / e.offsetWidth || 1, n = Kr(t.height) / e.offsetHeight || 1; return r !== 1 || n !== 1; } function Qh(e, t, r) { r === void 0 && (r = !1); var n = nt(t), o = nt(t) && Xh(t), a = lr(t), i = Zr(e, 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, !0), 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(e) { var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = []; e.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 e.forEach(function(a) { r.has(a.name) || o(a); }), n; } function ty(e) { var t = ey(e); return hh.reduce(function(r, n) { return r.concat(t.filter(function(o) { return o.phase === n; })); }, []); } function ry(e) { var t; return function() { return t || (t = new Promise(function(r) { Promise.resolve().then(function() { t = void 0, r(e()); }); })), t; }; } function ny(e) { var t = e.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 e = arguments.length, t = new Array(e), r = 0; r < e; r++) t[r] = arguments[r]; return !t.some(function(n) { return !(n && typeof n.getBoundingClientRect == "function"); }); } function ja(e) { e === void 0 && (e = {}); var t = e, 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 = !1, 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; }), h(), 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 = !1, 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 === !0) { l.reset = !1, 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 = !0; } }; if (!ps(i, s)) return d; d.setOptions(u).then(function(m) { !c && u.onFirstUpdate && u.onFirstUpdate(m); }); function h() { 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], iy = ja({ defaultModifiers: ay }); const sy = (e, t, r = {}) => { const n = { name: "updateState", enabled: !0, phase: "write", fn: ({ state: u }) => { const l = ly(u); Object.assign(i.value, l); }, requires: ["computeStyles"] }, o = w(() => { const { onFirstUpdate: u, placement: l, strategy: f, modifiers: c } = p(r); return { onFirstUpdate: u, placement: l || "bottom", strategy: f || "absolute", modifiers: [ ...c || [], n, { name: "applyStyles", enabled: !1 } ] }; }), a = zr(), i = N({ styles: { popper: { position: p(o).strategy, left: "0", top: "0" }, arrow: { position: "absolute" } }, attributes: {} }), s = () => { a.value && (a.value.destroy(), a.value = void 0); }; return ne(o, (u) => { const l = p(a); l && l.setOptions(u); }, { deep: !0 }), ne([e, t], ([u, l]) => { s(), !(!u || !l) && (a.value = iy(u, l, p(o))); }), Ct(() => { s(); }), { state: w(() => { var u; return { ...((u = p(a)) == null ? void 0 : u.state) || {} }; }), styles: w(() => p(i).styles), attributes: w(() => p(i).attributes), update: () => { var u; return (u = p(a)) == null ? void 0 : u.update(); }, forceUpdate: () => { var u; return (u = p(a)) == null ? void 0 : u.forceUpdate(); }, instanceRef: w(() => p(a)) }; }; function ly(e) { const t = Object.keys(e.elements), r = Xn(t.map((o) => [o, e.styles[o] || {}])), n = Xn(t.map((o) => [o, e.attributes[o]])); return { styles: r, attributes: n }; } function vs() { let e; const t = (n, o) => { r(), e = window.setTimeout(n, o); }, r = () => window.clearTimeout(e); return uo(() => r()), { registerTimeout: t, cancelTimeout: r }; } const aa = { prefix: Math.floor(Math.random() * 1e4), current: 0 }, uy = Symbol("elIdInjection"), lu = () => qe() ? ve(uy, aa) : aa, wo = (e) => { 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 w(() => p(e) || `${r.value}-id-${t.prefix}-${t.current++}`); }; let kr = []; const ms = (e) => { const t = e; t.key === Hr.esc && kr.forEach((r) => r(t)); }, fy = (e) => { ze(() => { kr.length === 0 && document.addEventListener("keydown", ms), Fe && kr.push(e); }), Ct(() => { kr = kr.filter((t) => t !== e), kr.length === 0 && Fe && document.removeEventListener("keydown", ms); }); }; let hs; const uu = () => { const e = Ra(), t = lu(), r = w(() => `${e.value}-popper-container-${t.prefix}`), n = w(() => `#${r.value}`); return { id: r, selector: n }; }, cy = (e) => { const t = document.createElement("div"); return t.id = e, document.body.appendChild(t), t; }, dy = () => { const { id: e, selector: t } = uu(); return Wf(() => { Fe && (process.env.NODE_ENV === "test" || !hs || !document.body.querySelector(t.value)) && (hs = cy(e.value)); }), { id: e, selector: t }; }, py = we({ showAfter: { type: Number, default: 0 }, hideAfter: { type: Number, default: 200 }, autoClose: { type: Number, default: 0 } }), vy = ({ showAfter: e, 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 = p(r); ge(c) && c > 0 && i(() => { o(f); }, c); }, p(e)); }, onClose: (f) => { s(), a(() => { o(f); }, p(t)); } }; }, fu = Symbol("elForwardRef"), my = (e) => { at(fu, { setForwardRef: (r) => { e.value = r; } }); }, hy = (e) => ({ mounted(t) { e(t); }, updated(t) { e(t); }, unmounted() { e(null); } }), ys = { current: 0 }, gs = N(0), cu = 2e3, bs = Symbol("elZIndexContextKey"), du = Symbol("zIndexContextKey"), pu = (e) => { const t = qe() ? ve(bs, ys) : ys, r = e || (qe() ? ve(du, void 0) : void 0), n = w(() => { const i = p(r); return ge(i) ? i : cu; }), o = w(() => n.value + gs.value), a = () => (t.current++, gs.value = t.current, o.value); return !Fe && !ve(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(e) { let t; function r() { if (e.value == null) return; const { selectionStart: o, selectionEnd: a, value: i } = e.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 (e.value == null || t == null) return; const { value: o } = e.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); } e.value.setSelectionRange(u, u); } return [r, n]; } const Jr = yo({ type: String, values: Kl, required: !1 }), vu = Symbol("size"), gy = () => { const e = ve(vu, {}); return w(() => p(e.size) || ""); }; function mu(e, { beforeFocus: t, afterFocus: r, beforeBlur: n, afterBlur: o } = {}) { const a = qe(), { emit: i } = a, s = zr(), u = N(!1), l = (d) => { Be(t) && t(d) || u.value || (u.value = !0, i("focus", d), r == null || r()); }, f = (d) => { var h; Be(n) && n(d) || d.relatedTarget && ((h = s.value) != null && h.contains(d.relatedTarget)) || (u.value = !1, i("blur", d), o == null || o()); }, c = () => { var d, h; (d = s.value) != null && d.contains(document.activeElement) && s.value !== document.activeElement || (h = e.value) == null || h.focus(); }; return ne(s, (d) => { d && d.setAttribute("tabindex", "-1"); }), je(s, "focus", l, !0), je(s, "blur", f, !0), je(s, "click", c, !0), process.env.NODE_ENV === "test" && ze(() => { const d = yr(e.value) ? e.value : document.querySelector("input,textarea"); d && (je(d, "focus", l, !0), je(d, "blur", f, !0)); }), { isFocused: u, wrapperRef: s, handleFocus: l, handleBlur: f }; } function hu({ afterComposition: e, emit: t }) { const r = N(!1), n = (s) => { t == null || t("compositionstart", s), r.value = !0; }, 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 = !1, Oe(() => e(s))); }; return { isComposing: r, handleComposition: (s) => { s.type === "compositionend" ? a(s) : o(s); }, handleCompositionStart: n, handleCompositionUpdate: o, handleCompositionEnd: a }; } const yu = Symbol("emptyValuesContextKey"), by = "use-empty-values", wy = ["", void 0, null], Sy = void 0, Ey = we({ emptyValues: Array, valueOnClear: { type: [String, Number, Boolean, Function], default: void 0, validator: (e) => Be(e) ? !e() : !e } }), Oy = (e, t) => { const r = qe() ? ve(yu, N({})) : N({}), n = w(() => e.emptyValues || r.value.emptyValues || wy), o = w(() => Be(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.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 }; }, Ay = we({ ariaLabel: String, ariaOrientation: { type: String, values: ["horizontal", "vertical", "undefined"] }, ariaControls: String }), Cr = (e) => Om(Ay, e), gu = Symbol(), to = N(); function Ha(e, t = void 0) { const r = qe() ? ve(gu, to) : to; return e ? w(() => { var n, o; return (o = (n = r.value) == null ? void 0 : n[e]) != null ? o : t; }) : r; } function _y(e, t) { const r = Ha(), n = be(e, w(() => { var s; return ((s = r.value) == null ? void 0 : s.namespace) || Hn; })), o = go(w(() => { var s; return (s = r.value) == null ? void 0 : s.locale; })), a = pu(w(() => { var s; return ((s = r.value) == null ? void 0 : s.zIndex) || cu; })), i = w(() => { var s; return p(t) || ((s = r.value) == null ? void 0 : s.size) || ""; }); return Iy(w(() => p(r) || {})), { ns: n, locale: o, zIndex: a, size: i }; } const Iy = (e, t, r = !1) => { var n; const o = !!qe(), a = o ? Ha() : void 0, i = (n = void 0) != null ? n : o ? at : void 0; if (!i) { Ce("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup()."); return; } const s = w(() => { const u = p(e); return a != null && a.value ? Cy(a.value, u) : u; }); return i(gu, s), i(Zl, w(() => s.value.locale)), i(Gl, w(() => s.value.namespace)), i(du, w(() => s.value.zIndex)), i(vu, { size: w(() => s.value.size || "") }), i(yu, w(() => ({ emptyValues: s.value.emptyValues, valueOnClear: s.value.valueOnClear }))), (r || !to.value) && (to.value = s.value), s; }, Cy = (e, t) => { const r = [.../* @__PURE__ */ new Set([...rs(e), ...rs(t)])], n = {}; for (const o of r) n[o] = t[o] !== void 0 ? t[o] : e[o]; return n; }; var Se = (e, t) => { const r = e.__vccOpts || e; for (const [n, o] of t) r[n] = o; return r; }; const xy = we({ size: { type: ie([Number, String]) }, color: { type: String } }), Ty = Z({ name: "ElIcon", inheritAttrs: !1 }), Py = /* @__PURE__ */ Z({ ...Ty, props: xy, setup(e) { const t = e, r = be("icon"), n = w(() => { const { size: o, color: a } = t; return !o && !a ? {} : { fontSize: kt(o) ? void 0 : na(o), "--color": a }; }); return (o, a) => (C(), D("i", ar({ class: p(r).b(), style: p(n) }, o.$attrs), [ re(o.$slots, "default") ], 16)); } }); var $y = /* @__PURE__ */ Se(Py, [["__file", "icon.vue"]]); const rt = lt($y), Wa = Symbol("formContextKey"), ro = Symbol("formItemContextKey"), nn = (e, t = {}) => { const r = N(void 0), n = t.prop ? r : Jl("size"), o = t.global ? r : gy(), a = t.form ? { size: void 0 } : ve(Wa, void 0), i = t.formItem ? { size: void 0 } : ve(ro, void 0); return w(() => n.value || p(e) || (i == null ? void 0 : i.size) || (a == null ? void 0 : a.size) || o.value || ""); }, So = (e) => { const t = Jl("disabled"), r = ve(Wa, void 0); return w(() => t.value || p(e) || (r == null ? void 0 : r.disabled) || !1); }, In = () => { const e = ve(Wa, void 0), t = ve(ro, void 0); return { form: e, formItem: t }; }, qa = (e, { formItemContext: t, disableIdGeneration: r, disableIdManagement: n }) => { r || (r = N(!1)), n || (n = N(!1)); const o = N(); let a; const i = w(() => { var s; return !!(!(e.label || e.ariaLabel) && t && t.inputIds && ((s = t.inputIds) == null ? void 0 : s.length) <= 1); }); return ze(() => { a = ne([pt(e, "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: !0 }); }), qf(() => { a && a(), t != null && t.removeInputId && o.value && t.removeInputId(o.value); }), { isLabeledByFormItem: i, inputId: o }; }; let ft; const Fy = ` height:0 !important; visibility:hidden !important; ${_c() ? "" : "overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `, 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(e) { const t = window.getComputedStyle(e), 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(e, t = 1, r) { var n; ft || (ft = document.createElement("textarea"), document.body.appendChild(ft)); const { paddingSize: o, borderSize: a, boxSizing: i, contextStyle: s } = Vy(e); ft.setAttribute("style", `${s};${Fy}`), ft.value = e.value || e.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; } const 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: !1 }, 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: !0 }, inputStyle: { type: ie([Object, Array, String]), default: () => qm({}) }, autofocus: Boolean, rows: { type: Number, default: 2 }, ...Cr(["ariaLabel"]) }), Ny = { [Pe]: (e) => Qe(e), input: (e) => Qe(e), change: (e) => Qe(e), focus: (e) => e instanceof FocusEvent, blur: (e) => e instanceof FocusEvent, clear: () => !0, mouseleave: (e) => e instanceof MouseEvent, mouseenter: (e) => e instanceof MouseEvent, keydown: (e) => e instanceof Event, compositionstart: (e) => e instanceof CompositionEvent, compositionupdate: (e) => e instanceof CompositionEvent, compositionend: (e) => e instanceof CompositionEvent }, ky = Z({ name: "ElInput", inheritAttrs: !1 }), Ly = /* @__PURE__ */ Z({ ...ky, props: Ry, emits: Ny, setup(e, { expose: t, emit: r }) { const n = e, o = Kf(), a = yl(), i = w(() => { 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 = w(() => [ n.type === "textarea" ? g.b() : m.b(), m.m(h.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 = w(() => [ m.e("wrapper"), m.is("focus", $.value) ]), l = Gm({ excludeKeys: w(() => Object.keys(i.value)) }), { form: f, formItem: c } = In(), { inputId: d } = qa(n, { formItemContext: c }), h = nn(), v = So(), m = be("input"), g = be("textarea"), y = zr(), b = zr(), O = N(!1), I = N(!1), S = N(), x = zr(n.inputStyle), T = w(() => 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 = w(() => { var F; return (F = f == null ? void 0 : f.statusIcon) != null ? F : !1; }), z = w(() => (c == null ? void 0 : c.validateState) || ""), X = w(() => z.value && ql[z.value]), _ = w(() => I.value ? jm : Nm), A = w(() => [ o.style ]), k = w(() => [ n.inputStyle, x.value, { resize: n.resize } ]), Q = w(() => zt(n.modelValue) ? "" : String(n.modelValue)), K = w(() => n.clearable && !v.value && !n.readonly && !!Q.value && ($.value || O.value)), P = w(() => n.showPassword && !v.value && !n.readonly && !!Q.value && (!!Q.value || $.value)), U = w(() => n.showWordLimit && !!n.maxlength && (n.type === "text" || n.type === "textarea") && !v.value && !n.readonly && !n.showPassword), M = w(() => Q.value.length), j = w(() => !!U.value && M.value > Number(n.maxlength)), Y = w(() => !!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 }, Oe(() => { b.value.offsetHeight, x.value = Kt; }); } else x.value = { minHeight: ws(b.value).minHeight }; }, Ae = ((F) => { let de = !1; return () => { var tt; if (de || !n.autosize) return; ((tt = b.value) == null ? void 0 : tt.offsetParent) === null || (F(), de = !0); }; })(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 Oe(), _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 Oe(), (F = T.value) == null || F.focus(); }, Tr = () => { var F; return (F = T.value) == null ? void 0 : F.blur(); }, ut = (F) => { O.value = !1, r("mouseleave", F); }, Ht = (F) => { O.value = !0, 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 ne(() => n.modelValue, () => { var F; Oe(() => W()), n.validateEvent && ((F = c == null ? void 0 : c.validate) == null || F.call(c, "change").catch((de) => Ce(de))); }), ne(Q, () => _e()), ne(() => n.type, async () => { await Oe(), _e(), W(); }), ze(() => { !n.formatter && n.parser && Ce("ElInput", "If you set the parser, you also need to set the formatter."), _e(), Oe(W); }), t({ input: y, textarea: b, ref: T, textareaStyle: k, autosize: pt(n, "autosize"), isComposing: Te, focus: Pt, blur: Tr, select: Pr, clear: gt, resizeTextarea: W }), (F, de) => (C(), D("div", ar(p(i), { class: [ p(s), { [p(m).bm("group", "append")]: F.$slots.append, [p(m).bm("group", "prepend")]: F.$slots.prepend } ], style: p(A), role: F.containerRole, onMouseenter: Ht, onMouseleave: ut }), [ G(" input "), F.type !== "textarea" ? (C(), D(He, { key: 0 }, [ G(" prepend slot "), F.$slots.prepend ? (C(), D("div", { key: 0, class: L(p(m).be("group", "prepend")) }, [ re(F.$slots, "prepend") ], 2)) : G("v-if", !0), q("div", { ref_key: "wrapperRef", ref: V, class: L(p(u)) }, [ G(" prefix slot "), F.$slots.prefix || F.prefixIcon ? (C(), D("span", { key: 0, class: L(p(m).e("prefix")) }, [ q("span", { class: L(p(m).e("prefix-inner")) }, [ re(F.$slots, "prefix"), F.prefixIcon ? (C(), te(p(rt), { key: 0, class: L(p(m).e("icon")) }, { default: ee(() => [ (C(), te(vt(F.prefixIcon))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0) ], 2) ], 2)) : G("v-if", !0), q("input", ar({ id: p(d), ref_key: "input", ref: y, class: p(m).e("inner") }, p(l), { minlength: F.minlength, maxlength: F.maxlength, type: F.showPassword ? I.value ? "text" : "password" : F.type, disabled: p(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: p(Ue), onCompositionupdate: p(Ke), onCompositionend: p(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"]), G(" suffix slot "), p(Y) ? (C(), D("span", { key: 1, class: L(p(m).e("suffix")) }, [ q("span", { class: L(p(m).e("suffix-inner")) }, [ !p(K) || !p(P) || !p(U) ? (C(), D(He, { key: 0 }, [ re(F.$slots, "suffix"), F.suffixIcon ? (C(), te(p(rt), { key: 0, class: L(p(m).e("icon")) }, { default: ee(() => [ (C(), te(vt(F.suffixIcon))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0) ], 64)) : G("v-if", !0), p(K) ? (C(), te(p(rt), { key: 1, class: L([p(m).e("icon"), p(m).e("clear")]), onMousedown: Ne(p(yn), ["prevent"]), onClick: gt }, { default: ee(() => [ pe(p(Ma)) ]), _: 1 }, 8, ["class", "onMousedown"])) : G("v-if", !0), p(P) ? (C(), te(p(rt), { key: 2, class: L([p(m).e("icon"), p(m).e("password")]), onClick: dr }, { default: ee(() => [ (C(), te(vt(p(_)))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0), p(U) ? (C(), D("span", { key: 3, class: L(p(m).e("count")) }, [ q("span", { class: L(p(m).e("count-inner")) }, ke(p(M)) + " / " + ke(F.maxlength), 3) ], 2)) : G("v-if", !0), p(z) && p(X) && p(R) ? (C(), te(p(rt), { key: 4, class: L([ p(m).e("icon"), p(m).e("validateIcon"), p(m).is("loading", p(z) === "validating") ]) }, { default: ee(() => [ (C(), te(vt(p(X)))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0) ], 2) ], 2)) : G("v-if", !0) ], 2), G(" append slot "), F.$slots.append ? (C(), D("div", { key: 1, class: L(p(m).be("group", "append")) }, [ re(F.$slots, "append") ], 2)) : G("v-if", !0) ], 64)) : (C(), D(He, { key: 1 }, [ G(" textarea "), q("textarea", ar({ id: p(d), ref_key: "textarea", ref: b, class: [p(g).e("inner"), p(m).is("focus", p($))] }, p(l), { minlength: F.minlength, maxlength: F.maxlength, tabindex: F.tabindex, disabled: p(v), readonly: F.readonly, autocomplete: F.autocomplete, style: p(k), "aria-label": F.ariaLabel, placeholder: F.placeholder, form: F.form, autofocus: F.autofocus, rows: F.rows, onCompositionstart: p(Ue), onCompositionupdate: p(Ke), onCompositionend: p(Ze), onInput: ue, onFocus: p(H), onBlur: p(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"]), p(U) ? (C(), D("span", { key: 0, style: Ve(S.value), class: L(p(m).e("count")) }, ke(p(M)) + " / " + ke(F.maxlength), 7)) : G("v-if", !0) ], 64)) ], 16, ["role"])); } }); var zy = /* @__PURE__ */ Se(Ly, [["__file", "input.vue"]]); const By = lt(zy), Fr = 4, 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" } }, Uy = ({ move: e, size: t, bar: r }) => ({ [r.size]: t, transform: `translate${r.axis}(${e}%)` }), Ka = Symbol("scrollbarContextKey"), jy = we({ vertical: Boolean, size: String, move: Number, ratio: { type: Number, required: !0 }, always: Boolean }), Hy = "Thumb", Wy = /* @__PURE__ */ Z({ __name: "thumb", props: jy, setup(e) { const t = e, r = ve(Ka), n = be("scrollbar"); r || Fa(Hy, "can not inject scrollbar context"); const o = N(), a = N(), i = N({}), s = N(!1); let u = !1, l = !1, f = Fe ? document.onselectstart : null; const c = w(() => Dy[t.vertical ? "vertical" : "horizontal"]), d = w(() => Uy({ size: t.size, move: t.move, bar: c.value })), h = w(() => 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 * h.value / o.value[c.value.offset]; r.wrapElement[c.value.scroll] = $ * r.wrapElement[c.value.scrollSize] / 100; }, g = (x) => { x.stopImmediatePropagation(), u = !0, document.addEventListener("mousemove", y), document.addEventListener("mouseup", b), f = document.onselectstart, document.onselectstart = () => !1; }, y = (x) => { if (!o.value || !a.value || u === !1) 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 * h.value / o.value[c.value.offset]; r.wrapElement[c.value.scroll] = H * r.wrapElement[c.value.scrollSize] / 100; }, b = () => { u = !1, i.value[c.value.axis] = 0, document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", b), S(), l && (s.value = !1); }, O = () => { l = !1, s.value = !!t.size; }, I = () => { l = !0, s.value = u; }; Ct(() => { S(), document.removeEventListener("mouseup", b); }); const S = () => { document.onselectstart !== f && (document.onselectstart = f); }; return je(pt(r, "scrollbarElement"), "mousemove", O), je(pt(r, "scrollbarElement"), "mouseleave", I), (x, T) => (C(), te(lo, { name: p(n).b("fade"), persisted: "" }, { default: ee(() => [ We(q("div", { ref_key: "instance", ref: o, class: L([p(n).e("bar"), p(n).is(p(c).key)]), onMousedown: m }, [ q("div", { ref_key: "thumb", ref: a, class: L(p(n).e("thumb")), style: Ve(p(d)), onMousedown: v }, null, 38) ], 34), [ [Bt, x.always || s.value] ]) ]), _: 1 }, 8, ["name"])); } }); var Ss = /* @__PURE__ */ Se(Wy, [["__file", "thumb.vue"]]); const qy = we({ always: { type: Boolean, default: !0 }, minSize: { type: Number, required: !0 } }), Ky = /* @__PURE__ */ Z({ __name: "bar", props: qy, setup(e, { expose: t }) { const r = e, n = ve(Ka), o = N(0), a = N(0), i = N(""), s = N(""), u = N(1), l = N(1); return t({ handleScroll: (d) => { if (d) { const h = d.offsetHeight - Fr, v = d.offsetWidth - Fr; a.value = d.scrollTop * 100 / h * u.value, o.value = d.scrollLeft * 100 / v * l.value; } }, update: () => { const d = n == null ? void 0 : n.wrapElement; if (!d) return; const h = d.offsetHeight - Fr, v = d.offsetWidth - Fr, m = h ** 2 / d.scrollHeight, g = v ** 2 / d.scrollWidth, y = Math.max(m, r.minSize), b = Math.max(g, r.minSize); u.value = m / (h - m) / (y / (h - y)), l.value = g / (v - g) / (b / (v - b)), s.value = y + Fr < h ? `${y}px` : "", i.value = b + Fr < v ? `${b}px` : ""; } }), (d, h) => (C(), D(He, null, [ pe(Ss, { move: o.value, ratio: l.value, size: i.value, always: d.always }, null, 8, ["move", "ratio", "size", "always"]), pe(Ss, { move: a.value, ratio: u.value, size: s.value, vertical: "", always: d.always }, null, 8, ["move", "ratio", "size", "always"]) ], 64)); } }); var Zy = /* @__PURE__ */ Se(Ky, [["__file", "bar.vue"]]); const Gy = we({ height: { type: [String, Number], default: "" }, maxHeight: { type: [String, Number], default: "" }, native: { type: Boolean, default: !1 }, 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"]) }), Jy = { scroll: ({ scrollTop: e, scrollLeft: t }) => [e, t].every(ge) }, ia = "ElScrollbar", Yy = Z({ name: ia }), Xy = /* @__PURE__ */ Z({ ...Yy, props: Gy, emits: Jy, setup(e, { expose: t, emit: r }) { const n = e, o = be("scrollbar"); let a, i, s = 0, u = 0; const l = N(), f = N(), c = N(), d = N(), h = w(() => { const S = {}; return n.height && (S.height = na(n.height)), n.maxHeight && (S.maxHeight = na(n.maxHeight)), [n.wrapStyle, S]; }), v = w(() => [ n.wrapClass, o.e("wrap"), { [o.em("wrap", "hidden-default")]: !n.native } ]), m = w(() => [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 ne(() => n.noresize, (S) => { S ? (a == null || a(), i == null || i()) : ({ stop: a } = Mt(c, I), i = je("resize", I)); }, { immediate: !0 }), ne(() => [n.maxHeight, n.height], () => { n.native || Oe(() => { var S; I(), f.value && ((S = d.value) == null || S.handleScroll(f.value)); }); }), at(Ka, mt({ scrollbarElement: l, wrapElement: f })), Zf(() => { f.value && (f.value.scrollTop = s, f.value.scrollLeft = u); }), ze(() => { n.native || Oe(() => { I(); }); }), gl(() => I()), t({ wrapRef: f, update: I, scrollTo: y, setScrollTop: b, setScrollLeft: O, handleScroll: g }), (S, x) => (C(), D("div", { ref_key: "scrollbarRef", ref: l, class: L(p(o).b()) }, [ q("div", { ref_key: "wrapRef", ref: f, class: L(p(v)), style: Ve(p(h)), tabindex: S.tabindex, onScroll: g }, [ (C(), te(vt(S.tag), { id: S.id, ref_key: "resizeRef", ref: c, class: L(p(m)), style: Ve(S.viewStyle), role: S.role, "aria-label": S.ariaLabel, "aria-orientation": S.ariaOrientation }, { default: ee(() => [ re(S.$slots, "default") ]), _: 3 }, 8, ["id", "class", "style", "role", "aria-label", "aria-orientation"])) ], 46, ["tabindex"]), S.native ? G("v-if", !0) : (C(), te(Zy, { key: 0, ref_key: "barRef", ref: d, always: S.always, "min-size": S.minSize }, null, 8, ["always", "min-size"])) ], 2)); } }); var Qy = /* @__PURE__ */ Se(Xy, [["__file", "scrollbar.vue"]]); const eg = lt(Qy), Za = Symbol("popper"), bu = Symbol("popperContent"), tg = [ "dialog", "grid", "group", "listbox", "menu", "navigation", "tooltip", "tree" ], wu = we({ role: { type: String, values: tg, default: "tooltip" } }), rg = Z({ name: "ElPopper", inheritAttrs: !1 }), ng = /* @__PURE__ */ Z({ ...rg, props: wu, setup(e, { expose: t }) { const r = e, n = N(), o = N(), a = N(), i = N(), s = w(() => r.role), u = { triggerRef: n, popperInstanceRef: o, contentRef: a, referenceRef: i, role: s }; return t(u), at(Za, u), (l, f) => re(l.$slots, "default"); } }); var og = /* @__PURE__ */ Se(ng, [["__file", "popper.vue"]]); const Su = we({ arrowOffset: { type: Number, default: 5 } }), ag = Z({ name: "ElPopperArrow", inheritAttrs: !1 }), ig = /* @__PURE__ */ Z({ ...ag, props: Su, setup(e, { expose: t }) { const r = e, n = be("popper"), { arrowOffset: o, arrowRef: a, arrowStyle: i } = ve(bu, void 0); return ne(() => r.arrowOffset, (s) => { o.value = s; }), Ct(() => { a.value = void 0; }), t({ arrowRef: a }), (s, u) => (C(), D("span", { ref_key: "arrowRef", ref: a, class: L(p(n).e("arrow")), style: Ve(p(i)), "data-popper-arrow": "" }, null, 6)); } }); var sg = /* @__PURE__ */ Se(ig, [["__file", "arrow.vue"]]); const $o = "ElOnlyChild", lg = Z({ name: $o, setup(e, { slots: t, attrs: r }) { var n; const o = ve(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 ? We(Gf(u, r), [[a]]) : (Ce($o, "no valid child node found"), null); }; } }); function Eu(e) { if (!e) return null; const t = e; for (const r of t) { if (Ge(r)) switch (r.type) { case Jf: continue; case bl: case "svg": return Es(r); case He: return Eu(r.children); default: return r; } return Es(r); } return null; } function Es(e) { const t = be("only-child"); return pe("span", { class: t.e("content") }, [e]); } const 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 }), ug = Z({ name: "ElPopperTrigger", inheritAttrs: !1 }), fg = /* @__PURE__ */ Z({ ...ug, props: Ou, setup(e, { expose: t }) { const r = e, { role: n, triggerRef: o } = ve(Za, void 0); my(o); const a = w(() => s.value ? r.id : void 0), i = w(() => { if (n && n.value === "tooltip") return r.open && r.id ? r.id : void 0; }), s = w(() => { if (n && n.value !== "tooltip") return n.value; }), u = w(() => s.value ? `${r.open}` : void 0); let l; const f = [ "onMouseenter", "onMouseleave", "onClick", "onKeydown", "onFocus", "onBlur", "onContextmenu" ]; return ze(() => { ne(() => r.virtualRef, (c) => { c && (o.value = Nt(c)); }, { immediate: !0 }), ne(o, (c, d) => { l == null || l(), l = void 0, yr(c) && (f.forEach((h) => { var v; const m = r[h]; m && (c.addEventListener(h.slice(2).toLowerCase(), m), (v = d == null ? void 0 : d.removeEventListener) == null || v.call(d, h.slice(2).toLowerCase(), m)); }), l = ne([a, i, s, u], (h) => { [ "aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded" ].forEach((v, m) => { zt(h[m]) ? c.removeAttribute(v) : c.setAttribute(v, h[m]); }); }, { immediate: !0 })), yr(d) && [ "aria-controls", "aria-describedby", "aria-haspopup", "aria-expanded" ].forEach((h) => d.removeAttribute(h)); }, { immediate: !0 }); }), Ct(() => { if (l == null || l(), l = void 0, o.value && yr(o.value)) { const c = o.value; f.forEach((d) => { const h = r[d]; h && c.removeEventListener(d.slice(2).toLowerCase(), h); }), o.value = void 0; } }), t({ triggerRef: o }), (c, d) => c.virtualTriggering ? G("v-if", !0) : (C(), te(p(lg), ar({ key: 0 }, c.$attrs, { "aria-controls": p(a), "aria-describedby": p(i), "aria-expanded": p(u), "aria-haspopup": p(s) }), { default: ee(() => [ re(c.$slots, "default") ]), _: 3 }, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup"])); } }); var cg = /* @__PURE__ */ Se(fg, [["__file", "trigger.vue"]]); const Fo = "focus-trap.focus-after-trapped", Mo = "focus-trap.focus-after-released", dg = "focus-trap.focusout-prevented", Os = { cancelable: !0, bubbles: !1 }, pg = { cancelable: !0, bubbles: !1 }, As = "focusAfterTrapped", _s = "focusAfterReleased", vg = Symbol("elFocusTrap"), Ga = N(), Eo = N(0), Ja = N(0); let Rn = 0; const Au = (e) => { const t = [], r = document.createTreeWalker(e, 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; }, Is = (e, t) => { for (const r of e) if (!mg(r, t)) return r; }, mg = (e, t) => { if (process.env.NODE_ENV === "test") return !1; if (getComputedStyle(e).visibility === "hidden") return !0; for (; e; ) { if (t && e === t) return !1; if (getComputedStyle(e).display === "none") return !0; e = e.parentElement; } return !1; }, hg = (e) => { const t = Au(e), r = Is(t, e), n = Is(t.reverse(), e); return [r, n]; }, yg = (e) => e instanceof HTMLInputElement && "select" in e, Yt = (e, t) => { if (e && e.focus) { const r = document.activeElement; e.focus({ preventScroll: !0 }), Ja.value = window.performance.now(), e !== r && yg(e) && t && e.select(); } }; function Cs(e, t) { const r = [...e], n = e.indexOf(t); return n !== -1 && r.splice(n, 1), r; } const gg = () => { let e = []; return { push: (n) => { const o = e[0]; o && n !== o && o.pause(), e = Cs(e, n), e.unshift(n); }, remove: (n) => { var o, a; e = Cs(e, n), (a = (o = e[0]) == null ? void 0 : o.resume) == null || a.call(o); } }; }, bg = (e, t = !1) => { const r = document.activeElement; for (const n of e) if (Yt(n, t), document.activeElement !== r) return; }, xs = gg(), wg = () => Eo.value > Ja.value, Nn = () => { Ga.value = "pointer", Eo.value = window.performance.now(); }, Ts = () => { Ga.value = "keyboard", Eo.value = window.performance.now(); }, Sg = () => (ze(() => { Rn === 0 && (document.addEventListener("mousedown", Nn), document.addEventListener("touchstart", Nn), document.addEventListener("keydown", Ts)), Rn++; }), Ct(() => { Rn--, Rn <= 0 && (document.removeEventListener("mousedown", Nn), document.removeEventListener("touchstart", Nn), document.removeEventListener("keydown", Ts)); }), { focusReason: Ga, lastUserFocusTimestamp: Eo, lastAutomatedFocusTimestamp: Ja }), kn = (e) => new CustomEvent(dg, { ...pg, detail: e }), Eg = Z({ name: "ElFocusTrap", inheritAttrs: !1, props: { loop: Boolean, trapped: Boolean, focusTrapEl: Object, focusStartEl: { type: [Object, String], default: "first" } }, emits: [ As, _s, "focusin", "focusout", "focusout-prevented", "release-requested" ], setup(e, { emit: t }) { const r = N(); let n, o; const { focusReason: a } = Sg(); fy((v) => { e.trapped && !i.paused && t("release-requested", v); }); const i = { paused: !1, pause() { this.paused = !0; }, resume() { this.paused = !1; } }, s = (v) => { if (!e.loop && !e.trapped || i.paused) return; const { key: m, altKey: g, ctrlKey: y, metaKey: b, currentTarget: O, shiftKey: I } = v, { loop: S } = e, 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($, !0)); } else if (I && [$, V].includes(T)) { const R = kn({ focusReason: a.value }); t("focusout-prevented", R), R.defaultPrevented || (v.preventDefault(), S && Yt(H, !0)); } } else if (T === V) { const R = kn({ focusReason: a.value }); t("focusout-prevented", R), R.defaultPrevented || v.preventDefault(); } } }; at(vg, { focusTrapRef: r, onKeydown: s }), ne(() => e.focusTrapEl, (v) => { v && (r.value = v); }, { immediate: !0 }), ne([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 = p(r); if (!m) return; const g = v.target, y = v.relatedTarget, b = g && m.contains(g); e.trapped || y && m.contains(y) || (n = y), b && t("focusin", v), !i.paused && e.trapped && (b ? o = g : Yt(o, !0)); }, c = (v) => { const m = p(r); if (!(i.paused || !m)) if (e.trapped) { const g = v.relatedTarget; !zt(g) && !m.contains(g) && setTimeout(() => { if (!i.paused && e.trapped) { const y = kn({ focusReason: a.value }); t("focusout-prevented", y), y.defaultPrevented || Yt(o, !0); } }, 0); } else { const g = v.target; g && m.contains(g) || t("focusout", v); } }; async function d() { await Oe(); const v = p(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 || Oe(() => { let b = e.focusStartEl; Qe(b) || (Yt(b), document.activeElement !== b && (b = "first")), b === "first" && bg(Au(v), !0), (document.activeElement === m || b === "container") && Yt(v); }); } } } function h() { const v = p(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 ze(() => { e.trapped && d(), ne(() => e.trapped, (v) => { v ? d() : h(); }); }), Ct(() => { e.trapped && h(), 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(e, t, r, n, o, a) { return re(e.$slots, "default", { handleKeydown: e.onKeydown }); } var Ag = /* @__PURE__ */ Se(Eg, [["render", Og], ["__file", "focus-trap.vue"]]); const _g = ["fixed", "absolute"], Ig = we({ boundariesPadding: { type: Number, default: 0 }, fallbackPlacements: { type: ie(Array), default: void 0 }, gpuAcceleration: { type: Boolean, default: !0 }, offset: { type: Number, default: 12 }, placement: { type: String, values: rn, default: "bottom" }, popperOptions: { type: ie(Object), default: () => ({}) }, strategy: { type: String, values: _g, default: "absolute" } }), _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: !0 }, pure: Boolean, focusOnShow: { type: Boolean, default: !1 }, trapping: { type: Boolean, default: !1 }, popperClass: { type: ie([String, Array, Object]) }, popperStyle: { type: ie([String, Array, Object]) }, referenceEl: { type: ie(Object) }, triggerTargetEl: { type: ie(Object) }, stopPopperMouseEvent: { type: Boolean, default: !0 }, virtualTriggering: Boolean, zIndex: Number, ...Cr(["ariaLabel"]) }), Cg = { mouseenter: (e) => e instanceof MouseEvent, mouseleave: (e) => e instanceof MouseEvent, focus: () => !0, blur: () => !0, close: () => !0 }, xg = (e, t = []) => { const { placement: r, strategy: n, popperOptions: o } = e, a = { placement: r, strategy: n, ...o, modifiers: [...Pg(e), ...t] }; return $g(a, o == null ? void 0 : o.modifiers), a; }, Tg = (e) => { if (Fe) return Nt(e); }; function Pg(e) { const { offset: t, gpuAcceleration: r, fallbackPlacements: n } = e; return [ { name: "offset", options: { offset: [0, t ?? 12] } }, { name: "preventOverflow", options: { padding: { top: 2, bottom: 2, left: 5, right: 5 } } }, { name: "flip", options: { padding: 5, fallbackPlacements: n } }, { name: "computeStyles", options: { gpuAcceleration: r } } ]; } function $g(e, t) { t && (e.modifiers = [...e.modifiers, ...t ?? []]); } const Fg = 0, Mg = (e) => { const { popperInstanceRef: t, contentRef: r, triggerRef: n, role: o } = ve(Za, void 0), a = N(), i = N(), s = w(() => ({ name: "eventListeners", enabled: !!e.visible })), u = w(() => { var y; const b = p(a), O = (y = p(i)) != null ? y : Fg; return { name: "arrow", enabled: !bm(b), options: { element: b, padding: O } }; }), l = w(() => ({ onFirstUpdate: () => { v(); }, ...xg(e, [ p(u), p(s) ]) })), f = w(() => Tg(e.referenceEl) || p(n)), { attributes: c, state: d, styles: h, update: v, forceUpdate: m, instanceRef: g } = sy(f, r, l); return ne(g, (y) => t.value = y), ze(() => { ne(() => { var y; return (y = p(f)) == null ? void 0 : y.getBoundingClientRect(); }, () => { v(); }); }), { attributes: c, arrowRef: a, contentRef: r, instanceRef: g, state: d, styles: h, role: o, forceUpdate: m, update: v }; }, Vg = (e, { attributes: t, styles: r, role: n }) => { const { nextZIndex: o } = pu(), a = be("popper"), i = w(() => p(t).popper), s = N(ge(e.zIndex) ? e.zIndex : o()), u = w(() => [ a.b(), a.is("pure", e.pure), a.is(e.effect), e.popperClass ]), l = w(() => [ { zIndex: p(s) }, p(r).popper, e.popperStyle || {} ]), f = w(() => n.value === "dialog" ? "false" : void 0), c = w(() => p(r).arrow || {}); return { ariaModal: f, arrowStyle: c, contentAttrs: i, contentClass: u, contentStyle: l, contentZIndex: s, updateZIndex: () => { s.value = ge(e.zIndex) ? e.zIndex : o(); } }; }, Rg = (e, t) => { const r = N(!1), n = N(); 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) => { e.visible && !r.value && (l.target && (n.value = l.target), r.value = !0); }, onFocusoutPrevented: (l) => { e.trapping || (l.detail.focusReason === "pointer" && l.preventDefault(), r.value = !1); }, onReleaseRequested: () => { r.value = !1, t("close"); } }; }, Ng = Z({ name: "ElPopperContent" }), kg = /* @__PURE__ */ Z({ ...Ng, props: _u, emits: Cg, setup(e, { expose: t, emit: r }) { const n = e, { focusStartRef: o, trapped: a, onFocusAfterReleased: i, onFocusAfterTrapped: s, onFocusInTrap: u, onFocusoutPrevented: l, onReleaseRequested: f } = Rg(n, r), { attributes: c, arrowRef: d, contentRef: h, 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 = ve(ro, void 0), $ = N(); at(bu, { arrowStyle: O, arrowRef: d, arrowOffset: $ }), V && at(ro, { ...V, addInputId: yn, removeInputId: yn }); let H; const J = (z = !0) => { y(), z && T(); }, R = () => { J(!1), n.visible && n.focusOnShow ? a.value = !0 : n.visible === !1 && (a.value = !1); }; return ze(() => { ne(() => n.triggerTargetEl, (z, X) => { H == null || H(), H = void 0; const _ = p(z || h.value), A = p(X || h.value); yr(_) && (H = ne([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: !0 })), A !== _ && yr(A) && ["role", "aria-label", "aria-modal", "id"].forEach((k) => { A.removeAttribute(k); }); }, { immediate: !0 }), ne(() => n.visible, R, { immediate: !0 }); }), Ct(() => { H == null || H(), H = void 0; }), t({ popperContentRef: h, popperInstanceRef: m, updatePopper: J, contentStyle: x }), (z, X) => (C(), D("div", ar({ ref_key: "contentRef", ref: h }, p(I), { style: p(x), class: p(S), tabindex: "-1", onMouseenter: (_) => z.$emit("mouseenter", _), onMouseleave: (_) => z.$emit("mouseleave", _) }), [ pe(p(Ag), { trapped: p(a), "trap-on-focus-in": !0, "focus-trap-el": p(h), "focus-start-el": p(o), onFocusAfterTrapped: p(s), onFocusAfterReleased: p(i), onFocusin: p(u), onFocusoutPrevented: p(l), onReleaseRequested: p(f) }, { default: ee(() => [ re(z.$slots, "default") ]), _: 3 }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"]) ], 16, ["onMouseenter", "onMouseleave"])); } }); var Lg = /* @__PURE__ */ Se(kg, [["__file", "content.vue"]]); const zg = lt(og), Ya = Symbol("elTooltip"), 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: !0 }, disabled: Boolean, ...Cr(["ariaLabel"]) }), Iu = we({ ...Ou, disabled: Boolean, trigger: { type: ie([String, Array]), default: "hover" }, triggerKeys: { type: ie(Array), default: () => [Hr.enter, Hr.space] } }), { useModelToggleProps: Bg, useModelToggleEmits: Dg, useModelToggle: Ug } = oh("visible"), jg = we({ ...wu, ...Bg, ...Xa, ...Iu, ...Su, showArrow: { type: Boolean, default: !0 } }), Hg = [ ...Dg, "before-show", "before-hide", "show", "hide", "open", "close" ], Wg = (e, t) => Ot(e) ? e.includes(t) : e === t, Mr = (e, t, r) => (n) => { Wg(p(e), t) && r(n); }, qg = Z({ name: "ElTooltipTrigger" }), Kg = /* @__PURE__ */ Z({ ...qg, props: Iu, setup(e, { expose: t }) { const r = e, n = be("tooltip"), { controlled: o, id: a, open: i, onOpen: s, onClose: u, onToggle: l } = ve(Ya, void 0), f = N(null), c = () => { if (p(o) || r.disabled) return !0; }, d = pt(r, "trigger"), h = 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) => (C(), te(p(cg), { id: p(a), "virtual-ref": I.virtualRef, open: p(i), "virtual-triggering": I.virtualTriggering, class: L(p(n).e("trigger")), onBlur: p(y), onClick: p(m), onContextmenu: p(b), onFocus: p(g), onMouseenter: p(h), onMouseleave: p(v), onKeydown: p(O) }, { default: ee(() => [ re(I.$slots, "default") ]), _: 3 }, 8, ["id", "virtual-ref", "open", "virtual-triggering", "class", "onBlur", "onClick", "onContextmenu", "onFocus", "onMouseenter", "onMouseleave", "onKeydown"])); } }); var Zg = /* @__PURE__ */ Se(Kg, [["__file", "trigger.vue"]]); const Gg = we({ to: { type: ie([String, Object]), required: !0 }, disabled: Boolean }), Jg = /* @__PURE__ */ Z({ __name: "teleport", props: Gg, setup(e) { return (t, r) => t.disabled ? re(t.$slots, "default", { key: 0 }) : (C(), te(Yf, { key: 1, to: t.to }, [ re(t.$slots, "default") ], 8, ["to"])); } }); var Yg = /* @__PURE__ */ Se(Jg, [["__file", "teleport.vue"]]); const Xg = lt(Yg), Qg = Z({ name: "ElTooltipContent", inheritAttrs: !1 }), e0 = /* @__PURE__ */ Z({ ...Qg, props: Xa, setup(e, { expose: t }) { const r = e, { selector: n } = uu(), o = be("tooltip"), a = N(null); let i; const { controlled: s, id: u, open: l, trigger: f, onClose: c, onOpen: d, onShow: h, onHide: v, onBeforeShow: m, onBeforeHide: g } = ve(Ya, void 0), y = w(() => r.transition || `${o.namespace.value}-fade-in-linear`), b = w(() => process.env.NODE_ENV === "test" ? !0 : r.persistent); Ct(() => { i == null || i(); }); const O = w(() => p(b) ? !0 : p(l)), I = w(() => r.disabled ? !1 : p(l)), S = w(() => r.appendTo || n.value), x = w(() => { var A; return (A = r.style) != null ? A : {}; }), T = N(!0), V = () => { v(), T.value = !0; }, $ = () => { if (p(s)) return !0; }, H = Ft($, () => { r.enterable && p(f) === "hover" && d(); }), J = Ft($, () => { p(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 = () => { h(), i = dc(w(() => { var A; return (A = a.value) == null ? void 0 : A.popperContentRef; }), () => { if (p(s)) return; p(f) !== "hover" && c(); }); }, _ = () => { r.virtualTriggering || c(); }; return ne(() => p(l), (A) => { A ? T.value = !1 : i == null || i(); }, { flush: "post" }), ne(() => r.content, () => { var A, k; (k = (A = a.value) == null ? void 0 : A.updatePopper) == null || k.call(A); }), t({ contentRef: a }), (A, k) => (C(), te(p(Xg), { disabled: !A.teleported, to: p(S) }, { default: ee(() => [ pe(lo, { name: p(y), onAfterLeave: V, onBeforeEnter: R, onAfterEnter: X, onBeforeLeave: z }, { default: ee(() => [ p(O) ? We((C(), te(p(Lg), ar({ key: 0, id: p(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, p(x)], "reference-el": A.referenceEl, "trigger-target-el": A.triggerTargetEl, visible: p(I), "z-index": A.zIndex, onMouseenter: p(H), onMouseleave: p(J), onBlur: _, onClose: p(c) }), { default: ee(() => [ re(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"])), [ [Bt, p(I)] ]) : G("v-if", !0) ]), _: 3 }, 8, ["name"]) ]), _: 3 }, 8, ["disabled", "to"])); } }); var t0 = /* @__PURE__ */ Se(e0, [["__file", "content.vue"]]); const r0 = Z({ name: "ElTooltip" }), n0 = /* @__PURE__ */ Z({ ...r0, props: jg, emits: Hg, setup(e, { expose: t, emit: r }) { const n = e; dy(); const o = wo(), a = N(), i = N(), s = () => { var y; const b = p(a); b && ((y = b.popperInstanceRef) == null || y.update()); }, u = N(!1), l = N(), { show: f, hide: c, hasUpdateHandler: d } = Ug({ indicator: u, toggleReason: l }), { onOpen: h, onClose: v } = vy({ showAfter: pt(n, "showAfter"), hideAfter: pt(n, "hideAfter"), autoClose: pt(n, "autoClose"), open: f, close: c }), m = w(() => Bl(n.visible) && !d.value); at(Ya, { controlled: m, id: o, open: Xf(u), trigger: pt(n, "trigger"), onOpen: (y) => { h(y); }, onClose: (y) => { v(y); }, onToggle: (y) => { p(u) ? v(y) : h(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 }), ne(() => n.disabled, (y) => { y && u.value && (u.value = !1); }); 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 Qf(() => u.value && c()), t({ popperRef: a, contentRef: i, isFocusInsideContent: g, updatePopper: s, onOpen: h, onClose: v, hide: c }), (y, b) => (C(), te(p(zg), { ref_key: "popperRef", ref: a, role: y.role }, { default: ee(() => [ pe(Zg, { disabled: y.disabled, trigger: y.trigger, "trigger-keys": y.triggerKeys, "virtual-ref": y.virtualRef, "virtual-triggering": y.virtualTriggering }, { default: ee(() => [ y.$slots.default ? re(y.$slots, "default", { key: 0 }) : G("v-if", !0) ]), _: 3 }, 8, ["disabled", "trigger", "trigger-keys", "virtual-ref", "virtual-triggering"]), pe(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: ee(() => [ re(y.$slots, "content", {}, () => [ y.rawContent ? (C(), D("span", { key: 0, innerHTML: y.content }, null, 8, ["innerHTML"])) : (C(), D("span", { key: 1 }, ke(y.content), 1)) ]), y.showArrow ? (C(), te(p(sg), { key: 0, "arrow-offset": y.arrowOffset }, null, 8, ["arrow-offset"])) : G("v-if", !0) ]), _: 3 }, 8, ["aria-label", "boundaries-padding", "content", "disabled", "effect", "enterable", "fallback-placements", "hide-after", "gpu-acceleration", "offset", "persistent", "popper-class", "popper-style", "placement", "popper-options", "pure", "raw-content", "reference-el", "trigger-target-el", "show-after", "strategy", "teleported", "transition", "virtual-triggering", "z-index", "append-to"]) ]), _: 3 }, 8, ["role"])); } }); var o0 = /* @__PURE__ */ Se(n0, [["__file", "tooltip.vue"]]); const Cu = lt(o0), xu = Symbol("buttonGroupContextKey"), a0 = (e, 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" }, w(() => e.type === "text")); const r = ve(xu, void 0), n = Ha("button"), { form: o } = In(), a = nn(w(() => r == null ? void 0 : r.size)), i = So(), s = N(), u = yl(), l = w(() => e.type || (r == null ? void 0 : r.type) || ""), f = w(() => { var v, m, g; return (g = (m = e.autoInsertSpace) != null ? m : (v = n.value) == null ? void 0 : v.autoInsertSpace) != null ? g : !1; }), c = w(() => e.tag === "button" ? { ariaDisabled: i.value || e.loading, disabled: i.value || e.loading, autofocus: e.autofocus, type: e.nativeType } : {}), d = w(() => { 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) === bl) { const y = g.children; return new RegExp("^\\p{Unified_Ideograph}{2}$", "u").test(y.trim()); } } return !1; }); return { _disabled: i, _size: a, _type: l, _ref: s, _props: c, shouldAddSpace: d, handleClick: (v) => { if (i.value || e.loading) { v.stopPropagation(); return; } e.nativeType === "reset" && (o == null || o.resetFields()), t("click", v); } }; }, i0 = [ "default", "primary", "success", "warning", "info", "danger", "text", "" ], s0 = ["button", "submit", "reset"], 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" } }), l0 = { click: (e) => e instanceof MouseEvent }; function Le(e, t) { u0(e) && (e = "100%"); var r = f0(e); return e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? e = (e < 0 ? e % t + t : e % t) / parseFloat(String(t)) : e = e % t / parseFloat(String(t)), e); } function Ln(e) { return Math.min(1, Math.max(0, e)); } function u0(e) { return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1; } function f0(e) { return typeof e == "string" && e.indexOf("%") !== -1; } function Tu(e) { return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e; } function zn(e) { return e <= 1 ? "".concat(Number(e) * 100, "%") : e; } function hr(e) { return e.length === 1 ? "0" + e : String(e); } function c0(e, t, r) { return { r: Le(e, 255) * 255, g: Le(t, 255) * 255, b: Le(r, 255) * 255 }; } function Ps(e, t, r) { e = Le(e, 255), t = Le(t, 255), r = Le(r, 255); var n = Math.max(e, t, r), o = Math.min(e, 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 e: a = (t - r) / u + (t < r ? 6 : 0); break; case t: a = (r - e) / u + 2; break; case r: a = (e - t) / u + 4; break; } a /= 6; } return { h: a, s: i, l: s }; } function Vo(e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + (t - e) * (6 * r) : r < 1 / 2 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; } function d0(e, t, r) { var n, o, a; if (e = Le(e, 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, e + 1 / 3), o = Vo(s, i, e), a = Vo(s, i, e - 1 / 3); } return { r: n * 255, g: o * 255, b: a * 255 }; } function $s(e, t, r) { e = Le(e, 255), t = Le(t, 255), r = Le(r, 255); var n = Math.max(e, t, r), o = Math.min(e, t, r), a = 0, i = n, s = n - o, u = n === 0 ? 0 : s / n; if (n === o) a = 0; else { switch (n) { case e: a = (t - r) / s + (t < r ? 6 : 0); break; case t: a = (r - e) / s + 2; break; case r: a = (e - t) / s + 4; break; } a /= 6; } return { h: a, s: u, v: i }; } function p0(e, t, r) { e = Le(e, 360) * 6, t = Le(t, 100), r = Le(r, 100); var n = Math.floor(e), o = e - 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(e, t, r, n) { var o = [ hr(Math.round(e).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(e, t, r, n, o) { var a = [ hr(Math.round(e).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(e) { return Math.round(parseFloat(e) * 255).toString(16); } function Ms(e) { return Xe(e) / 255; } function Xe(e) { return parseInt(e, 16); } function h0(e) { return { r: e >> 16, g: (e & 65280) >> 8, b: e & 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(e) { var t = { r: 0, g: 0, b: 0 }, r = 1, n = null, o = null, a = null, i = !1, s = !1; return typeof e == "string" && (e = w0(e)), typeof e == "object" && ($t(e.r) && $t(e.g) && $t(e.b) ? (t = c0(e.r, e.g, e.b), i = !0, s = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : $t(e.h) && $t(e.s) && $t(e.v) ? (n = zn(e.s), o = zn(e.v), t = p0(e.h, n, o), i = !0, s = "hsv") : $t(e.h) && $t(e.s) && $t(e.l) && (n = zn(e.s), a = zn(e.l), t = d0(e.h, n, a), i = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (r = e.a)), r = Tu(r), { ok: i, format: e.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+%?", b0 = "[-\\+]?\\d*\\.\\d+%?", nr = "(?:".concat(b0, ")|(?:").concat(g0, ")"), Ro = "[\\s|\\(]+(".concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")\\s*\\)?"), No = "[\\s|\\(]+(".concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")[,|\\s]+(").concat(nr, ")\\s*\\)?"), 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(e) { if (e = e.trim().toLowerCase(), e.length === 0) return !1; var t = !1; if (la[e]) e = la[e], t = !0; else if (e === "transparent") return { r: 0, g: 0, b: 0, a: 0, format: "name" }; var r = ct.rgb.exec(e); return r ? { r: r[1], g: r[2], b: r[3] } : (r = ct.rgba.exec(e), r ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ct.hsl.exec(e), r ? { h: r[1], s: r[2], l: r[3] } : (r = ct.hsla.exec(e), r ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ct.hsv.exec(e), r ? { h: r[1], s: r[2], v: r[3] } : (r = ct.hsva.exec(e), r ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ct.hex8.exec(e), 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(e), r ? { r: Xe(r[1]), g: Xe(r[2]), b: Xe(r[3]), format: t ? "name" : "hex" } : (r = ct.hex4.exec(e), 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(e), r ? { r: Xe(r[1] + r[1]), g: Xe(r[2] + r[2]), b: Xe(r[3] + r[3]), format: t ? "name" : "hex" } : !1))))))))); } function $t(e) { return !!ct.CSS_UNIT.exec(String(e)); } var S0 = ( /** @class */ function() { function e(t, r) { t === void 0 && (t = ""), r === void 0 && (r = {}); var n; if (t instanceof e) 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 e.prototype.isDark = function() { return this.getBrightness() < 128; }, e.prototype.isLight = function() { return !this.isDark(); }, e.prototype.getBrightness = function() { var t = this.toRgb(); return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3; }, e.prototype.getLuminance = function() { var t = this.toRgb(), 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; }, e.prototype.getAlpha = function() { return this.a; }, e.prototype.setAlpha = function(t) { return this.a = Tu(t), this.roundA = Math.round(100 * this.a) / 100, this; }, e.prototype.isMonochrome = function() { var t = this.toHsl().s; return t === 0; }, e.prototype.toHsv = function() { var t = $s(this.r, this.g, this.b); return { h: t.h * 360, s: t.s, v: t.v, a: this.a }; }, e.prototype.toHsvString = function() { var t = $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, ")"); }, e.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 }; }, e.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, ")"); }, e.prototype.toHex = function(t) { return t === void 0 && (t = !1), Fs(this.r, this.g, this.b, t); }, e.prototype.toHexString = function(t) { return t === void 0 && (t = !1), "#" + this.toHex(t); }, e.prototype.toHex8 = function(t) { return t === void 0 && (t = !1), v0(this.r, this.g, this.b, this.a, t); }, e.prototype.toHex8String = function(t) { return t === void 0 && (t = !1), "#" + this.toHex8(t); }, e.prototype.toHexShortString = function(t) { return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t); }, e.prototype.toRgb = function() { return { r: Math.round(this.r), g: Math.round(this.g), b: Math.round(this.b), a: this.a }; }, e.prototype.toRgbString = function() { var t = Math.round(this.r), 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, ")"); }, e.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 }; }, e.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, ")"); }, e.prototype.toName = function() { if (this.a === 0) return "transparent"; if (this.a < 1) return !1; for (var t = "#" + Fs(this.r, this.g, this.b, !1), 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 !1; }, e.prototype.toString = function(t) { var r = !!t; t = t ?? this.format; var n = !1, 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(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString()); }, e.prototype.toNumber = function() { return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b); }, e.prototype.clone = function() { return new e(this.toString()); }, e.prototype.lighten = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); return r.l += t / 100, r.l = Ln(r.l), new e(r); }, e.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 e(r); }, e.prototype.darken = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); return r.l -= t / 100, r.l = Ln(r.l), new e(r); }, e.prototype.tint = function(t) { return t === void 0 && (t = 10), this.mix("white", t); }, e.prototype.shade = function(t) { return t === void 0 && (t = 10), this.mix("black", t); }, e.prototype.desaturate = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); return r.s -= t / 100, r.s = Ln(r.s), new e(r); }, e.prototype.saturate = function(t) { t === void 0 && (t = 10); var r = this.toHsl(); return r.s += t / 100, r.s = Ln(r.s), new e(r); }, e.prototype.greyscale = function() { return this.desaturate(100); }, e.prototype.spin = function(t) { var r = this.toHsl(), n = (r.h + t) % 360; return r.h = n < 0 ? 360 + n : n, new e(r); }, e.prototype.mix = function(t, r) { r === void 0 && (r = 50); var n = this.toRgb(), o = new e(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 e(i); }, e.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 e(n)); return a; }, e.prototype.complement = function() { var t = this.toHsl(); return t.h = (t.h + 180) % 360, new e(t); }, e.prototype.monochromatic = function(t) { t === void 0 && (t = 6); for (var r = this.toHsv(), n = r.h, o = r.s, a = r.v, i = [], s = 1 / t; t--; ) i.push(new e({ h: n, s: o, v: a })), a = (a + s) % 1; return i; }, e.prototype.splitcomplement = function() { var t = this.toHsl(), r = t.h; return [ this, new e({ h: (r + 72) % 360, s: t.s, l: t.l }), new e({ h: (r + 216) % 360, s: t.s, l: t.l }) ]; }, e.prototype.onBackground = function(t) { var r = this.toRgb(), n = new e(t).toRgb(), o = r.a + n.a * (1 - r.a); return new e({ 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 }); }, e.prototype.triad = function() { return this.polyad(3); }, e.prototype.tetrad = function() { return this.polyad(4); }, e.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 e({ h: (n + i * a) % 360, s: r.s, l: r.l })); return o; }, e.prototype.equals = function(t) { return this.toRgbString() === new e(t).toRgbString(); }, e; }() ); function Gt(e, t = 20) { return e.mix("#141414", t).toString(); } function E0(e) { const t = So(), r = be("button"); return w(() => { let n = {}, o = e.color; if (o) { const a = o.match(/var\((.*?)\)/); a && (o = window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1])); const i = new S0(o), s = e.dark ? i.tint(20).toString() : Gt(i, 20); if (e.plain) n = r.cssVarBlock({ "bg-color": e.dark ? Gt(i, 90) : i.tint(90).toString(), "text-color": o, "border-color": e.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")] = e.dark ? Gt(i, 90) : i.tint(90).toString(), n[r.cssVarBlockName("disabled-text-color")] = e.dark ? Gt(i, 50) : i.tint(50).toString(), n[r.cssVarBlockName("disabled-border-color")] = e.dark ? Gt(i, 80) : i.tint(80).toString()); else { const u = e.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 = e.dark ? Gt(i, 50) : i.tint(50).toString(); n[r.cssVarBlockName("disabled-bg-color")] = f, n[r.cssVarBlockName("disabled-text-color")] = e.dark ? "rgba(255, 255, 255, 0.5)" : `var(${r.cssVarName("color-white")})`, n[r.cssVarBlockName("disabled-border-color")] = f; } } } return n; }); } const O0 = Z({ name: "ElButton" }), A0 = /* @__PURE__ */ Z({ ...O0, props: sa, emits: l0, setup(e, { expose: t, emit: r }) { const n = e, o = E0(n), a = be("button"), { _ref: i, _size: s, _type: u, _disabled: l, _props: f, shouldAddSpace: c, handleClick: d } = a0(n, r), h = w(() => [ 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) => (C(), te(vt(v.tag), ar({ ref_key: "_ref", ref: i }, p(f), { class: p(h), style: p(o), onClick: p(d) }), { default: ee(() => [ v.loading ? (C(), D(He, { key: 0 }, [ v.$slots.loading ? re(v.$slots, "loading", { key: 0 }) : (C(), te(p(rt), { key: 1, class: L(p(a).is("loading")) }, { default: ee(() => [ (C(), te(vt(v.loadingIcon))) ]), _: 1 }, 8, ["class"])) ], 64)) : v.icon || v.$slots.icon ? (C(), te(p(rt), { key: 1 }, { default: ee(() => [ v.icon ? (C(), te(vt(v.icon), { key: 0 })) : re(v.$slots, "icon", { key: 1 }) ]), _: 3 })) : G("v-if", !0), v.$slots.default ? (C(), D("span", { key: 2, class: L({ [p(a).em("text", "expand")]: p(c) }) }, [ re(v.$slots, "default") ], 2)) : G("v-if", !0) ]), _: 3 }, 16, ["class", "style", "onClick"])); } }); var _0 = /* @__PURE__ */ Se(A0, [["__file", "button.vue"]]); const I0 = { size: sa.size, type: sa.type }, C0 = Z({ name: "ElButtonGroup" }), x0 = /* @__PURE__ */ Z({ ...C0, props: I0, setup(e) { const t = e; at(xu, mt({ size: pt(t, "size"), type: pt(t, "type") })); const r = be("button"); return (n, o) => (C(), D("div", { class: L(p(r).b("group")) }, [ re(n.$slots, "default") ], 2)); } }); var Pu = /* @__PURE__ */ Se(x0, [["__file", "button-group.vue"]]); const $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(e) { if (e.__esModule) return e; var t = e.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: !0 }), Object.keys(e).forEach(function(n) { var o = Object.getOwnPropertyDescriptor(e, n); Object.defineProperty(r, n, o.get ? o : { enumerable: !0, get: function() { return e[n]; } }); }), r; } const Xt = /* @__PURE__ */ new Map(); if (Fe) { let e; document.addEventListener("mousedown", (t) => e = t), document.addEventListener("mouseup", (t) => { if (e) { for (const r of Xt.values()) for (const { documentHandler: n } of r) n(t, e); e = void 0; } }); } function Vs(e, 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 = e.contains(i) || e.contains(s), c = e === i, d = r.length && r.some((v) => v == null ? void 0 : v.contains(i)) || r.length && r.includes(s), h = a && (a.contains(i) || a.contains(s)); u || l || f || c || d || h || t.value(n, o); }; } const P0 = { beforeMount(e, t) { Xt.has(e) || Xt.set(e, []), Xt.get(e).push({ documentHandler: Vs(e, t), bindingFn: t.value }); }, updated(e, t) { Xt.has(e) || Xt.set(e, []); const r = Xt.get(e), n = r.findIndex((a) => a.bindingFn === t.oldValue), o = { documentHandler: Vs(e, t), bindingFn: t.value }; n >= 0 ? r.splice(n, 1, o) : r.push(o); }, unmounted(e) { Xt.delete(e); } }, $0 = 100, F0 = 600, Rs = { beforeMount(e, 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); }; e.addEventListener("mousedown", (l) => { l.button === 0 && (u(), s(), document.addEventListener("mouseup", () => u(), { once: !0 }), i = setTimeout(() => { a = setInterval(() => { s(); }, n); }, o)); }); } }, 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 }), M0 = { close: (e) => e instanceof MouseEvent, click: (e) => e instanceof MouseEvent }, V0 = Z({ name: "ElTag" }), R0 = /* @__PURE__ */ Z({ ...V0, props: ua, emits: M0, setup(e, { emit: t }) { const r = e, n = nn(), o = be("tag"), a = w(() => { const { type: l, hit: f, effect: c, closable: d, round: h } = 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", h) ]; }), i = (l) => { t("close", l); }, s = (l) => { t("click", l); }, u = (l) => { l.component.subTree.component.bum = null; }; return (l, f) => l.disableTransitions ? (C(), D("span", { key: 0, class: L(p(a)), style: Ve({ backgroundColor: l.color }), onClick: s }, [ q("span", { class: L(p(o).e("content")) }, [ re(l.$slots, "default") ], 2), l.closable ? (C(), te(p(rt), { key: 0, class: L(p(o).e("close")), onClick: Ne(i, ["stop"]) }, { default: ee(() => [ pe(p(os)) ]), _: 1 }, 8, ["class", "onClick"])) : G("v-if", !0) ], 6)) : (C(), te(lo, { key: 1, name: `${p(o).namespace.value}-zoom-in-center`, appear: "", onVnodeMounted: u }, { default: ee(() => [ q("span", { class: L(p(a)), style: Ve({ backgroundColor: l.color }), onClick: s }, [ q("span", { class: L(p(o).e("content")) }, [ re(l.$slots, "default") ], 2), l.closable ? (C(), te(p(rt), { key: 0, class: L(p(o).e("close")), onClick: Ne(i, ["stop"]) }, { default: ee(() => [ pe(p(os)) ]), _: 1 }, 8, ["class", "onClick"])) : G("v-if", !0) ], 6) ]), _: 3 }, 8, ["name"])); } }); var N0 = /* @__PURE__ */ Se(R0, [["__file", "tag.vue"]]); const k0 = lt(N0), 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" } }), z0 = Z({ name: "ElDivider" }), B0 = /* @__PURE__ */ Z({ ...z0, props: L0, setup(e) { const t = e, r = be("divider"), n = w(() => r.cssVar({ "border-style": t.borderStyle })); return (o, a) => (C(), D("div", { class: L([p(r).b(), p(r).m(o.direction)]), style: Ve(p(n)), role: "separator" }, [ o.$slots.default && o.direction !== "vertical" ? (C(), D("div", { key: 0, class: L([p(r).e("text"), p(r).is(o.contentPosition)]) }, [ re(o.$slots, "default") ], 2)) : G("v-if", !0) ], 6)); } }); var D0 = /* @__PURE__ */ Se(B0, [["__file", "divider.vue"]]); const Fu = lt(D0), 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: !0 }, controlsPosition: { type: String, default: "", values: ["", "right"] }, valueOnClear: { type: [String, Number, null], validator: (e) => e === null || ge(e) || ["min", "max"].includes(e), default: null }, name: String, placeholder: String, precision: { type: Number, validator: (e) => e >= 0 && e === Number.parseInt(`${e}`, 10) }, validateEvent: { type: Boolean, default: !0 }, ...Cr(["ariaLabel"]) }), j0 = { [tn]: (e, t) => t !== e, blur: (e) => e instanceof FocusEvent, focus: (e) => e instanceof FocusEvent, [gr]: (e) => ge(e) || zt(e), [Pe]: (e) => ge(e) || zt(e) }, H0 = Z({ name: "ElInputNumber" }), W0 = /* @__PURE__ */ Z({ ...H0, props: U0, emits: j0, setup(e, { expose: t, emit: r }) { const n = e, { t: o } = go(), a = be("input-number"), i = N(), s = mt({ currentValue: n.modelValue, userInput: null }), { formItem: u } = In(), l = w(() => ge(n.modelValue) && n.modelValue <= n.min), f = w(() => ge(n.modelValue) && n.modelValue >= n.max), c = w(() => { 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 = w(() => n.controls && n.controlsPosition === "right"), h = nn(), v = So(), m = w(() => { 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 = !0) => { 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, !1); }, 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 ne(() => n.modelValue, (_, A) => { const k = S(_, !0); s.userInput === null && k !== A && (s.currentValue = k); }, { immediate: !0 }), ze(() => { 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: !1 }); }), gl(() => { 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) => (C(), D("div", { class: L([ p(a).b(), p(a).m(p(h)), p(a).is("disabled", p(v)), p(a).is("without-controls", !_.controls), p(a).is("controls-right", p(d)) ]), onDragstart: Ne(() => { }, ["prevent"]) }, [ _.controls ? We((C(), D("span", { key: 0, role: "button", "aria-label": p(o)("el.inputNumber.decrease"), class: L([p(a).e("decrease"), p(a).is("disabled", p(l))]), onKeydown: Vt(I, ["enter"]) }, [ re(_.$slots, "decrease-icon", {}, () => [ pe(p(rt), null, { default: ee(() => [ p(d) ? (C(), te(p(jl), { key: 0 })) : (C(), te(p(zm), { key: 1 })) ]), _: 1 }) ]) ], 42, ["aria-label", "onKeydown"])), [ [p(Rs), I] ]) : G("v-if", !0), _.controls ? We((C(), D("span", { key: 1, role: "button", "aria-label": p(o)("el.inputNumber.increase"), class: L([p(a).e("increase"), p(a).is("disabled", p(f))]), onKeydown: Vt(O, ["enter"]) }, [ re(_.$slots, "increase-icon", {}, () => [ pe(p(rt), null, { default: ee(() => [ p(d) ? (C(), te(p(Pm), { key: 0 })) : (C(), te(p(Dm), { key: 1 })) ]), _: 1 }) ]) ], 42, ["aria-label", "onKeydown"])), [ [p(Rs), O] ]) : G("v-if", !0), pe(p(By), { id: _.id, ref_key: "input", ref: i, type: "number", step: _.step, "model-value": p(m), placeholder: _.placeholder, readonly: _.readonly, disabled: p(v), size: p(h), max: _.max, min: _.min, name: _.name, "aria-label": _.ariaLabel, "validate-event": !1, onKeydown: [ Vt(Ne(O, ["prevent"]), ["up"]), Vt(Ne(I, ["prevent"]), ["down"]) ], onBlur: R, onFocus: J, onInput: T, onChange: V }, ec({ _: 2 }, [ _.$slots.prefix ? { name: "prefix", fn: ee(() => [ re(_.$slots, "prefix") ]) } : void 0, _.$slots.suffix ? { name: "suffix", fn: ee(() => [ re(_.$slots, "suffix") ]) } : void 0 ]), 1032, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"]) ], 42, ["onDragstart"])); } }); var q0 = /* @__PURE__ */ Se(W0, [["__file", "input-number.vue"]]); const Qa = lt(q0), Mu = Symbol("ElSelectGroup"), Oo = Symbol("ElSelect"); function K0(e, t) { const r = ve(Oo), n = ve(Mu, { disabled: !1 }), o = w(() => f(rr(r.props.modelValue), e.value)), a = w(() => { var h; if (r.props.multiple) { const v = rr((h = r.props.modelValue) != null ? h : []); return !o.value && v.length >= r.props.multipleLimit && r.props.multipleLimit > 0; } else return !1; }), i = w(() => e.label || (Ge(e.value) ? "" : e.value)), s = w(() => e.value || e.label || ""), u = w(() => e.disabled || t.groupDisabled || a.value), l = qe(), f = (h = [], v) => { if (Ge(e.value)) { const m = r.props.valueKey; return h && h.some((g) => wl(Rt(g, m)) === Rt(v, m)); } else return h && h.includes(v); }, c = () => { !e.disabled && !n.disabled && (r.states.hoveringIndex = r.optionsArray.indexOf(l.proxy)); }, d = (h) => { const v = new RegExp(_m(h), "i"); t.visible = v.test(i.value) || e.created; }; return ne(() => i.value, () => { !e.created && !r.props.remote && r.setSelected(); }), ne(() => e.value, (h, v) => { const { remote: m, valueKey: g } = r.props; if (h !== v && (r.onOptionDestroy(v, l.proxy), r.onOptionCreate(l.proxy)), !e.created && !m) { if (g && Ge(h) && Ge(v) && h[g] === v[g]) return; r.setSelected(); } }), ne(() => n.disabled, () => { t.groupDisabled = n.disabled; }, { immediate: !0 }), { select: r, currentLabel: i, currentValue: s, itemSelected: o, isDisabled: u, hoverItem: c, updateOption: d }; } const Z0 = Z({ name: "ElOption", componentName: "ElOption", props: { value: { required: !0, type: [String, Number, Boolean, Object] }, label: [String, Number], created: Boolean, disabled: Boolean }, setup(e) { const t = be("select"), r = wo(), n = w(() => [ t.be("dropdown", "item"), t.is("disabled", p(s)), t.is("selected", p(i)), t.is("hovering", p(d)) ]), o = mt({ index: -1, groupDisabled: !1, visible: !0, hover: !1 }), { currentLabel: a, itemSelected: i, isDisabled: s, select: u, hoverItem: l, updateOption: f } = K0(e, o), { visible: c, hover: d } = Er(o), h = qe().proxy; u.onOptionCreate(h), Ct(() => { const m = h.value, { selected: g } = u.states, b = (u.props.multiple ? g : [g]).some((O) => O.value === h.value); Oe(() => { u.states.cachedOptions.get(m) === h && !b && u.states.cachedOptions.delete(m); }), u.onOptionDestroy(m, h); }); function v() { s.value || u.handleOptionSelect(h); } 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(e, t, r, n, o, a) { return We((C(), D("li", { id: e.id, class: L(e.containerKls), role: "option", "aria-disabled": e.isDisabled || void 0, "aria-selected": e.itemSelected, onMouseenter: e.hoverItem, onClick: Ne(e.selectOptionClick, ["stop"]) }, [ re(e.$slots, "default", {}, () => [ q("span", null, ke(e.currentLabel), 1) ]) ], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [ [Bt, e.visible] ]); } var ei = /* @__PURE__ */ Se(Z0, [["render", G0], ["__file", "option.vue"]]); const J0 = Z({ name: "ElSelectDropdown", componentName: "ElSelectDropdown", setup() { const e = ve(Oo), t = be("select"), r = w(() => e.props.popperClass), n = w(() => e.props.multiple), o = w(() => e.props.fitInputWidth), a = N(""); function i() { var s; a.value = `${(s = e.selectRef) == null ? void 0 : s.offsetWidth}px`; } return ze(() => { i(), Mt(e.selectRef, i); }), { ns: t, minWidth: a, popperClass: r, isMultiple: n, isFitInputWidth: o }; } }); function Y0(e, t, r, n, o, a) { return C(), D("div", { class: L([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]), style: Ve({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth }) }, [ e.$slots.header ? (C(), D("div", { key: 0, class: L(e.ns.be("dropdown", "header")) }, [ re(e.$slots, "header") ], 2)) : G("v-if", !0), re(e.$slots, "default"), e.$slots.footer ? (C(), D("div", { key: 1, class: L(e.ns.be("dropdown", "footer")) }, [ re(e.$slots, "footer") ], 2)) : G("v-if", !0) ], 6); } var X0 = /* @__PURE__ */ Se(J0, [["render", Y0], ["__file", "select-dropdown.vue"]]); const Q0 = 11, eb = (e, t) => { const { t: r } = go(), n = wo(), o = be("select"), a = be("input"), i = mt({ 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: !1, menuVisibleOnFocus: !1, isBeforeHide: !1 }), s = N(null), u = N(null), l = N(null), f = N(null), c = N(null), d = N(null), h = N(null), v = N(null), m = N(null), g = N(null), y = N(null), b = N(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() { e.automaticDropdown && !$.value && ($.value = !0, i.menuVisibleOnFocus = !0); }, 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 = !1, i.menuVisibleOnFocus = !1; } }), $ = N(!1), H = N(), { form: J, formItem: R } = In(), { inputId: z } = qa(e, { formItemContext: R }), { valueOnClear: X, isEmptyValue: _ } = Oy(e), A = w(() => e.disabled || (J == null ? void 0 : J.disabled)), k = w(() => Ot(e.modelValue) ? e.modelValue.length > 0 : !_(e.modelValue)), Q = w(() => e.clearable && !A.value && i.inputHovering && k.value), K = w(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), P = w(() => o.is("reverse", K.value && $.value)), U = w(() => (R == null ? void 0 : R.validateState) || ""), M = w(() => ql[U.value]), j = w(() => e.remote ? 300 : 0), Y = w(() => e.loading ? e.loadingText || r("el.select.loading") : e.remote && !i.inputValue && i.options.size === 0 ? !1 : e.filterable && i.inputValue && i.options.size > 0 && oe.value === 0 ? e.noMatchText || r("el.select.noMatch") : i.options.size === 0 ? e.noDataText || r("el.select.noData") : null), oe = w(() => ae.value.filter((E) => E.visible).length), ae = w(() => { 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 = w(() => Array.from(i.cachedOptions.values())), Ee = w(() => { const E = ae.value.filter((B) => !B.created).some((B) => B.currentLabel === i.inputValue); return e.filterable && e.allowCreate && i.inputValue !== "" && !E; }), Ae = () => { e.filterable && Be(e.filterMethod) || e.filterable && e.remote && Be(e.remoteMethod) || ae.value.forEach((E) => { var B; (B = E.updateOption) == null || B.call(E, i.inputValue); }); }, _e = nn(), ue = w(() => ["small"].includes(_e.value) ? "small" : "default"), he = w({ get() { return $.value && Y.value !== !1; }, set(E) { $.value = E; } }), Te = w(() => { if (e.multiple && !kt(e.modelValue)) return rr(e.modelValue).length === 0 && !i.inputValue; const E = Ot(e.modelValue) ? e.modelValue[0] : e.modelValue; return e.filterable || kt(E) ? !i.inputValue : !0; }), Ue = w(() => { var E; const B = (E = e.placeholder) != null ? E : r("el.select.placeholder"); return e.multiple || !k.value ? B : i.selectedLabel; }), Ke = w(() => Go ? null : "mouseenter"); ne(() => e.modelValue, (E, B) => { e.multiple && e.filterable && !e.reserveKeyword && (i.inputValue = "", Ze("")), Pt(), !ra(E, B) && e.validateEvent && (R == null || R.validate("change").catch((se) => Ce(se))); }, { flush: "post", deep: !0 }), ne(() => $.value, (E) => { E ? Ze(i.inputValue) : (i.inputValue = "", i.previousQuery = null, i.isBeforeHide = !0), t("visible-change", E); }), ne(() => i.options.entries(), () => { var E; if (!Fe) return; const B = ((E = s.value) == null ? void 0 : E.querySelectorAll("input")) || []; (!e.filterable && !e.defaultFirstOption && !kt(e.modelValue) || !Array.from(B).includes(document.activeElement)) && Pt(), e.defaultFirstOption && (e.filterable || e.remote) && oe.value && dr(); }, { flush: "post" }), ne(() => i.hoveringIndex, (E) => { ge(E) && E > -1 ? H.value = ae.value[E] || {} : H.value = {}, ae.value.forEach((B) => { B.hover = H.value === B; }); }), tc(() => { i.isBeforeHide || Ae(); }); const Ze = (E) => { i.previousQuery === E || O.value || (i.previousQuery = E, e.filterable && Be(e.filterMethod) ? e.filterMethod(E) : e.filterable && e.remote && Be(e.remoteMethod) && e.remoteMethod(E), e.defaultFirstOption && (e.filterable || e.remote) && oe.value ? Oe(dr) : Oe(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 (e.multiple) i.selectedLabel = ""; else { const B = Ot(e.modelValue) ? e.modelValue[0] : e.modelValue, se = Tr(B); i.selectedLabel = se.currentLabel, i.selected = [se]; return; } const E = []; kt(e.modelValue) || rr(e.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, e.valueKey) === Rt(E, e.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 = !0), Ze(i.inputValue); }, tt = (E) => { if (i.inputValue = E.target.value, e.remote) qt(); else return de(); }, qt = ta(() => { de(); }, j.value), Kt = (E) => { ra(e.modelValue, E) || t(tn, E); }, Af = (E) => gm(E, (B) => !i.disabledOptions.has(B)), _f = (E) => { if (e.multiple && E.code !== Hr.delete && E.target.value.length <= 0) { const B = rr(e.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(e.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 = e.multiple ? [] : X.value; if (e.multiple) for (const se of i.selected) se.isDisabled && B.push(se.value); t(Pe, B), Kt(B), i.hoveringIndex = -1, $.value = !1, t("clear"), $n(); }, mi = (E) => { var B; if (e.multiple) { const se = rr((B = e.modelValue) != null ? B : []).slice(), me = hi(se, E.value); me > -1 ? se.splice(me, 1) : (e.multipleLimit <= 0 || se.length < e.multipleLimit) && se.push(E.value), t(Pe, se), Kt(se), E.created && Ze(""), e.filterable && !e.reserveKeyword && (i.inputValue = ""); } else t(Pe, E.value), Kt(E.value), $.value = !1; $n(), !$.value && Oe(() => { Pn(E); }); }, hi = (E = [], B) => { if (!Ge(B)) return E.indexOf(B); const se = e.valueKey; let me = -1; return E.some((Zt, $r) => wl(Rt(Zt, se)) === Rt(B, se) ? (me = $r, !0) : !1), 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 = w(() => { var E, B; return (B = (E = l.value) == null ? void 0 : E.popperRef) == null ? void 0 : B.contentRef; }), Pf = () => { i.isBeforeHide = !1, Oe(() => 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 = !1, V.value && yi(); }, Mf = () => { i.inputValue.length > 0 ? i.inputValue = "" : $.value = !1; }, gi = () => { A.value || (Go && (i.inputHovering = !0), i.menuVisibleOnFocus ? i.menuVisibleOnFocus = !1 : $.value = !$.value); }, Vf = () => { $.value ? ae.value[i.hoveringIndex] && mi(ae.value[i.hoveringIndex]) : gi(); }, _o = (E) => Ge(E.value) ? Rt(E.value, e.valueKey) : E.value, Rf = w(() => ae.value.filter((E) => E.visible).every((E) => E.disabled)), Nf = w(() => e.multiple ? e.collapseTags ? i.selected.slice(0, e.maxCollapseTags) : i.selected : []), kf = w(() => e.multiple ? e.collapseTags ? i.selected.slice(e.maxCollapseTags) : [] : []), bi = (E) => { if (!$.value) { $.value = !0; 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 === !0 || B.states.groupDisabled === !0 || !B.visible) && bi(E), Oe(() => Pn(H.value)); } }, Lf = () => { if (!u.value) return 0; const E = window.getComputedStyle(u.value); return Number.parseFloat(E.gap || "6px"); }, zf = w(() => { const E = Lf(); return { maxWidth: `${y.value && e.maxCollapseTags === 1 ? i.selectionWidth - i.collapseItemWidth - E : i.selectionWidth}px` }; }), Bf = w(() => ({ maxWidth: `${i.selectionWidth}px` })), Df = w(() => ({ 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), ze(() => { 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: h, suffixRef: v, selectRef: s, wrapperRef: T, selectionRef: u, scrollbarRef: b, menuRef: m, tagMenuRef: g, collapseItemRef: y }; }; var tb = Z({ name: "ElOptions", setup(e, { slots: t }) { const r = ve(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, h, 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) ? (h = f.children) == null ? void 0 : h.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; }; } }); const 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: !0 }, valueKey: { type: String, default: "value" }, collapseTags: Boolean, collapseTagsTooltip: Boolean, maxCollapseTags: { type: Number, default: 1 }, teleported: Xa.teleported, persistent: { type: Boolean, default: !0 }, 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: !0 }, 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"]) }), Ns = "ElSelect", nb = Z({ 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(e, { emit: t }) { const r = w(() => { const { modelValue: a, multiple: i } = e, s = i ? [] : void 0; return Ot(a) ? i ? a : s : i ? s : a; }), n = mt({ ...Er(e), modelValue: r }), o = eb(n, t); return at(Oo, mt({ 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(e, t, r, n, o, a) { const i = Jt("el-tag"), s = Jt("el-tooltip"), u = Jt("el-icon"), l = Jt("el-option"), f = Jt("el-options"), c = Jt("el-scrollbar"), d = Jt("el-select-menu"), h = rc("click-outside"); return We((C(), D("div", { ref: "selectRef", class: L([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]), [nc(e.mouseEnterEventName)]: (v) => e.states.inputHovering = !0, onMouseleave: (v) => e.states.inputHovering = !1 }, [ pe(s, { ref: "tooltipRef", visible: e.dropdownMenuVisible, placement: e.placement, teleported: e.teleported, "popper-class": [e.nsSelect.e("popper"), e.popperClass], "popper-options": e.popperOptions, "fallback-placements": e.fallbackPlacements, effect: e.effect, pure: "", trigger: "click", transition: `${e.nsSelect.namespace.value}-zoom-in-top`, "stop-popper-mouse-event": !1, "gpu-acceleration": !1, persistent: e.persistent, "append-to": e.appendTo, onBeforeShow: e.handleMenuEnter, onHide: (v) => e.states.isBeforeHide = !1 }, { default: ee(() => { var v; return [ q("div", { ref: "wrapperRef", class: L([ e.nsSelect.e("wrapper"), e.nsSelect.is("focused", e.isFocused), e.nsSelect.is("hovering", e.states.inputHovering), e.nsSelect.is("filterable", e.filterable), e.nsSelect.is("disabled", e.selectDisabled) ]), onClick: Ne(e.toggleMenu, ["prevent"]) }, [ e.$slots.prefix ? (C(), D("div", { key: 0, ref: "prefixRef", class: L(e.nsSelect.e("prefix")) }, [ re(e.$slots, "prefix") ], 2)) : G("v-if", !0), q("div", { ref: "selectionRef", class: L([ e.nsSelect.e("selection"), e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length) ]) }, [ e.multiple ? re(e.$slots, "tag", { key: 0 }, () => [ (C(!0), D(He, null, ir(e.showTagList, (m) => (C(), D("div", { key: e.getValueKey(m), class: L(e.nsSelect.e("selected-item")) }, [ pe(i, { closable: !e.selectDisabled && !m.isDisabled, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", style: Ve(e.tagStyle), onClose: (g) => e.deleteTag(g, m) }, { default: ee(() => [ q("span", { class: L(e.nsSelect.e("tags-text")) }, [ re(e.$slots, "label", { label: m.currentLabel, value: m.value }, () => [ Qt(ke(m.currentLabel), 1) ]) ], 2) ]), _: 2 }, 1032, ["closable", "size", "type", "effect", "style", "onClose"]) ], 2))), 128)), e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (C(), te(s, { key: 0, ref: "tagTooltipRef", disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip, "fallback-placements": ["bottom", "top", "right", "left"], effect: e.effect, placement: "bottom", teleported: e.teleported }, { default: ee(() => [ q("div", { ref: "collapseItemRef", class: L(e.nsSelect.e("selected-item")) }, [ pe(i, { closable: !1, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", style: Ve(e.collapseTagStyle) }, { default: ee(() => [ q("span", { class: L(e.nsSelect.e("tags-text")) }, " + " + ke(e.states.selected.length - e.maxCollapseTags), 3) ]), _: 1 }, 8, ["size", "type", "effect", "style"]) ], 2) ]), content: ee(() => [ q("div", { ref: "tagMenuRef", class: L(e.nsSelect.e("selection")) }, [ (C(!0), D(He, null, ir(e.collapseTagList, (m) => (C(), D("div", { key: e.getValueKey(m), class: L(e.nsSelect.e("selected-item")) }, [ pe(i, { class: "in-tooltip", closable: !e.selectDisabled && !m.isDisabled, size: e.collapseTagSize, type: e.tagType, effect: e.tagEffect, "disable-transitions": "", onClose: (g) => e.deleteTag(g, m) }, { default: ee(() => [ q("span", { class: L(e.nsSelect.e("tags-text")) }, [ re(e.$slots, "label", { label: m.currentLabel, value: m.value }, () => [ Qt(ke(m.currentLabel), 1) ]) ], 2) ]), _: 2 }, 1032, ["closable", "size", "type", "effect", "onClose"]) ], 2))), 128)) ], 2) ]), _: 3 }, 8, ["disabled", "effect", "teleported"])) : G("v-if", !0) ]) : G("v-if", !0), e.selectDisabled ? G("v-if", !0) : (C(), D("div", { key: 1, class: L([ e.nsSelect.e("selected-item"), e.nsSelect.e("input-wrapper"), e.nsSelect.is("hidden", !e.filterable) ]) }, [ We(q("input", { id: e.inputId, ref: "inputRef", "onUpdate:modelValue": (m) => e.states.inputValue = m, type: "text", name: e.name, class: L([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]), disabled: e.selectDisabled, autocomplete: e.autocomplete, style: Ve(e.inputStyle), role: "combobox", readonly: !e.filterable, spellcheck: "false", "aria-activedescendant": ((v = e.hoverOption) == null ? void 0 : v.id) || "", "aria-controls": e.contentId, "aria-expanded": e.dropdownMenuVisible, "aria-label": e.ariaLabel, "aria-autocomplete": "none", "aria-haspopup": "listbox", onKeydown: [ Vt(Ne((m) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]), Vt(Ne((m) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]), Vt(Ne(e.handleEsc, ["stop", "prevent"]), ["esc"]), Vt(Ne(e.selectOption, ["stop", "prevent"]), ["enter"]), Vt(Ne(e.deletePrevTag, ["stop"]), ["delete"]) ], onCompositionstart: e.handleCompositionStart, onCompositionupdate: e.handleCompositionUpdate, onCompositionend: e.handleCompositionEnd, onInput: e.onInput, onClick: Ne(e.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"]), [ [oc, e.states.inputValue] ]), e.filterable ? (C(), D("span", { key: 0, ref: "calculatorRef", "aria-hidden": "true", class: L(e.nsSelect.e("input-calculator")), textContent: ke(e.states.inputValue) }, null, 10, ["textContent"])) : G("v-if", !0) ], 2)), e.shouldShowPlaceholder ? (C(), D("div", { key: 2, class: L([ e.nsSelect.e("selected-item"), e.nsSelect.e("placeholder"), e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue) ]) }, [ e.hasModelValue ? re(e.$slots, "label", { key: 0, label: e.currentPlaceholder, value: e.modelValue }, () => [ q("span", null, ke(e.currentPlaceholder), 1) ]) : (C(), D("span", { key: 1 }, ke(e.currentPlaceholder), 1)) ], 2)) : G("v-if", !0) ], 2), q("div", { ref: "suffixRef", class: L(e.nsSelect.e("suffix")) }, [ e.iconComponent && !e.showClose ? (C(), te(u, { key: 0, class: L([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse]) }, { default: ee(() => [ (C(), te(vt(e.iconComponent))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0), e.showClose && e.clearIcon ? (C(), te(u, { key: 1, class: L([ e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.nsSelect.e("clear") ]), onClick: e.handleClearClick }, { default: ee(() => [ (C(), te(vt(e.clearIcon))) ]), _: 1 }, 8, ["class", "onClick"])) : G("v-if", !0), e.validateState && e.validateIcon ? (C(), te(u, { key: 2, class: L([e.nsInput.e("icon"), e.nsInput.e("validateIcon")]) }, { default: ee(() => [ (C(), te(vt(e.validateIcon))) ]), _: 1 }, 8, ["class"])) : G("v-if", !0) ], 2) ], 10, ["onClick"]) ]; }), content: ee(() => [ pe(d, { ref: "menuRef" }, { default: ee(() => [ e.$slots.header ? (C(), D("div", { key: 0, class: L(e.nsSelect.be("dropdown", "header")), onClick: Ne(() => { }, ["stop"]) }, [ re(e.$slots, "header") ], 10, ["onClick"])) : G("v-if", !0), We(pe(c, { id: e.contentId, ref: "scrollbarRef", tag: "ul", "wrap-class": e.nsSelect.be("dropdown", "wrap"), "view-class": e.nsSelect.be("dropdown", "list"), class: L([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]), role: "listbox", "aria-label": e.ariaLabel, "aria-orientation": "vertical" }, { default: ee(() => [ e.showNewOption ? (C(), te(l, { key: 0, value: e.states.inputValue, created: !0 }, null, 8, ["value"])) : G("v-if", !0), pe(f, null, { default: ee(() => [ re(e.$slots, "default") ]), _: 3 }) ]), _: 3 }, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [ [Bt, e.states.options.size > 0 && !e.loading] ]), e.$slots.loading && e.loading ? (C(), D("div", { key: 1, class: L(e.nsSelect.be("dropdown", "loading")) }, [ re(e.$slots, "loading") ], 2)) : e.loading || e.filteredOptionsCount === 0 ? (C(), D("div", { key: 2, class: L(e.nsSelect.be("dropdown", "empty")) }, [ re(e.$slots, "empty", {}, () => [ q("span", null, ke(e.emptyText), 1) ]) ], 2)) : G("v-if", !0), e.$slots.footer ? (C(), D("div", { key: 3, class: L(e.nsSelect.be("dropdown", "footer")), onClick: Ne(() => { }, ["stop"]) }, [ re(e.$slots, "footer") ], 10, ["onClick"])) : G("v-if", !0) ]), _: 3 }, 512) ]), _: 3 }, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "append-to", "onBeforeShow", "onHide"]) ], 16, ["onMouseleave"])), [ [h, e.handleClickOutside, e.popperRef] ]); } var ab = /* @__PURE__ */ Se(nb, [["render", ob], ["__file", "select.vue"]]); const ib = Z({ name: "ElOptionGroup", componentName: "ElOptionGroup", props: { label: String, disabled: Boolean }, setup(e) { const t = be("select"), r = N(null), n = qe(), o = N([]); at(Mu, mt({ ...Er(e) })); const a = w(() => o.value.some((l) => l.visible === !0)), 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 h, v; i(d) ? c.push(d.component.proxy) : (h = d.children) != null && h.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 ze(() => { u(); }), bc(r, u, { attributes: !0, subtree: !0, childList: !0 }), { groupRef: r, visible: a, ns: t }; } }); function sb(e, t, r, n, o, a) { return We((C(), D("ul", { ref: "groupRef", class: L(e.ns.be("group", "wrap")) }, [ q("li", { class: L(e.ns.be("group", "title")) }, ke(e.label), 3), q("li", null, [ q("ul", { class: L(e.ns.b("group")) }, [ re(e.$slots, "default") ], 2) ]) ], 2)), [ [Bt, e.visible] ]); } var Vu = /* @__PURE__ */ Se(ib, [["render", sb], ["__file", "option-group.vue"]]); const Ru = lt(ab, { Option: ei, OptionGroup: Vu }), Nu = Va(ei); Va(Vu); const ku = Symbol("sliderContextKey"), 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: !0 }, size: Jr, inputSize: Jr, showStops: Boolean, showTooltip: { type: Boolean, default: !0 }, 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: !0 }, ...Cr(["ariaLabel"]) }), ko = (e) => ge(e) || Ot(e) && e.every(ge), ub = { [Pe]: ko, [gr]: ko, [tn]: ko }, fb = (e, t, r) => { const n = N(); return ze(async () => { e.range ? (Array.isArray(e.modelValue) ? (t.firstValue = Math.max(e.min, e.modelValue[0]), t.secondValue = Math.min(e.max, e.modelValue[1])) : (t.firstValue = e.min, t.secondValue = e.max), t.oldValue = [t.firstValue, t.secondValue]) : (typeof e.modelValue != "number" || Number.isNaN(e.modelValue) ? t.firstValue = e.min : t.firstValue = Math.min(e.max, Math.max(e.min, e.modelValue)), t.oldValue = t.firstValue), je(window, "resize", r), await Oe(), r(); }), { sliderWrapper: n }; }, cb = (e) => w(() => e.marks ? Object.keys(e.marks).map(Number.parseFloat).sort((r, n) => r - n).filter((r) => r <= e.max && r >= e.min).map((r) => ({ point: r, position: (r - e.min) * 100 / (e.max - e.min), mark: e.marks[r] })) : []), db = (e, t, r) => { const { form: n, formItem: o } = In(), a = zr(), i = N(), s = N(), u = { firstButton: i, secondButton: s }, l = w(() => e.disabled || (n == null ? void 0 : n.disabled) || !1), f = w(() => Math.min(t.firstValue, t.secondValue)), c = w(() => Math.max(t.firstValue, t.secondValue)), d = w(() => e.range ? `${100 * (c.value - f.value) / (e.max - e.min)}%` : `${100 * (t.firstValue - e.min) / (e.max - e.min)}%`), h = w(() => e.range ? `${100 * (f.value - e.min) / (e.max - e.min)}%` : "0%"), v = w(() => e.vertical ? { height: e.height } : {}), m = w(() => e.vertical ? { height: d.value, bottom: h.value } : { width: d.value, left: h.value }), g = () => { a.value && (t.sliderSize = a.value[`client${e.vertical ? "Height" : "Width"}`]); }, y = (R) => { const z = e.min + R * (e.max - e.min) / 100; if (!e.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 ?? e.min, S(e.range ? [f.value, c.value] : R ?? e.min); }, I = (R) => { t.secondValue = R, e.range && S([f.value, c.value]); }, S = (R) => { r(Pe, R), r(gr, R); }, x = async () => { await Oe(), r(tn, e.range ? [f.value, c.value] : e.modelValue); }, T = (R) => { var z, X, _, A, k, Q; if (l.value || t.dragging) return; g(); let K = 0; if (e.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 Oe(), z.value.onButtonDown(R)); }, onSliderMarkerDown: (R) => { l.value || t.dragging || b(R); }, setFirstValue: O, setSecondValue: I }; }, { left: pb, down: vb, right: mb, up: hb, home: yb, end: gb, pageUp: bb, pageDown: wb } = Hr, Sb = (e, t, r) => { const n = N(), o = N(!1), a = w(() => t.value instanceof Function), i = w(() => a.value && t.value(e.modelValue) || e.modelValue), s = ta(() => { r.value && (o.value = !0); }, 50), u = ta(() => { r.value && (o.value = !1); }, 50); return { tooltip: n, tooltipVisible: o, formatValue: i, displayTooltip: s, hideTooltip: u }; }, Eb = (e, t, r) => { const { disabled: n, min: o, max: a, step: i, showTooltip: s, precision: u, sliderSize: l, formatTooltip: f, emitChange: c, resetSize: d, updateDragging: h } = ve(ku), { tooltip: v, tooltipVisible: m, formatValue: g, displayTooltip: y, hideTooltip: b } = Sb(e, f, s), O = N(), I = w(() => `${(e.modelValue - o.value) / (a.value - o.value) * 100}%`), S = w(() => e.vertical ? { bottom: I.value } : { left: I.value }), x = () => { t.hovering = !0, y(); }, T = () => { t.hovering = !1, 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 = !0; [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 = !1, 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 = !0, t.isClick = !0; const { clientX: j, clientY: Y } = k(M); e.vertical ? t.startY = Y : t.startX = j, t.startPosition = Number.parseFloat(I.value), t.newPosition = t.startPosition; }, K = (M) => { if (t.dragging) { t.isClick = !1, y(), d(); let j; const { clientX: Y, clientY: oe } = k(M); e.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 = !1, 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 !== e.modelValue && r(Pe, oe), !t.dragging && e.modelValue !== t.oldValue && (t.oldValue = e.modelValue), await Oe(), t.dragging && y(), v.value.updatePopper(); }; return ne(() => t.dragging, (M) => { h(M); }), je(O, "touchstart", V, { passive: !1 }), { disabled: n, button: O, tooltip: v, tooltipVisible: m, showTooltip: s, wrapperStyle: S, formatValue: g, handleMouseEnter: x, handleMouseLeave: T, onButtonDown: V, onKeyDown: A, setPosition: U }; }, Ob = (e, t, r, n) => ({ stops: w(() => { if (!e.showStops || e.min > e.max) return []; if (e.step === 0) return Ce("ElSlider", "step should not be 0."), []; const i = (e.max - e.min) / e.step, s = 100 * e.step / (e.max - e.min), u = Array.from({ length: i - 1 }).map((l, f) => (f + 1) * s); return e.range ? u.filter((l) => l < 100 * (r.value - e.min) / (e.max - e.min) || l > 100 * (n.value - e.min) / (e.max - e.min)) : u.filter((l) => l > 100 * (t.firstValue - e.min) / (e.max - e.min)); }), getStopStyle: (i) => e.vertical ? { bottom: `${i}%` } : { left: `${i}%` } }), Ab = (e, t, r, n, o, a) => { const i = (l) => { o(Pe, l), o(gr, l); }, s = () => e.range ? ![r.value, n.value].every((l, f) => l === t.oldValue[f]) : e.modelValue !== t.oldValue, u = () => { var l, f; e.min > e.max && Fa("Slider", "min should not be greater than max."); const c = e.modelValue; e.range && Array.isArray(c) ? c[1] < e.min ? i([e.min, e.min]) : c[0] > e.max ? i([e.max, e.max]) : c[0] < e.min ? i([e.min, c[1]]) : c[1] > e.max ? i([c[0], e.max]) : (t.firstValue = c[0], t.secondValue = c[1], s() && (e.validateEvent && ((l = a == null ? void 0 : a.validate) == null || l.call(a, "change").catch((d) => Ce(d))), t.oldValue = c.slice())) : !e.range && typeof c == "number" && !Number.isNaN(c) && (c < e.min ? i(e.min) : c > e.max ? i(e.max) : (t.firstValue = c, s() && (e.validateEvent && ((f = a == null ? void 0 : a.validate) == null || f.call(a, "change").catch((d) => Ce(d))), t.oldValue = c))); }; u(), ne(() => t.dragging, (l) => { l || u(); }), ne(() => e.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: !0 }), ne(() => [e.min, e.max], () => { u(); }); }, _b = we({ modelValue: { type: Number, default: 0 }, vertical: Boolean, tooltipClass: String, placement: { type: String, values: rn, default: "top" } }), Ib = { [Pe]: (e) => ge(e) }, Cb = Z({ name: "ElSliderButton" }), xb = /* @__PURE__ */ Z({ ...Cb, props: _b, emits: Ib, setup(e, { expose: t, emit: r }) { const n = e, o = be("slider"), a = mt({ hovering: !1, dragging: !1, isClick: !1, 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: h, handleMouseLeave: v, onButtonDown: m, onKeyDown: g, setPosition: y } = Eb(n, a, r), { hovering: b, dragging: O } = Er(a); return t({ onButtonDown: m, onKeyDown: g, setPosition: y, hovering: b, dragging: O }), (I, S) => (C(), D("div", { ref_key: "button", ref: s, class: L([p(o).e("button-wrapper"), { hover: p(b), dragging: p(O) }]), style: Ve(p(c)), tabindex: p(i) ? -1 : 0, onMouseenter: p(h), onMouseleave: p(v), onMousedown: p(m), onFocus: p(h), onBlur: p(v), onKeydown: p(g) }, [ pe(p(Cu), { ref_key: "tooltip", ref: u, visible: p(f), placement: I.placement, "fallback-placements": ["top", "bottom", "right", "left"], "stop-popper-mouse-event": !1, "popper-class": I.tooltipClass, disabled: !p(l), persistent: "" }, { content: ee(() => [ q("span", null, ke(p(d)), 1) ]), default: ee(() => [ q("div", { class: L([p(o).e("button"), { hover: p(b), dragging: p(O) }]) }, null, 2) ]), _: 1 }, 8, ["visible", "placement", "popper-class", "disabled"]) ], 46, ["tabindex", "onMouseenter", "onMouseleave", "onMousedown", "onFocus", "onBlur", "onKeydown"])); } }); var ks = /* @__PURE__ */ Se(xb, [["__file", "button.vue"]]); const Tb = we({ mark: { type: ie([String, Object]), default: void 0 } }); var Pb = Z({ name: "ElSliderMarker", props: Tb, setup(e) { const t = be("slider"), r = w(() => Qe(e.mark) ? e.mark : e.mark.label), n = w(() => Qe(e.mark) ? void 0 : e.mark.style); return () => Nr("div", { class: t.e("marks-text"), style: n.value }, r.value); } }); const $b = Z({ name: "ElSlider" }), Fb = /* @__PURE__ */ Z({ ...$b, props: lb, emits: ub, setup(e, { expose: t, emit: r }) { const n = e, o = be("slider"), { t: a } = go(), i = mt({ firstValue: 0, secondValue: 0, oldValue: 0, dragging: !1, sliderSize: 1 }), { elFormItem: s, slider: u, firstButton: l, secondButton: f, sliderDisabled: c, minValue: d, maxValue: h, 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, h), { inputId: H, isLabeledByFormItem: J } = qa(n, { formItemContext: s }), R = nn(), z = w(() => n.inputSize || R.value), X = w(() => n.ariaLabel || a("el.slider.defaultLabel", { min: n.min, max: n.max })), _ = w(() => n.range ? n.rangeStartLabel || a("el.slider.defaultRangeStartLabel") : X.value), A = w(() => n.formatValueText ? n.formatValueText(j.value) : `${j.value}`), k = w(() => n.rangeEndLabel || a("el.slider.defaultRangeEndLabel")), Q = w(() => n.formatValueText ? n.formatValueText(Y.value) : `${Y.value}`), K = w(() => [ o.b(), o.m(R.value), o.is("vertical", n.vertical), { [o.m("with-input")]: n.showInput } ]), P = cb(n); Ab(n, i, d, h, r, s); const U = w(() => { 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 } = Er(i), ae = (W) => { i.dragging = W; }; return je(M, "touchstart", b, { passive: !1 }), je(M, "touchmove", b, { passive: !1 }), at(ku, { ...Er(n), sliderSize: oe, disabled: c, precision: U, emitChange: y, resetSize: g, updateDragging: ae }), t({ onSliderClick: O }), (W, Ee) => { var Ae, _e; return C(), D("div", { id: W.range ? p(H) : void 0, ref_key: "sliderWrapper", ref: M, class: L(p(K)), role: W.range ? "group" : void 0, "aria-label": W.range && !p(J) ? p(X) : void 0, "aria-labelledby": W.range && p(J) ? (Ae = p(s)) == null ? void 0 : Ae.labelId : void 0 }, [ q("div", { ref_key: "slider", ref: u, class: L([ p(o).e("runway"), { "show-input": W.showInput && !W.range }, p(o).is("disabled", p(c)) ]), style: Ve(p(v)), onMousedown: p(I), onTouchstartPassive: p(I) }, [ q("div", { class: L(p(o).e("bar")), style: Ve(p(m)) }, null, 6), pe(ks, { id: W.range ? void 0 : p(H), ref_key: "firstButton", ref: l, "model-value": p(j), vertical: W.vertical, "tooltip-class": W.tooltipClass, placement: W.placement, role: "slider", "aria-label": W.range || !p(J) ? p(_) : void 0, "aria-labelledby": !W.range && p(J) ? (_e = p(s)) == null ? void 0 : _e.labelId : void 0, "aria-valuemin": W.min, "aria-valuemax": W.range ? p(Y) : W.max, "aria-valuenow": p(j), "aria-valuetext": p(A), "aria-orientation": W.vertical ? "vertical" : "horizontal", "aria-disabled": p(c), "onUpdate:modelValue": p(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 ? (C(), te(ks, { key: 0, ref_key: "secondButton", ref: f, "model-value": p(Y), vertical: W.vertical, "tooltip-class": W.tooltipClass, placement: W.placement, role: "slider", "aria-label": p(k), "aria-valuemin": p(j), "aria-valuemax": W.max, "aria-valuenow": p(Y), "aria-valuetext": p(Q), "aria-orientation": W.vertical ? "vertical" : "horizontal", "aria-disabled": p(c), "onUpdate:modelValue": p(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"])) : G("v-if", !0), W.showStops ? (C(), D("div", { key: 1 }, [ (C(!0), D(He, null, ir(p(V), (ue, he) => (C(), D("div", { key: he, class: L(p(o).e("stop")), style: Ve(p($)(ue)) }, null, 6))), 128)) ])) : G("v-if", !0), p(P).length > 0 ? (C(), D(He, { key: 2 }, [ q("div", null, [ (C(!0), D(He, null, ir(p(P), (ue, he) => (C(), D("div", { key: he, style: Ve(p($)(ue.position)), class: L([p(o).e("stop"), p(o).e("marks-stop")]) }, null, 6))), 128)) ]), q("div", { class: L(p(o).e("marks")) }, [ (C(!0), D(He, null, ir(p(P), (ue, he) => (C(), te(p(Pb), { key: he, mark: ue.mark, style: Ve(p($)(ue.position)), onMousedown: Ne((Te) => p(S)(ue.position), ["stop"]) }, null, 8, ["mark", "style", "onMousedown"]))), 128)) ], 2) ], 64)) : G("v-if", !0) ], 46, ["onMousedown", "onTouchstartPassive"]), W.showInput && !W.range ? (C(), te(p(Qa), { key: 0, ref: "input", "model-value": p(j), class: L(p(o).e("input")), step: W.step, disabled: p(c), controls: W.showInputControls, min: W.min, max: W.max, precision: p(U), debounce: W.debounce, size: p(z), "onUpdate:modelValue": p(x), onChange: p(y) }, null, 8, ["model-value", "class", "step", "disabled", "controls", "min", "max", "precision", "debounce", "size", "onUpdate:modelValue", "onChange"])) : G("v-if", !0) ], 10, ["id", "role", "aria-label", "aria-labelledby"]); }; } }); var Mb = /* @__PURE__ */ Se(Fb, [["__file", "slider.vue"]]); const Lu = lt(Mb); function Vb(e) { let t; const r = N(!1), n = mt({ ...e, originalPosition: "", originalOverflow: "", visible: !1 }); function o(d) { n.text = d; } function a() { const d = n.parent, h = 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, h.bm("parent", "relative")), d.removeAttribute("loading-number")), Qn(d, h.bm("parent", "hidden")); } i(), f.unmount(); } function i() { var d, h; (h = (d = c.$el) == null ? void 0 : d.parentNode) == null || h.removeChild(c.$el); } function s() { var d; e.beforeClose && !e.beforeClose() || (r.value = !0, clearTimeout(t), t = setTimeout(u, 400), n.visible = !1, (d = e.closed) == null || d.call(e)); } function u() { if (!r.value) return; const d = n.parent; r.value = !1, d.vLoadingAddClassList = void 0, a(); } const l = Z({ name: "ElLoading", setup(d, { expose: h }) { const { ns: v, zIndex: m } = _y("loading"); return h({ ns: v, zIndex: m }), () => { const g = n.spinner || n.svg, y = Nr("svg", { class: "circular", viewBox: n.svgViewBox ? n.svgViewBox : "0 0 50 50", ...g ? { innerHTML: g } : {} }, [ Nr("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none" }) ]), b = n.text ? Nr("p", { class: v.b("text") }, [n.text]) : void 0; return Nr(lo, { name: v.b("fade"), onAfterLeave: u }, { default: ee(() => [ We(pe("div", { style: { backgroundColor: n.background || "" }, class: [ v.b("mask"), n.customClass, n.fullscreen ? "is-fullscreen" : "" ] }, [ Nr("div", { class: v.b("spinner") }, [y, b]) ]), [[Bt, n.visible]]) ]) }); }; } }), f = ac(l), c = f.mount(document.createElement("div")); return { ...Er(n), setText: o, removeElLoadingChild: i, close: s, handleAfterLeave: u, vm: c, get $el() { return c.$el; } }; } let Bn; const fa = function(e = {}) { if (!Fe) return; const t = Rb(e); 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), Oe(() => r.visible.value = t.visible), t.fullscreen && (Bn = r), r; }, Rb = (e) => { var t, r, n, o; let a; return Qe(e.target) ? a = (t = document.querySelector(e.target)) != null ? t : document.body : a = e.target || document.body, { parent: a === document.body || e.body ? document.body : a, background: e.background || "", svg: e.svg || "", svgViewBox: e.svgViewBox || "", spinner: e.spinner || !1, text: e.text || "", fullscreen: a === document.body && ((r = e.fullscreen) != null ? r : !0), lock: (n = e.lock) != null ? n : !1, customClass: e.customClass || "", visible: (o = e.visible) != null ? o : !0, beforeClose: e.beforeClose, closed: e.closed, target: a }; }, Nb = async (e, t, r) => { const { nextZIndex: n } = r.vm.zIndex || r.vm._.exposed.zIndex, o = {}; if (e.fullscreen) r.originalPosition.value = ln(document.body, "position"), r.originalOverflow.value = ln(document.body, "overflow"), o.zIndex = n(); else if (e.parent === document.body) { r.originalPosition.value = ln(document.body, "position"), await Oe(); for (const a of ["top", "left"]) { const i = a === "top" ? "scrollTop" : "scrollLeft"; o[a] = `${e.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] = `${e.target.getBoundingClientRect()[a]}px`; } else r.originalPosition.value = ln(t, "position"); for (const [a, i] of Object.entries(o)) r.$el.style[a] = i; }, Ls = (e, 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")), e.fullscreen && e.lock ? ns(t, n.bm("parent", "hidden")) : Qn(t, n.bm("parent", "hidden")); }, Kn = Symbol("ElLoading"), zs = (e, t) => { var r, n, o, a; const i = t.instance, s = (d) => Ge(t.value) ? t.value[d] : void 0, u = (d) => { const h = Qe(d) && (i == null ? void 0 : i[d]) || d; return h && N(h); }, l = (d) => u(s(d) || e.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 : e, body: (o = s("body")) != null ? o : t.modifiers.body, lock: (a = s("lock")) != null ? a : t.modifiers.lock }; e[Kn] = { options: c, instance: fa(c) }; }, kb = (e, t) => { for (const r of Object.keys(t)) hl(t[r]) && (t[r].value = e[r]); }, ca = { mounted(e, t) { t.value && zs(e, t); }, updated(e, t) { const r = e[Kn]; t.oldValue !== t.value && (t.value && !t.oldValue ? zs(e, t) : t.value && t.oldValue ? Ge(t.value) && kb(t.value, r.options) : r == null || r.instance.close()); }, unmounted(e) { var t; (t = e[Kn]) == null || t.instance.close(), e[Kn] = null; } }, Lb = { install(e) { e.directive("loading", ca), e.config.globalProperties.$loading = fa; }, directive: ca, service: fa }, zu = "simcore/services/comp/opencor"; function Bu(e, t, r) { if (t !== void 0) { let n = new RegExp(`\\b${t}\\b`, "g"); e = e.replace(n, r); } return e; } function da(e, t) { let r = -1; return e.simulationUiInfo.input.forEach((n) => { ++r, t = Bu(t, n.id, e.$refs.simInput[r].vModel); }), Function("return " + t + ";")(); } function Bs(e, t, r, n) { return e.simulationUiInfo.output.data.forEach((o) => { r = Bu(r, o.id, t[e.simulationDataId[o.id]][n]); }), Function("return " + r + ";")(); } function zb(e) { e.simulationUiInfo.output.data.forEach((r) => { e.simulationDataId[r.id] = r.name; }); let t = -1; e.simulationUiInfo.output.plots.forEach((r) => { ++t, e.layout[t] = { paper_bgcolor: "rgba(0, 0, 0, 0)", plot_bgcolor: "rgba(0, 0, 0, 0)", autosize: !0, margin: { t: 25, l: 55, r: 25, b: 30, pad: 4 }, loading: !1, options: { responsive: !0, scrollZoom: !0 }, dragmode: "pan", xaxis: { title: { text: r.xAxisTitle, font: { size: 10 } } }, yaxis: { title: { text: r.yAxisTitle, font: { size: 10 } } } }, e.simulationData[t] = [{}]; }); } function Ds(e) { !e.hasFinalisedUi && e.isMounted && e.hasValidSimulationUiInfo && (e.$refs.output.classList.add("x" + e.simulationUiInfo.output.plots.length), Du(e), e.hasFinalisedUi = !0); } function Du(e) { e.$nextTick(() => { let t = -1; e.simulationUiInfo.input.forEach((r) => { ++t, e.$refs.simInput[t].visible = r.visible === void 0 ? !0 : da(e, r.visible); }); }); } const Uu = (e, t) => { const r = e.__vccOpts || e; for (const [n, o] of t) r[n] = o; return r; }, Bb = { name: "SimulationVuerInput", components: { ElInputNumber: Qa, ElOption: Nu, ElSelect: Ru, ElSlider: Lu }, props: { defaultValue: { required: !0, type: Number }, maximumValue: { type: Number }, minimumValue: { type: Number }, name: { required: !0, 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: !0, vModel: this.defaultValue }; }, methods: { updateUi: function() { Du(this.$parent); } } }, Db = { key: 1, class: "sliders-and-fields" }; function Ub(e, t, r, n, o, a) { const i = Nu, s = Ru, u = Lu, l = Qa; return We((C(), D("div", null, [ q("p", { class: L(e.labelClasses) }, ke(r.name), 3), e.isDiscrete ? (C(), te(s, { key: 0, class: "discrete", "popper-class": "discrete-popper", size: "small", modelValue: e.vModel, "onUpdate:modelValue": t[0] || (t[0] = (f) => e.vModel = f), teleported: !1, onChange: t[1] || (t[1] = (f) => a.updateUi()) }, { default: ee(() => [ (C(!0), D(He, null, ir(r.possibleValues, (f) => (C(), te(i, { key: f.value, label: f.name, value: f.value }, null, 8, ["label", "value"]))), 128)) ]), _: 1 }, 8, ["modelValue"])) : G("", !0), e.isDiscrete ? G("", !0) : (C(), D("div", Db, [ pe(u, { modelValue: e.vModel, "onUpdate:modelValue": t[2] || (t[2] = (f) => e.vModel = f), max: r.maximumValue, min: r.minimumValue, "show-input": !1, "show-tooltip": !1, step: r.stepValue, onChange: t[3] || (t[3] = (f) => a.updateUi()) }, null, 8, ["modelValue", "max", "min", "step"]), pe(l, { class: "scalar", size: "small", modelValue: e.vModel, "onUpdate:modelValue": t[4] || (t[4] = (f) => e.vModel = f), controls: !1, max: r.maximumValue, min: r.minimumValue, step: r.stepValue, "step-strictly": !0, onInput: t[5] || (t[5] = (f) => a.updateUi()) }, null, 8, ["modelValue", "max", "min", "step"]) ])) ], 512)), [ [Bt, e.visible] ]); } const ju = /* @__PURE__ */ Uu(Bb, [["render", Ub], ["__scopeId", "data-v-7ce06b79"]]); var ur = {}, no = { exports: {} }; /*! https://mths.be/punycode v1.4.1 by @mathias */ no.exports; (function(e, t) { (function(r) { var n = t && !t.nodeType && t, o = e && !e.nodeType && e, 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, h = 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 = h, 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 = h, 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 * @memberOf punycode * @type Object */ ucs2: { decode: J, encode: R }, decode: A, encode: k, toASCII: K, toUnicode: Q }, n && o) if (e.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, Hb = Error, Wb = EvalError, qb = RangeError, Kb = ReferenceError, Hu = SyntaxError, Cn = TypeError, Zb = URIError, Gb = function() { if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1; if (typeof Symbol.iterator == "symbol") return !0; 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 !1; var o = 42; t[r] = o; for (r in t) return !1; if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0) return !1; var a = Object.getOwnPropertySymbols(t); if (a.length !== 1 || a[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { var i = Object.getOwnPropertyDescriptor(t, r); if (i.value !== o || i.enumerable !== !0) return !1; } return !0; }, Us = typeof Symbol < "u" && Symbol, Jb = Gb, Yb = function() { return typeof Us != "function" || typeof Symbol != "function" || typeof Us("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Jb(); }, Lo = { __proto__: null, foo: {} }, Xb = Object, Qb = function() { return { __proto__: Lo }.foo === Lo.foo && !(Lo instanceof Xb); }, e1 = "Function.prototype.bind called on incompatible ", t1 = Object.prototype.toString, r1 = Math.max, n1 = "[object Function]", 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; }, o1 = function(t, r) { for (var n = [], o = r, a = 0; o < t.length; o += 1, a += 1) n[a] = t[o]; return n; }, a1 = function(e, t) { for (var r = "", n = 0; n < e.length; n += 1) r += e[n], n + 1 < e.length && (r += t); return r; }, 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; }, s1 = i1, ti = Function.prototype.bind || s1, l1 = Function.prototype.call, u1 = Object.prototype.hasOwnProperty, f1 = ti, c1 = f1.call(l1, u1), le, d1 = Hb, p1 = Wb, v1 = qb, m1 = Kb, Yr = Hu, Br = Cn, h1 = Zb, Wu = Function, zo = function(e) { try { return Wu('"use strict"; return (' + e + ").constructor;")(); } catch { } }, wr = Object.getOwnPropertyDescriptor; if (wr) try { wr({}, ""); } catch { wr = null; } var Bo = function() { throw new Br(); }, y1 = wr ? function() { try { return arguments.callee, Bo; } catch { try { return wr(arguments, "callee").get; } catch { return Bo; } } }() : Bo, Vr = Yb(), g1 = Qb(), Me = Object.getPrototypeOf || (g1 ? function(e) { return e.__proto__; } : null), Lr = {}, b1 = typeof Uint8Array > "u" || !Me ? le : Me(Uint8Array), 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 (e) { var w1 = Me(Me(e)); Sr["%Error.prototype%"] = 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; }, 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"] }, xn = ti, oo = c1, E1 = xn.call(Function.call, Array.prototype.concat), O1 = xn.call(Function.apply, Array.prototype.splice), Ws = xn.call(Function.call, String.prototype.replace), ao = xn.call(Function.call, String.prototype.slice), A1 = xn.call(Function.call, RegExp.prototype.exec), _1 = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, I1 = /\\(\\)?/g, 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; }, 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!"); }, 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 = !1, l = a.alias; l && (o = l[0], O1(n, E1([0, 1], l))); for (var f = 1, c = !0; f < n.length; f += 1) { var d = n[f], h = ao(d, 0, 1), v = ao(d, -1); if ((h === '"' || h === "'" || h === "`" || v === '"' || v === "'" || v === "`") && h !== v) throw new Yr("property names with quotes must have matching quotes"); if ((d === "constructor" || !c) && (u = !0), 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; }, qu = { exports: {} }, Do, qs; function ri() { if (qs) return Do; qs = 1; var e = on, t = e("%Object.defineProperty%", !0) || !1; if (t) try { t({}, "a", { value: 1 }); } catch { t = !1; } return Do = t, Do; } var T1 = on, Zn = T1("%Object.getOwnPropertyDescriptor%", !0); if (Zn) try { Zn([], "length"); } catch { Zn = null; } var Ku = Zn, Ks = ri(), P1 = Hu, Rr = Cn, Zs = Ku, $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] : !1, 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."); }, pa = ri(), Zu = function() { return !!pa; }; Zu.hasArrayLengthDefineBug = function() { if (!pa) return null; try { return pa([], "length", { value: 1 }).length !== 1; } catch { return !0; } }; var F1 = Zu, M1 = on, Gs = $1, V1 = F1(), Js = Ku, Ys = Cn, R1 = M1("%Math.floor%"), 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 = !0, a = !0; if ("length" in t && Js) { var i = Js(t, "length"); i && !i.configurable && (o = !1), i && !i.writable && (a = !1); } return (o || a || !n) && (V1 ? Gs( /** @type {Parameters[0]} */ t, "length", r, !0, !0 ) : Gs( /** @type {Parameters[0]} */ t, "length", r )), t; }; (function(e) { var t = ti, r = on, n = N1, o = Cn, a = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), s = r("%Reflect.apply%", !0) || t.call(i, a), u = ri(), l = r("%Math.max%"); e.exports = function(d) { if (typeof d != "function") throw new o("a function is required"); var h = s(t, i, arguments); return n( h, 1 + l(0, d.length - (arguments.length - 1)), !0 ); }; var f = function() { return s(t, a, arguments); }; u ? u(e.exports, "apply", { value: f }) : e.exports.apply = f; })(qu); var k1 = qu.exports, Gu = on, Ju = k1, L1 = Ju(Gu("String.prototype.indexOf")), z1 = function(t, r) { var n = Gu(t, !!r); return typeof n == "function" && L1(t, ".prototype.") > -1 ? Ju(n) : n; }; const B1 = {}, D1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: B1 }, Symbol.toStringTag, { value: "Module" })), U1 = /* @__PURE__ */ T0(D1); var ni = typeof Map == "function" && Map.prototype, Uo = Object.getOwnPropertyDescriptor && ni ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, io = ni && Uo && typeof Uo.get == "function" ? Uo.get : null, Xs = ni && Map.prototype.forEach, oi = typeof Set == "function" && Set.prototype, jo = Object.getOwnPropertyDescriptor && oi ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, so = oi && jo && typeof jo.get == "function" ? jo.get : null, Qs = oi && Set.prototype.forEach, j1 = typeof WeakMap == "function" && WeakMap.prototype, vn = j1 ? WeakMap.prototype.has : null, H1 = typeof WeakSet == "function" && WeakSet.prototype, mn = H1 ? WeakSet.prototype.has : null, W1 = typeof WeakRef == "function" && WeakRef.prototype, el = W1 ? WeakRef.prototype.deref : null, q1 = Boolean.prototype.valueOf, K1 = Object.prototype.toString, Z1 = Function.prototype.toString, G1 = String.prototype.match, ai = String.prototype.slice, or = String.prototype.replace, J1 = String.prototype.toUpperCase, tl = String.prototype.toLowerCase, Yu = RegExp.prototype.test, rl = Array.prototype.concat, Et = Array.prototype.join, Y1 = Array.prototype.slice, nl = Math.floor, va = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ho = Object.getOwnPropertySymbols, ma = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Xr = typeof Symbol == "function" && typeof Symbol.iterator == "object", De = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Xr || !0) ? Symbol.toStringTag : null, Xu = Object.prototype.propertyIsEnumerable, ol = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(e) { return e.__proto__; } : null); function al(e, t) { if (e === 1 / 0 || e === -1 / 0 || e !== e || e && e > -1e3 && e < 1e3 || Yu.call(/e/, t)) return t; var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; if (typeof e == "number") { var n = e < 0 ? -nl(-e) : nl(e); if (n !== e) { 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, il = ha.custom, sl = ef(il) ? il : null, X1 = function e(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 : !0; 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), e(z, A, n + 1, o); } return e(z, a, n + 1, o); } if (typeof t == "function" && !ll(t)) { var h = sw(t), v = Dn(t, d); return "[Function" + (h ? ": " + h : " (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 += "", 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, !0) + " => " + 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(e, t, r) { var n = (r.quoteStyle || t) === "double" ? '"' : "'"; return n + e + n; } function Q1(e) { return or.call(String(e), /"/g, """); } function ya(e) { return fr(e) === "[object Array]" && (!De || !(typeof e == "object" && De in e)); } function ew(e) { return fr(e) === "[object Date]" && (!De || !(typeof e == "object" && De in e)); } function ll(e) { return fr(e) === "[object RegExp]" && (!De || !(typeof e == "object" && De in e)); } function tw(e) { return fr(e) === "[object Error]" && (!De || !(typeof e == "object" && De in e)); } function rw(e) { return fr(e) === "[object String]" && (!De || !(typeof e == "object" && De in e)); } function nw(e) { return fr(e) === "[object Number]" && (!De || !(typeof e == "object" && De in e)); } function ow(e) { return fr(e) === "[object Boolean]" && (!De || !(typeof e == "object" && De in e)); } function ef(e) { if (Xr) return e && typeof e == "object" && e instanceof Symbol; if (typeof e == "symbol") return !0; if (!e || typeof e != "object" || !ma) return !1; try { return ma.call(e), !0; } catch { } return !1; } function aw(e) { if (!e || typeof e != "object" || !va) return !1; try { return va.call(e), !0; } catch { } return !1; } var iw = Object.prototype.hasOwnProperty || function(e) { return e in this; }; function tr(e, t) { return iw.call(e, t); } function fr(e) { return K1.call(e); } function sw(e) { if (e.name) return e.name; var t = G1.call(Z1.call(e), /^function\s*([\w$]+)/); return t ? t[1] : null; } function tf(e, t) { if (e.indexOf) return e.indexOf(t); for (var r = 0, n = e.length; r < n; r++) if (e[r] === t) return r; return -1; } function lw(e) { if (!io || !e || typeof e != "object") return !1; try { io.call(e); try { so.call(e); } catch { return !0; } return e instanceof Map; } catch { } return !1; } function uw(e) { if (!vn || !e || typeof e != "object") return !1; try { vn.call(e, vn); try { mn.call(e, mn); } catch { return !0; } return e instanceof WeakMap; } catch { } return !1; } function fw(e) { if (!el || !e || typeof e != "object") return !1; try { return el.call(e), !0; } catch { } return !1; } function cw(e) { if (!so || !e || typeof e != "object") return !1; try { so.call(e); try { io.call(e); } catch { return !0; } return e instanceof Set; } catch { } return !1; } function dw(e) { if (!mn || !e || typeof e != "object") return !1; try { mn.call(e, mn); try { vn.call(e, vn); } catch { return !0; } return e instanceof WeakSet; } catch { } return !1; } function pw(e) { return !e || typeof e != "object" ? !1 : typeof HTMLElement < "u" && e instanceof HTMLElement ? !0 : typeof e.nodeName == "string" && typeof e.getAttribute == "function"; } function rf(e, t) { if (e.length > t.maxStringLength) { var r = e.length - t.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : ""); return rf(ai.call(e, 0, t.maxStringLength), t) + n; } var o = or.call(or.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, vw); return Qu(o, "single", t); } function vw(e) { var t = e.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(e) { return "Object(" + e + ")"; } function Wo(e) { return e + " { ? }"; } function ul(e, t, r, n) { var o = n ? ga(r, n) : Et.call(r, ", "); return e + " (" + t + ") {" + o + "}"; } function mw(e) { for (var t = 0; t < e.length; t++) if (tf(e[t], ` `) >= 0) return !1; return !0; } function hw(e, t) { var r; if (e.indent === " ") r = " "; else if (typeof e.indent == "number" && e.indent > 0) r = Et.call(Array(e.indent + 1), " "); else return null; return { base: r, prev: Et.call(Array(t + 1), r) }; } function ga(e, t) { if (e.length === 0) return ""; var r = ` ` + t.prev + t.base; return r + Et.call(e, "," + r) + ` ` + t.prev; } function Dn(e, t) { var r = ya(e), n = []; if (r) { n.length = e.length; for (var o = 0; o < e.length; o++) n[o] = tr(e, o) ? t(e[o], e) : ""; } var a = typeof Ho == "function" ? Ho(e) : [], i; if (Xr) { i = {}; for (var s = 0; s < a.length; s++) i["$" + a[s]] = a[s]; } for (var u in e) tr(e, u) && (r && String(Number(u)) === u && u < e.length || Xr && i["$" + u] instanceof Symbol || (Yu.call(/[^\w$]/, u) ? n.push(t(u, e) + ": " + t(e[u], e)) : n.push(u + ": " + t(e[u], e)))); if (typeof Ho == "function") for (var l = 0; l < a.length; l++) Xu.call(e, a[l]) && n.push("[" + t(a[l]) + "]: " + t(e[a[l]], e)); return n; } var nf = on, an = z1, yw = X1, gw = Cn, Un = nf("%WeakMap%", !0), jn = nf("%Map%", !0), bw = an("WeakMap.prototype.get", !0), ww = an("WeakMap.prototype.set", !0), Sw = an("WeakMap.prototype.has", !0), Ew = an("Map.prototype.get", !0), Ow = an("Map.prototype.set", !0), Aw = an("Map.prototype.has", !0), ii = function(e, t) { for (var r = e, n; (n = r.next) !== null; r = n) if (n.key === t) return r.next = n.next, n.next = /** @type {NonNullable} */ e.next, e.next = n, n; }, _w = function(e, t) { var r = ii(e, t); return r && r.value; }, Iw = function(e, t, r) { var n = ii(e, t); n ? n.value = r : e.next = /** @type {import('.').ListNode} */ { // eslint-disable-line no-param-reassign, no-extra-parens key: t, next: e.next, value: r }; }, Cw = function(e, t) { return !!ii(e, t); }, 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 !1; }, 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; }, Tw = String.prototype.replace, Pw = /%20/g, qo = { RFC1738: "RFC1738", RFC3986: "RFC3986" }, si = { default: qo.RFC3986, formatters: { RFC1738: function(e) { return Tw.call(e, Pw, "+"); }, RFC3986: function(e) { return String(e); } }, RFC1738: qo.RFC1738, RFC3986: qo.RFC3986 }, $w = si, Ko = Object.prototype.hasOwnProperty, mr = Array.isArray, wt = function() { for (var e = [], t = 0; t < 256; ++t) e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()); return e; }(), 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; } } }, 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; }, Mw = function e(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] = !0); 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] = e(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] = e(a[i], s, n) : a[i] = s, a; }, o); }, Vw = function(t, r) { return Object.keys(r).reduce(function(n, o) { return n[o] = r[o], n; }, t); }, Rw = function(e, t, r) { var n = e.replace(/\+/g, " "); if (r === "iso-8859-1") return n.replace(/%[0-9a-f]{2}/gi, unescape); try { return decodeURIComponent(n); } catch { return n; } }, 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; }, 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; }, Lw = function(t) { return Object.prototype.toString.call(t) === "[object RegExp]"; }, zw = function(t) { return !t || typeof t != "object" ? !1 : !!(t.constructor && t.constructor.isBuffer && t.constructor.isBuffer(t)); }, Bw = function(t, r) { return [].concat(t, r); }, 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); }, af = { arrayToObject: of, assign: Vw, combine: Bw, compact: kw, decode: Rw, encode: Nw, isBuffer: zw, isRegExp: Lw, maybeMap: Dw, merge: Mw }, sf = xw, Gn = af, hn = si, Uw = Object.prototype.hasOwnProperty, lf = { brackets: function(t) { return t + "[]"; }, comma: "comma", indices: function(t, r) { return t + "[" + r + "]"; }, repeat: function(t) { return t; } }, St = Array.isArray, jw = Array.prototype.push, uf = function(e, t) { jw.apply(e, St(t) ? t : [t]); }, Hw = Date.prototype.toISOString, fl = hn.default, $e = { addQueryPrefix: !1, allowDots: !1, allowEmptyArrays: !1, arrayFormat: "indices", charset: "utf-8", charsetSentinel: !1, delimiter: "&", encode: !0, encodeDotInKeys: !1, encoder: Gn.encode, encodeValuesOnly: !1, format: fl, formatter: hn.formatters[fl], // deprecated indices: !1, serializeDate: function(t) { return Hw.call(t); }, skipNulls: !1, strictNullHandling: !1 }, Ww = function(t) { return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "symbol" || typeof t == "bigint"; }, Zo = {}, qw = function e(t, r, n, o, a, i, s, u, l, f, c, d, h, v, m, g, y, b) { for (var O = t, I = b, S = 0, x = !1; (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 = !0; } typeof I.get(Zo) > "u" && (S = 0); } if (typeof f == "function" ? O = f(r, O) : O instanceof Date ? O = h(O) : n === "comma" && St(O) && (O = Gn.maybeMap(O, function(P) { return P instanceof Date ? h(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($, e( A, Q, n, o, a, i, s, u, n === "comma" && g && St(O) ? null : l, f, c, d, h, v, m, g, y, K )); } } return $; }, 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 === !0 ? !0 : $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 }; }, Zw = function(e, t) { var r = e, 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), h = n.addQueryPrefix === !0 ? "?" : ""; return n.charsetSentinel && (n.charset === "iso-8859-1" ? h += "utf8=%26%2310003%3B&" : h += "utf8=%E2%9C%93&"), d.length > 0 ? h + d : ""; }, Qr = af, ba = Object.prototype.hasOwnProperty, Gw = Array.isArray, Ie = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !0, decoder: Qr.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictNullHandling: !1 }, Jw = function(e) { return e.replace(/&#(\d+);/g, function(t, r) { return String.fromCharCode(parseInt(r, 10)); }); }, ff = function(e, t) { return e && typeof e == "string" && t.comma && e.indexOf(",") > -1 ? e.split(",") : e; }, Yw = "utf8=%26%2310003%3B", Xw = "utf8=%E2%9C%93", 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, h, v; d === -1 ? (h = r.decoder(f, Ie.decoder, l, "key"), v = r.strictNullHandling ? null : "") : (h = 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, h); m && r.duplicates === "combine" ? n[h] = Qr.combine(n[h], v) : (!m || r.duplicates === "last") && (n[h] = v); } return n; }, eS = function(e, t, r, n) { for (var o = n ? t : ff(t, r), a = e.length - 1; a >= 0; --a) { var i, s = e[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; }, 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); } }, 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 === !0 ? !0 : 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 === !1 ? +t.depth : Ie.depth, duplicates: n, ignoreQueryPrefix: t.ignoreQueryPrefix === !0, interpretNumericEntities: typeof t.interpretNumericEntities == "boolean" ? t.interpretNumericEntities : Ie.interpretNumericEntities, parameterLimit: typeof t.parameterLimit == "number" ? t.parameterLimit : Ie.parameterLimit, parseArrays: t.parseArrays !== !1, plainObjects: typeof t.plainObjects == "boolean" ? t.plainObjects : Ie.plainObjects, strictNullHandling: typeof t.strictNullHandling == "boolean" ? t.strictNullHandling : Ie.strictNullHandling }; }, nS = function(e, t) { var r = rS(t); if (e === "" || e === null || typeof e > "u") return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}; for (var n = typeof e == "string" ? Qw(e, r) : e, 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 e == "string"); o = Qr.merge(o, u, r); } return r.allowSparse === !0 ? o : Qr.compact(o); }, oS = Zw, aS = nS, iS = si, sS = { formats: iS, parse: aS, stringify: oS }, 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, fS = /:[0-9]*$/, cS = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, dS = [ "<", ">", '"', "`", " ", "\r", ` `, " " ], pS = [ "{", "}", "|", "\\", "^", "`" ].concat(dS), wa = ["'"].concat(pS), cl = [ "%", "/", "?", ";", "#" ].concat(wa), dl = [ "/", "?", "#" ], vS = 255, pl = /^[+a-z0-9A-Z_-]{0,63}$/, mS = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, hS = { javascript: !0, "javascript:": !0 }, Sa = { javascript: !0, "javascript:": !0 }, Dr = { http: !0, https: !0, ftp: !0, gopher: !0, file: !0, "http:": !0, "https:": !0, "ftp:": !0, "gopher:": !0, "file:": !0 }, Ea = sS; function Tn(e, t, r) { if (e && typeof e == "object" && e instanceof ot) return e; var n = new ot(); return n.parse(e, t, r), n; } ot.prototype.parse = function(e, t, r) { if (typeof e != "string") throw new TypeError("Parameter 'url' must be a string, not " + typeof e); var n = e.indexOf("?"), o = n !== -1 && n < e.indexOf("#") ? "?" : "#", a = e.split(o), i = /\\/g; a[0] = a[0].replace(i, "/"), e = a.join(o); var s = e; if (s = s.trim(), !r && e.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 = !0); } if (!Sa[l] && (c || l && !Dr[l])) { for (var d = -1, h = 0; h < dl.length; h++) { var v = s.indexOf(dl[h]); 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 h = 0; h < cl.length; h++) { var v = s.indexOf(cl[h]); 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(/\./), h = 0, O = b.length; h < O; h++) { var I = b[h]; 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, h), $ = b.slice(h + 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 h = 0, O = wa.length; h < O; h++) { var z = wa[h]; 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(e) { return typeof e == "string" && (e = Tn(e)), e instanceof ot ? e.format() : ot.prototype.format.call(e); } ot.prototype.format = function() { var e = this.auth || ""; e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@"); var t = this.protocol || "", r = this.pathname || "", n = this.hash || "", o = !1, a = ""; this.host ? o = e + this.host : this.hostname && (o = e + (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: !1 })); var i = this.search || a && "?" + a || ""; return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || Dr[t]) && o !== !1 ? (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(e, t) { return Tn(e, !1, !0).resolve(t); } ot.prototype.resolve = function(e) { return this.resolveObject(Tn(e, !1, !0)).format(); }; function bS(e, t) { return e ? Tn(e, !1, !0).resolveObject(t) : t; } ot.prototype.resolveObject = function(e) { if (typeof e == "string") { var t = new ot(); t.parse(e, !1, !0), e = 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 = e.hash, e.href === "") return r.href = r.format(), r; if (e.slashes && !e.protocol) { for (var i = Object.keys(e), s = 0; s < i.length; s++) { var u = i[s]; u !== "protocol" && (r[u] = e[u]); } return Dr[r.protocol] && r.hostname && !r.pathname && (r.pathname = "/", r.path = r.pathname), r.href = r.format(), r; } if (e.protocol && e.protocol !== r.protocol) { if (!Dr[e.protocol]) { for (var l = Object.keys(e), f = 0; f < l.length; f++) { var c = l[f]; r[c] = e[c]; } return r.href = r.format(), r; } if (r.protocol = e.protocol, !e.host && !Sa[e.protocol]) { for (var O = (e.pathname || "").split("/"); O.length && !(e.host = O.shift()); ) ; e.host || (e.host = ""), e.hostname || (e.hostname = ""), O[0] !== "" && O.unshift(""), O.length < 2 && O.unshift(""), r.pathname = O.join("/"); } else r.pathname = e.pathname; if (r.search = e.search, r.query = e.query, r.host = e.host || "", r.auth = e.auth, r.hostname = e.hostname || e.host, r.port = e.port, r.pathname || r.search) { var d = r.pathname || "", h = r.search || ""; r.path = d + h; } return r.slashes = r.slashes || e.slashes, r.href = r.format(), r; } var v = r.pathname && r.pathname.charAt(0) === "/", m = e.host || e.pathname && e.pathname.charAt(0) === "/", g = m || v || r.host && e.pathname, y = g, b = r.pathname && r.pathname.split("/") || [], O = e.pathname && e.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 = "", e.protocol && (e.hostname = null, e.port = null, e.host && (O[0] === "" ? O[0] = e.host : O.unshift(e.host)), e.host = null), g = g && (O[0] === "" || b[0] === "")), m) r.host = e.host || e.host === "" ? e.host : r.host, r.hostname = e.hostname || e.hostname === "" ? e.hostname : r.hostname, r.search = e.search, r.query = e.query, b = O; else if (O.length) b || (b = []), b.pop(), b = b.concat(O), r.search = e.search, r.query = e.query; else if (e.search != null) { if (I) { r.host = b.shift(), r.hostname = r.host; var S = r.host && r.host.indexOf("@") > 0 ? r.host.split("@") : !1; S && (r.auth = S.shift(), r.hostname = S.shift(), r.host = r.hostname); } return r.search = e.search, r.query = e.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 || e.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("@") : !1; 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 = e.auth || r.auth, r.slashes = r.slashes || e.slashes, r.href = r.format(), r; }; ot.prototype.parseHost = function() { var e = this.host, t = fS.exec(e); t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e); }; ur.parse = Tn; ur.resolve = gS; ur.resolveObject = bS; ur.format = yS; ur.Url = ot; var xe = {}, cf = ur, 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 === !0; }; 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(e, t) { return t + ": " + e.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(e) { Error.captureStackTrace && Error.captureStackTrace(this, Ar), this.instance = e.instance, this.schema = e.schema, this.options = e.options, this.errors = e.errors; } Ar.prototype = new Error(); Ar.prototype.constructor = Ar; Ar.prototype.name = "Validation Error"; var vl = xe.SchemaError = function e(t, r) { this.message = t, this.schema = r, Error.call(this, t), Error.captureStackTrace(this, e); }; vl.prototype = Object.create( Error.prototype, { constructor: { value: vl, enumerable: !1 }, name: { value: "SchemaError", enumerable: !1 } } ); 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(e) { return typeof e == "string" && parseFloat(e) === parseInt(e, 10) && !isNaN(e); }, // 7.3.8. regex regex: function(e) { var t = !0; try { new RegExp(e); } catch { t = !1; } 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 !0; }; 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 e(t, r) { if (typeof t != typeof r) return !1; if (Array.isArray(t)) return !Array.isArray(r) || t.length !== r.length ? !1 : t.every(function(a, i) { return e(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 ? !1 : n.every(function(a) { return e(t[a], r[a]); }); } return t === r; }; function SS(e, t, r, n) { typeof r == "object" ? t[n] = li(e[n], r) : e.indexOf(r) === -1 && t.push(r); } function ES(e, t, r) { t[r] = e[r]; } function OS(e, t, r, n) { typeof t[n] != "object" || !t[n] ? r[n] = t[n] : e[n] ? r[n] = li(e[n], t[n]) : r[n] = t[n]; } function li(e, t) { var r = Array.isArray(t), n = r && [] || {}; return r ? (e = e || [], n = n.concat(e), t.forEach(SS.bind(null, e, n))) : (e && typeof e == "object" && Object.keys(e).forEach(ES.bind(null, e, n)), Object.keys(t).forEach(OS.bind(null, e, 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(e) { return "/" + encodeURIComponent(e).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, fe = et.ValidatorResult, cr = et.SchemaError, ui = {}; ui.ignoreProperties = { // informative properties id: !0, default: !0, description: !0, title: !0, // arguments to other properties additionalItems: !0, then: !0, else: !0, // special-handled properties $schema: !0, $ref: !0, extends: !0 }; 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(e, t, r, n, o) { var a = t.throwError, i = t.throwAll; t.throwError = !1, t.throwAll = !1; var s = this.validateSchema(e, 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(e, t) { if (Object.hasOwnProperty.call(e, t)) return e[t]; if (t in e) { for (; e = Object.getPrototypeOf(e); ) if (Object.propertyIsEnumerable.call(e, t)) return e[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(e, t, r, n, o, a) { if (this.types.object(e) && !(t.properties && t.properties[o] !== void 0)) if (t.additionalProperties === !1) 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(e, o, i, r, n); var s = this.validateSchema(e[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 = !0; 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 = !1, 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 !0; if (l === !1) return i.addError({ name: "items", message: "additionalItems not permitted" }), !1; 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), !0; }), 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 === !1 && 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 === !0 ? 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 === !0 ? 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 === !0 ? 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(e, t, r) { var n, o = r.length; for (n = t + 1, o; n < o; n++) if (et.deepCompareStrict(e, r[n])) return !1; return !0; } ce.uniqueItems = function(t, r, n, o) { if (r.uniqueItems === !0 && 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, di = {}, ml = ur, CS = xe; di.SchemaScanResult = mf; function mf(e, t) { this.id = e, 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, yf = IS, xr = xe, gf = di.scan, bf = xr.ValidatorResult, xS = xr.ValidatorResultError, En = xr.SchemaError, wf = xr.SchemaContext, Sf = "/", Re = function e() { this.customFormats = Object.create(e.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(e) { var t = typeof e == "string" ? e : e.$ref; return typeof t == "string" ? t : !1; } Re.prototype.validateSchema = function(t, r, n, o) { var a = new bf(t, r, n, o); if (typeof r == "boolean") r === !0 ? r = {} : r === !1 && (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, h = this.attributes[c]; if (h) d = h.call(this, t, r, n, o); else if (n.allowUnknownAttributes === !1) 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 !0; } }; 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 !0; }; Tt.object = function(t) { return t && typeof t == "object" && !Array.isArray(t) && !(t instanceof Date); }; var TS = Re, Of; Of = TS; xe.ValidatorResult; xe.ValidatorResultError; xe.ValidationError; xe.SchemaError; function PS(e) { let t = new Of(), r = { additionalProperties: !1, properties: { input: { items: { oneOf: [ { additionalProperties: !1, properties: { defaultValue: { required: !0, type: "number" }, id: { type: "string" }, name: { required: !0, type: "string" }, possibleValues: { items: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "number" } }, type: "object" }, minItems: 1, required: !0, type: "array" }, visible: { type: "string" } } }, { additionalProperties: !1, properties: { defaultValue: { required: !0, type: "number" }, id: { type: "string" }, maximumValue: { required: !0, type: "number" }, minimumValue: { required: !0, type: "number" }, name: { required: !0, type: "string" }, stepValue: { type: "number" }, visible: { type: "string" } } } ], type: "object" }, minItems: 1, required: !0, type: "array" }, output: { additionalProperties: !1, minItems: 1, properties: { data: { items: { additionalProperties: !1, properties: { id: { required: !0, type: "string" }, name: { required: !0, type: "string" } }, type: "object" }, minItems: 1, required: !0, type: "array" }, plots: { items: { additionalProperties: !1, properties: { xAxisTitle: { required: !0, type: "string" }, xValue: { required: !0, type: "string" }, yAxisTitle: { required: !0, type: "string" }, yValue: { required: !0, type: "string" } }, type: "object" }, maxItems: 9, minItems: 1, required: !0, type: "array" } }, required: !0, type: "object" }, parameters: { items: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "string" } }, type: "object" }, type: "array" }, simulation: { additionalProperties: !1, properties: { opencor: { additionalProperties: !1, properties: { endingPoint: { type: "number" }, pointInterval: { type: "number" }, resource: { required: !0, type: "string" } }, type: "object" }, solvers: { items: { additionalProperties: !1, properties: { if: { type: "string" }, input: { additionalProperties: !1, properties: { name: { required: !0, type: "string" }, value: { required: !0, type: "string" } }, type: "object" }, name: { required: !0, type: "string" }, version: { required: !0, type: "string" } }, type: "object" }, minItems: 1, required: !0, type: "array" } }, required: !0, type: "object" } }, type: "object" }, n = t.validate(e, r, { nestedErrors: !0 }); if (!n.valid) return console.warn(n.toString()), !1; let o = []; if (!e.input.every((f) => { if (f.id !== void 0) { if (f.id === "") return console.warn("JSON: the input id must not be empty."), !1; if (o[f.id]) return console.warn("JSON: the input id must be unique (" + f.id + " is used more than once)."), !1; o[f.id] = !0; } if (f.name === "") return console.warn("JSON: the input name must not be empty."), !1; if (f.possibleValues !== void 0) { if (!f.possibleValues.every((h) => h.name === "" ? (console.warn("JSON: an input possible value must not be empty."), !1) : !0)) return !1; let c = f.possibleValues.map((h) => h.value), d = []; if (!c.every((h) => d[h] ? (console.warn("JSON: an input possible value must have a unique value (" + h + " is used more than once)."), !1) : (d[h] = !0, !0))) return !1; if (!c.includes(f.defaultValue)) return console.warn("JSON: the input default value (" + f.defaultValue + ") must be one of the possible values (" + c.join(", ") + ")."), !1; } 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 + ")."), !1; 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 + ")."), !1; 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 + ")."), !1; 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 + ")."), !1; } else if (!Number.isInteger(c)) return console.warn("JSON: the (default) input step value (1) must be a factor of the range value (" + c + ")."), !1; } return f.visible !== void 0 && f.visible === "" ? (console.warn("JSON: the input visible must not be empty."), !1) : !0; })) return !1; let i = []; if (!e.output.data.every((f) => { if (f.id !== void 0) { if (f.id === "") return console.warn("JSON: the output data id must not be empty."), !1; if (i[f.id]) return console.warn("JSON: the output data id must be unique (" + f.id + " is used more than once)."), !1; i[f.id] = !0; } return f.name === "" ? (console.warn("JSON: the output data name must not be empty."), !1) : !0; }) || !e.output.plots.every((f) => f.xAxisTitle === "" ? (console.warn("JSON: the output plot X axis title must not be empty."), !1) : f.xValue === "" ? (console.warn("JSON: the output plot X value must not be empty."), !1) : f.yAxisTitle === "" ? (console.warn("JSON: the output plot Y axis title must not be empty."), !1) : f.yValue === "" ? (console.warn("JSON: the output plot Y value must not be empty."), !1) : !0) || e.parameters !== void 0 && !e.parameters.every((c) => c.name === "" ? (console.warn("JSON: the parameter name must not be empty."), !1) : c.value === "" ? (console.warn("JSON: the parameter value must not be empty."), !1) : !0)) return !1; let l = !1; if (!e.simulation.solvers.every((f) => { if (f.if !== void 0 && f.if === "") return console.warn("JSON: a simulation solver if must not be empty."), !1; if (f.input !== void 0) { if (f.input.name === "") return console.warn("JSON: a simulation solver input name must not be empty."), !1; if (f.input.value === "") return console.warn("JSON: a simulation solver input value must not be empty."), !1; } return f.name === "" ? (console.warn("JSON: a simulation solver name must not be empty."), !1) : (l = l || f.name === zu, f.version === "" ? (console.warn("JSON: a simulation solver version must not be empty."), !1) : !0); })) return !1; if (l && e.simulation.opencor === void 0) return console.warn("JSON: the simulation solver for OpenCOR is specified so simulation OpenCOR settings must also be specified."), !1; if (e.simulation.opencor !== void 0) { if (e.simulation.opencor.resource === "") return console.warn("JSON: the simulation OpenCOR resource must not be empty."), !1; if (e.simulation.opencor.endingPoint !== void 0) if (e.simulation.opencor.pointInterval !== void 0) { if (e.simulation.opencor.endingPoint <= 0) return console.warn("JSON: the simulation OpenCOR ending point (" + e.simulation.opencor.endingPoint + ") must be greater than zero."), !1; if (e.simulation.opencor.pointInterval <= 0) return console.warn("JSON: the simulation OpenCOR point interval (" + e.simulation.opencor.pointInterval + ") must be greater than zero."), !1; } else return console.warn("JSON: a simulation OpenCOR ending point is specified so a simulation OpenCOR point interval must also be specified."), !1; else if (e.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."), !1; } return !0; } const $S = { name: "SimulationVuer", components: { PlotVuer: lc, SimulationVuerInput: ju, ElButton: $u, ElDivider: Fu, ElLoading: Lb }, props: { /** * The the URL to the API location. */ apiLocation: { required: !0, type: String }, /** * The ID of the simulation-based dataset. */ id: { required: !0, type: Number } }, data: function() { let e = new XMLHttpRequest(), t, r; return e.open("GET", this.apiLocation + "/sim/dataset/" + this.id, !1), e.setRequestHeader("Content-type", "application/json"), e.onreadystatechange = () => { if (e.readyState === 4 && e.status === 200) { let n = JSON.parse(e.responseText); t = n.name, r = n.study !== void 0 ? n.study.uuid : void 0; } }, e.send(), { errorMessage: "", hasFinalisedUi: !1, hasValidSimulationUiInfo: !1, isMounted: !1, isSimulationValid: !0, layout: [], name: t, perfectScollbarOptions: { suppressScrollX: !0 }, showUserMessage: !1, simulationData: [], simulationDataId: {}, simulationUiInfo: {}, userMessage: "", ui: null, uuid: r }; }, methods: { /** * @vuese * Generate the metadata associated with the plot which `index` is given. * @arg `index` */ plotMetadata(e) { return { version: "1.1.0", type: "plot", attrs: { style: "timeseries", layout: this.layout[e] } }; }, /** * @vuese * Build the simulation UI using `simulationUiInfo`, a JSON object that describes the contents of the simulation UI. * @arg `simulationUiInfo` */ buildSimulationUi(e) { this.simulationUiInfo = e, 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(e) { let t = e.solver.name === zu; if (t ? e.opencor = { model_url: this.simulationUiInfo.simulation.opencor.resource, json_config: {} } : e.osparc = {}, t && this.simulationUiInfo.simulation.opencor.endingPoint !== void 0 && this.simulationUiInfo.simulation.opencor.pointInterval !== void 0 && (e.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 ? e.opencor.json_config.parameters = r : e.osparc.job_inputs = r; } if (t && this.simulationUiInfo.output.data !== void 0) { let r = -1; e.opencor.json_config.output = [], this.simulationUiInfo.output.data.forEach((n) => { e.opencor.json_config.output[++r] = n.name; }); } return e; }, /** * @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(e) { if (typeof e == "string") { const n = /[ \t]+/g; let o = e.trim().split(` `), a = o[0].trim().split(n).length; e = {}; for (let s = 0; s < a; ++s) e[s] = []; let i = -1; o.forEach((s) => { ++i; let u = -1; s.trim().split(n).forEach((f) => { e[++u][i] = Number(f); }); }); } let t = -1, r = e[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, e, n.xValue, i), a[i] = Bs(this, e, 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(e) { let t = new XMLHttpRequest(); t.open("POST", this.apiLocation + "/check_simulation", !0), 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 = !1, this.processSimulationResults(r.results); else { let n = this; setTimeout(function() { n.checkSimulation(e); }, 1e3); } else this.showUserMessage = !1, this.errorMessage = r.description; } else this.isSimulationValid = !1, this.showUserMessage = !1, this.errorMessage = t.statusText.toLowerCase() + " (" + t.status + ")"; }, t.send(JSON.stringify(e)); }, /** * @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 e; if (this.simulationUiInfo.simulation.solvers.forEach((t) => { (t.if === void 0 || da(this, t.if)) && (e = t); }), e === void 0) { console.warn("SIMULATION: no solver name and/or solver version specified."); return; } this.userMessage = "Loading simulation results...", this.showUserMessage = !0, this.$nextTick(() => { this.simulationData = []; let t = new XMLHttpRequest(); t.open("POST", this.apiLocation + "/start_simulation", !0), 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 = !1, this.errorMessage = r.description); } else this.isSimulationValid = !1, this.showUserMessage = !1, this.errorMessage = t.statusText.toLowerCase() + " (" + t.status + ")"; }, t.send(JSON.stringify(this.retrieveRequest({ solver: e }))); }); } }, created: function() { this.name !== void 0 && (this.userMessage = "Retrieving UI information...", this.showUserMessage = !0, this.$nextTick(() => { let e = new XMLHttpRequest(); e.open("GET", this.apiLocation + "/simulation_ui_file/" + this.id, !0), e.setRequestHeader("Content-type", "application/json"), e.onreadystatechange = () => { e.readyState === 4 && (this.showUserMessage = !1, e.status === 200 && this.buildSimulationUi(JSON.parse(e.responseText))); }, e.send(); })); }, mounted: function() { this.isMounted = !0, Ds(this); } }, pi = (e) => (ic("data-v-508c815f"), e = e(), sc(), e), FS = ["element-loading-text"], MS = { key: 0, class: "default error" }, VS = /* @__PURE__ */ pi(() => /* @__PURE__ */ q("span", { class: "error" }, "Error:", -1)), RS = { key: 1, class: "main" }, NS = { class: "main-left" }, kS = { class: "default name" }, LS = /* @__PURE__ */ pi(() => /* @__PURE__ */ q("p", { class: "default input-parameters" }, "Input parameters", -1)), zS = { class: "input scrollbar" }, BS = { class: "primary-button" }, DS = { key: 0, class: "secondary-button" }, US = { class: "secondary-button" }, jS = { key: 1, class: "default note" }, HS = { class: "main-right", ref: "output" }, WS = { class: "main-right" }, qS = { class: "default error" }, KS = /* @__PURE__ */ pi(() => /* @__PURE__ */ q("span", { class: "error" }, "Error:", -1)), ZS = ["innerHTML"]; function GS(e, t, r, n, o, a) { const i = Fu, s = ju, u = $u, l = Jt("PlotVuer"), f = ca; return We((C(), D("div", { class: "simulation-vuer", "element-loading-text": e.userMessage }, [ !e.hasValidSimulationUiInfo && !e.showUserMessage ? (C(), D("p", MS, [ VS, Qt(" an unknown or invalid model was provided.") ])) : G("", !0), e.hasValidSimulationUiInfo ? (C(), D("div", RS, [ q("div", NS, [ q("p", kS, ke(e.name), 1), pe(i), LS, q("div", zS, [ (C(!0), D(He, null, ir(e.simulationUiInfo.input, (c, d) => (C(), te(s, { ref_for: !0, 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)) ]), q("div", BS, [ pe(u, { type: "primary", size: "small", onClick: t[0] || (t[0] = (c) => a.startSimulation()) }, { default: ee(() => [ Qt("Run Simulation") ]), _: 1 }) ]), e.uuid ? (C(), D("div", DS, [ pe(u, { size: "small", onClick: t[1] || (t[1] = (c) => a.runOnOsparc()) }, { default: ee(() => [ Qt("Run on oSPARC") ]), _: 1 }) ])) : G("", !0), q("div", US, [ pe(u, { size: "small", onClick: t[2] || (t[2] = (c) => a.viewDataset()) }, { default: ee(() => [ Qt("View Dataset") ]), _: 1 }) ]), e.uuid ? (C(), D("p", jS, "Additional parameters are available on oSPARC")) : G("", !0) ]), We(q("div", HS, [ (C(!0), D(He, null, ir(e.simulationUiInfo.output.plots, (c, d) => (C(), te(l, { key: `output-${d}`, metadata: a.plotMetadata(d), "data-source": { data: e.simulationData[d] }, plotLayout: e.layout[d], plotType: "plotly-only", selectorUi: !1 }, null, 8, ["metadata", "data-source", "plotLayout"]))), 128)) ], 512), [ [Bt, e.isSimulationValid] ]), We(q("div", WS, [ q("p", qS, [ KS, Qt(), q("span", { innerHTML: e.errorMessage }, null, 8, ZS), Qt(".") ]) ], 512), [ [Bt, !e.isSimulationValid] ]) ])) : G("", !0) ], 8, FS)), [ [f, e.showUserMessage] ]); } const XS = /* @__PURE__ */ Uu($S, [["render", GS], ["__scopeId", "data-v-508c815f"]]); export { XS as SimulationVuer };